-
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

Intel Core i7-7700K Processor (4.2 GHz, 4 Cores, LGA 1151) - SR33A
$109.98

AMD Ryzen 5 5500 Unlocked Desktop Processor with Wraith Stealth Cooler
$99.00

Intel Core i9-13900K Unlocked Desktop Processor - 24 cores (8P+16E) & 32 threads
$599.99

Intel SR3X0 Processor i5-8600 3.10 GHz
$65.00

Intel Core i9-13900KF Unlocked Desktop Processor - 24 Cores (8P+16E) & 32 Thread
$569.99

AMD Ryzen 9 7900X 12-core 24-thread Desktop Processor
$429.00

Intel Core i7-13700KF Unlocked Desktop Processor - 16 Cores (8P+8E) & 24 Threads
$420.62

Intel Core i5-13600K Unlocked Desktop Processor - 14 Core (6E+8P) & 20 Threads
$342.76

Intel Core i7-8700K Processor (3.7 GHz, 6 Cores, LGA 1151) - SR3QR
$119.98

AMD Ryzen 7 7800X3D - Ryzen 7 7000 Series 8-Core Socket AM5 120W
$406.00