-
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

Cisco Nexus N3K-C3048TP-1GE 48 Port Switch w/ Dual Power - Same Day Shipping
$145.00

Cisco N9K-C9372PX 48p 10G SFP+ and 6p 40G QSFP+ Quad Enhanced Small Form-Factor
$820.00

Cisco Nexus 9396PX Switch N9K-C9396PX W/Dual AC, N9K-M12PQ, AND MOUNTING RAILS
$275.95

Cisco 2960S PoE+ WS-C2960S-48LPS-L Gigabit Ethernet Network Switch w/ Ears
$69.99

NEW Sealed Cisco SFP-10G-LR 10GBASE-LR SFP+ 1310nm 10km *US Shipping*
$24.00

Cisco 24-Port Gigabit PoE+ Managed Switch SF300-24PP w/ Power Cord SF300-24PP-K9
$57.98

Cisco Catalyst WS-C2960-8TC-L 8 Port Fast Ethernet Managed Network Switch
$29.99

LOT OF 10 Cisco Catalyst 3850 2 Port SFP Modules C3850-NM-2-10G
$949.99

Cisco SFP-10G-SR 10-2415-03 Transceiver Module COUIA8NCAA - Lot Of 5
$40.00

CISCO WS-C4948-10GE-E Catalyst 4948, ES Image,
$113.00