Release Candidates :: DSL v3.1 RC3



Due to errors I've changed dslMIrrorSel.lua :
line 30 form
fname = tmpname()
to
fname = os.tmpname()

line 45 from
w = fltk:Fl_Window(400,200,"Full Mirror List"; box=Boxtype.none)
to
w = fltk:Fl_Window(400,200, "Full Mirror List")

line 52 from
selector = fltk:Fl_Select_Browser(0,0,400,200, type=Browsertype.single)
to
selector = fltk:Fl_Select_Browser(0,0,400,200)



legalize cannabis, etc.

Thanks, jls. Looks like my final dslMirrorSel.lua did not make it into the master copy, as my local copy was converted and works. Updating master now.
Key, I finally got my hands on a write protectable pendrive. It is a Kingston drive, with a write protect switch on the side. Installed DSL frugal_hdd to the pendrive, write enabled, of course! Then shutdown system. Placed the write protected standard boot floppy in foppy drive, and moved the switch on the pendrive to write protect. Plugged in the write protected pendrive and booted DSL. No problems.

The only way I can cause an error code to display, is when I add the boot option frugal. But of course, that would! Boot code frugal is not appropriate on a read only device.

I too am still testing this RC. Found more unconverted lines in icontool.lua, around 196 and again around 205. Easy to fix. But still the conversion of 50+ programs has been an arduous undertaking. It was worth doing. Still hoping to get everything fully tested and working before a final release. Appreciate those who have the patience to help me in testing everything.
Pls add an option in hdinstall to skip the format and\or the partition creation, so a user can chose a pre-formated partition and so on...

This will cut down on clean reinstall time greatly...

something like:

B4:
Code Sample

echo -n "${CYAN}Use journalized ext3 filesystem (not recommended on slower systems) (y/n)?${NORMAL} "
read FSTYPECHOICE
if [ "$FSTYPECHOICE" != "y" ]; then
 FSTYPE=ext2
else
 FSTYPE=ext3
fi

echo "${CYAN}Last chance to exit before destroying any data on ${MAGENTA}$TARGET!!${NORMAL}"
echo -n "Continue (y/..)? ${NORMAL}"
read answer
if [ "$answer" != "y" ]; then
 echo "Aborted.."
 exit 0
fi
echo "${BLUE}Creating filesystem $FSTYPE on $TARGET...${NORMAL}"
sleep 2
dd if=/dev/zero of=$TARGET bs=1k count=16 >/dev/null 2>&1
sync
if [ "$FSTYPE" != "ext3" ]; then
 mke2fs $TARGET 2> $TMP
else
 mke2fs -j $TARGET 2> $TMP
fi

x=$?
if [ $x != 0 ]; then
 echo "${RED}An error occurred while creating the filesystem.${NORMAL}"
 echo "Some messages from mkfs:"
 tail -8 $TMP
 rm -f $TMP
 exit 0
fi



After:
Code Sample


echo -n "${CYAN}Use journalized ext3 filesystem (not recommended on slower systems) (y/n)?${NORMAL} "
read FSTYPECHOICE
if [ "$FSTYPECHOICE" != "y" ]; then
 FSTYPE=ext2
 else
 FSTYPE=ext3
fi

echo -n "${CYAN} Skip the partitioning and format and go directly to File copy (y/n)?${NORMAL} "
read SKIPCOPY
if [ "$SKIPCOPY" != "y" ]; then
 echo "Skipped..."
else

 echo "${CYAN}Last chance to exit before destroying any data on ${MAGENTA}$TARGET!!${NORMAL}"
 echo -n "Continue (y/..)? ${NORMAL}"
 read answer
 if [ "$answer" != "y" ]; then
   echo "Aborted.."
   exit 0
 fi
 echo "${BLUE}Creating filesystem $FSTYPE on $TARGET...${NORMAL}"
 sleep 2
 dd if=/dev/zero of=$TARGET bs=1k count=16 >/dev/null 2>&1
 sync
 if [ "$FSTYPE" != "ext3" ]; then
   mke2fs $TARGET 2> $TMP
 else
   mke2fs -j $TARGET 2> $TMP
 fi

 x=$?
 if [ $x != 0 ]; then
   echo "${RED}An error occurred while creating the filesystem.${NORMAL}"
   echo "Some messages from mkfs:"
   tail -8 $TMP
   rm -f $TMP
   exit 0
 fi
fi

Next Page...
original here.