-
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

(New) AMD Ryzen 7 5700X 8 Core 16 Thread AM4 Unlocked 3.4 GHz CPU OEM Tray
$174.99

OPNsense Firewall 8-Core Atom C3758 4GB DDR4 RAM 64GB SSD 8x 1Gbe QAT AES-NI VPN
$95.00

Apple Mac Pro Late 2013 A1481 3.0GHz 8-Core Xeon 32GB RAM 251GB SSD Dual FirePro
$269.00

Apple MacBook Air 2019 13.3” Retina Intel Core i5 8GB RAM 128GB SSD Gold
$200.00

Dell - XPS 13.4" 3K Touchscreen Laptop - Intel Core 5 Series 3 320 2026 - 8GB...
$599.99

AMD Ryzen 7 9800X3D 8-Core 16-Thread AM5 Zen 5 Desktop Processor NEW
$395.00

HP - OmniBook 3 - 14" 2K OLED Laptop - Snapdragon X (8-Core CPU) - 8GB Memory...
$399.99

AMD Ryzen 7 5800X3D 8-Core 3.4GHz Socket AM4 CPU Processor….
$309.99

Intel Core i9-9900 SRG18 3.10GHz 16MB 8-Core LGA1151 CPU Processor
$177.21

Intel Core i7-11700 11th Gen 8-Core 16-Thread LGA1200 CPU *CANADA*
$150.80