Red Hat Bugzilla – Bug 35398
/etc/rc.sysinit doesn't honor linuxconf's boot-time profile-choosing mechanism
Last modified: 2014-03-16 22:20:19 EDT
Linuxconf claims (in confver.help) that passing "PROFILE=<profile-name>" to
the kernel, in LILO, for example, allows users to select which system
profile they want to use at boot time. This is useful, for example, for
laptop users who have different network connectivity at home and at work.
EXPECTED/ACTUAL: Redhat Linux 7.0 does not honor this mechanism, but it should.
I have this working on my machine: I hacked /etc/rc.sysinit to scan
/proc/cmdline for the profile (as specified above) and pass that to
"linuxconf --selectprofile". I had to change the order of certain things
init'ed in that file: linuxconf has dependencies on libs outside my boot
partition, and the hostname and network info depends on linuxconf, so I had
to move the profile selection and host info all below the disk mounting...
I'll attach my hacked-up version of /etc/rc.sysinit to this bug.
Created attachment 15024 [details]
/etc/rc.sysinit, hacked to honor linuxconf profile choices
note on the attachment, i didn't actually do all the grep-fu for
"PROFILE=<...>", i just grepped for "home" in the linux commandline. that would
obviously need to change.
Since linuxconf has been deprecated, this feature probably won't be added.