Moving 'setclock' to earlier in the boot sequence

Bryan Kadzban bryan at kadzban.is-a-geek.net
Tue May 27 17:49:55 PDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Bruce Dubbs wrote:
> Nathan Coulson wrote:
>> I think moving it before mountkernfs would be an ideal time.
> 
> hwclock needs to write to /var/lib/lastdate and /etc/adjtime.  Could
> /var/lib be remotely mounted?  It doen't look like a good idea to me.

/var probably won't be remotely mounted, but the standard advice (at
least, the standard advice that I've heard for quite a while) has been
"make /var a separate partition, that way syslog can't fill up your root
partition".  So it could easily require mountfs.

I'd say put it between mountfs and cleanfs, either before or after
udev_retry (probably after).

> For most LFS systems /dev/rtc is what is needed.

And for the ones that don't need /dev/rtc, udev will (...well, should)
still create the right files.  The exception would be direct port I/O
using the inp/outp functions (and iopl() to get permission), which
doesn't require any device.  :-)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIPKwyS5vET1Wea5wRAwuCAJ0Ui+xLAZx8gArAvY/j+Cee03iXHACfZzbr
0hD4k9xswkRKh5T8ZLyHhC4=
=pU88
-----END PGP SIGNATURE-----



More information about the lfs-dev mailing list