#2266: Set system time before bootscripts run
-------------------------------------+--------------------------------------
Reporter: d...@… | Owner: lfs-b...@…
Type: task | Status: new
Priority: normal | Milestone: 7.0
Component: Book | Version: SVN
Severity: normal | Keywords:
-------------------------------------+--------------------------------------
Comment(by bdu...@…):
Replying to [comment:6 br...@…]:
> Replying to [comment:5 bdu...@…]:
> > 3. Add set_hwclock. ubuntu has it in /lib/udev/, but perhaps we
should put it in /sbin.
>
> I'd prefer /lib/udev, but only because I don't think anything else is
going to call this...
I was suggesting /sbin because I thought we were keeping /lib/udev for the
distributed files only.
> > ubuntu's set_hwclock looks like:
>
> I'd prefer to keep this similar to our current setclock script: include
/etc/sysconfig/clock (not rcS), use the UTC set there instead of this
crazy GMT thing, use CLOCKPARAMS throughout, but probably get rid of the
initscript-specific includes (/etc/sysconfig/rc and the variable
containing the main bootscript functions file).
Of course we would change it for LFS. I was just quoting the ubuntu file.
> I assume the Ubuntu hwclock bootscript still allows setting the clock at
shutdown?
Yes.
> Hmm -- would it be simpler to add RUN+="/etc/rc.d/init.d/setclock start"
to the udev rule, and just kill the start symlinks? That way we only have
one file to maintain...
That's a good idea. We just need to kill the S links. We still need the
K links.
--
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2266#comment:7>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page