Maybe there is a way to initialize environment variables at boot time ?
Hello,
I would like to make a cluster of knoppix machines, and therefore I've added a client package on my Knoppix CD. An executable in this package is launched via the knoppix.sh script placed at the root of the cdrom, thus it's launched when knoppix starts.
My problem is that I don't know how to pass arguments at boot time to this script, in order to configure my cluster client.
Any idea ?
Thanks !
PS : sorry for my strange english![]()
Maybe there is a way to initialize environment variables at boot time ?
The linuxrc script gets at the boot command line by setting a shell variable like this:
CMDLINE="$(cat /proc/cmdline)"
and in my system at least, the file /proc/cmdline still contains the boot command after the boot is complete so you should be able to use this to do what you need.
Best Wishes
Pete
Thanks, I will test that.

Dell 6P85J 4TB ST4000NM0063 7.2k 6Gb/s 3.5” SAS SED Hard Drive with Tray
$39.99
Western Digital HUS726T4TAL5204 4TB 7.2K SAS 12Gb/s 3.5" 512e HDD NetApp X375A
$64.00
DELL 2TB Enterprise HDD (7200RPM, 3.5", SATA III, 128MB Cache) HUS722T2TALA600
$49.95
Seagate ST12000NM0127 12TB 256MB 7200RPM 3.5" SATA 6.0Gb/s Enterprise Hard Drive
$318.99
Seagate ST500DM009 BarraCuda 500 GB 3.5" SATA III Desktop Hard Drive
$14.99
HGST HUA723030ALA640 3TB SATA 7200 RPM 3.5 in Enterprise HDD | 0F14044 (100%)
$45.00
2TB Seagate Barracuda ST2000DM001 7200RPM SATA 6Gbps 64MB Cache 3.5" HDD
$39.95
Dell ST6000NM0034 1HT27Z-150 NWCCG 6TB SAS 3.5 7.2K ENTERPRISE SERVER DRIVE
$68.99
Seagate Constellation ES.3 3.5 in Enterprise HDD | ST2000NM0033
$40.00
Seagate ST8000DM004 8TB 3.5" 6Gb/s 256MB SATA HDD P/N: 2CX188-300 Tested
$149.99