-
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

Inspur LSI YZCA-00424-101 Raid Card 12Gbps HBA HDD Controller
$16.99

9207-8i PCIE3.0 6Gbps HBA LSI FW:P20 IT Mode ZFS FreeNAS unRAID 2* SFF-8087 US
$36.88

9211-8i 6Gbps HBA LSI FW:P20 IT Mode ZFS FreeNAS unRAID+2* SFF-8087 SATA From US
$32.99

Intel RES2SV240 24port 6G 6Gbps SATA SAS Expander Server Adapter RAID CARD
$28.88

Promise Technology Pegasus2 R4 4 Bay Raid Storage Array
$119.00

Dell Perc H330 12GB SAS Raid Controller Card
$39.99

Dell P2R3R PERC HBA330 Mini Mono 12Gb/s Non-RAID Pass-Thru HBA
$15.00

Adaptec ASR-71605 16 Ports 2274400-R Raid Card AFM-700 1GB Cache with Battery
$19.99

ORICO Multi Bay RAID Hard Drive Enclosure USB 3.0/ Type-C For 2.5/3.5'' HDD SSD
$153.99

ACASIS 3.5 Dual Bay SATA To USB 3.0 HDD Enclosure Array Desktop Mobile RAID NEW
$58.99