From: gleasokr@rintintin.Colorado.EDU (Kris Gleason) Subject: Kernel Parameter Passing... with reboot command? Date: 12 Feb 1993 02:59:11 GMT
I am just wondering if it is possible to pass parameters to the kernel
before actually rebooting... let me use an example to explain what I
mean:
I would like to run a cron that, once a week, reboots the system on a
different partition in order to to some disk maintenence (efsck and
edefrag). I know I can do this by typing
linux root=/dev/hda4
at the lilo prompt. Is there any automatic way to achieve the same thing
(under cron control, or script control... anything)? Perhaps I could hack
reboot to save the parameters somewhere, but I don't know exactly where I
would put them... on disk, or in memory somewhere (this would only be useful
to me for a warm boot anyways).
Is there anyone in the LILO crowd that is pondering this (Werner Almesberger,
thin means you)? In fact, would something like this be useful to very many
people. Should I just bear the burden of doing this by hand every week (it's
just a nice idea to think about)? I would love feedback about this idea
from anyone... especially any information on how I could work around storing
parameters between shutdown and startup time. If I get anywhere, and
decide that the work is worth the fun (and convenience), I would be glad
to share with anyone who is interested.
(For you theorists out there: When I first saw that `modern' kernels could
allow parameter passing, I was impressed that Linux was one of those modern
kernels. I think that this addition would bring kernel parameter passing
full circle... bringing Linux into the post-modern age :-) ).
Kris