-
suggestion to load persistent settings when booting from CD
Currently, there is no way to load persistent settings if Knoppix is booted from a read-only medium. I suggest a change to the init script in the minirt, so that it is possible e.g. to boot from a CD and enter a boot parameter to load the KNOPPIX-DATA overlay file from a file somewhere else.
Code:
knoppix home=/dev/sdb1/path/to/file/loadme
should load the file loadme.img or loadme.aes from the stated device and path.
diff between original init and the new version:
Code:
848a849,871
> preparehome(){
> # mount device and set the correct mounted path in $home
> DEVICE=`echo $home | awk -F/ '{print "/"$2"/"$3}'`
> HOMEFILE="${home#$DEVICE/}"
> #check if the device is already mounted
> MOUNTED=`mount | grep ^$DEVICE | awk '{print $3}'`
> if [ -n "$MOUNTED" ]
> then
> if [ -r "$MOUNTED"/${HOMEFILE}.* ]
> then
> home="$MOUNTED"/${HOMEFILE}
> fi
> else
> # make mount point
> [ -d /mnt-home ] || mkdir -m 755 /mnt-home
> trymount "$DEVICE" /mnt-home >/dev/null 2>&1
> if [ -r /mnt-home/${HOMEFILE}.* ]
> then
> home=/mnt-home/${HOMEFILE}
> fi
> fi # if mounted
> } # preparehome
>
850a874,875
> # if home is in parameters and starts with /dev/ mount the device and find the file
> [ -n "$home" ] && [ `echo $home | awk -F/ '{print $2}'` = "dev" ] && preparehome
What's the point ? To be able to use an unmodified verifiable ISO and still load settings. Some computers cannot boot from USB, and maybe one isn't allowed to copy Knoppix to the hard disk.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Vintage Apple Keyboard (MO110)
$61.30

Apple Macintosh Plus 1Mb Vintage Desktop Computer w/ Keyboard & Mouse
$350.00

Apple Computer cards VTG 670-8020-B 607-0103-C 607-0291-C AST -Orange Micro ++
$169.00

Kineses PS/2 Keyboard to Macintosh Adapter Converter Vintage Interface Apple
$60.00

Rare Vintage Macintosh Apple Wooden Disk Storage Box Dovetailed
$69.95

Lot of 3 VIntage Apple Computer Rainbow Logo Sticker Decal Macintosh 1980s NOS
$7.00

Apple IIc Vintage Computer System w/ Monitor, Printer, Disk Drive, Joystick
$350.00

E2 Vintage Apple Keyboard II Model M0487 & Bus Mouse II M2706
$79.85

Vintage Apple iMac G4 15" Lamp 700MHz 512MB Mac OS X 10.4.6 W/ Pro Speakers
$300.00

Apple Vintage External CD-ROM Drive Unit
$115.00