diff --git a/bootscripts/Makefile b/bootscripts/Makefile index c789a7225..85bd722f5 100644 --- a/bootscripts/Makefile +++ b/bootscripts/Makefile @@ -72,7 +72,6 @@ install: create-dirs create-service-dir ln -sf ../init.d/modules ${EXTDIR}/rc.d/rcsysinit.d/S05modules ln -sf ../init.d/udev ${EXTDIR}/rc.d/rcsysinit.d/S10udev ln -sf ../init.d/swap ${EXTDIR}/rc.d/rcsysinit.d/S20swap - ln -sf ../init.d/setclock ${EXTDIR}/rc.d/rcsysinit.d/S25setclock ln -sf ../init.d/checkfs ${EXTDIR}/rc.d/rcsysinit.d/S30checkfs ln -sf ../init.d/mountfs ${EXTDIR}/rc.d/rcsysinit.d/S40mountfs ln -sf ../init.d/cleanfs ${EXTDIR}/rc.d/rcsysinit.d/S45cleanfs @@ -123,7 +122,6 @@ minimal: create-dirs create-service-dir ln -sf ../init.d/mountkernfs ${EXTDIR}/rc.d/rcsysinit.d/S00mountkernfs ln -sf ../init.d/udev ${EXTDIR}/rc.d/rcsysinit.d/S10udev ln -sf ../init.d/swap ${EXTDIR}/rc.d/rcsysinit.d/S20swap - ln -sf ../init.d/setclock ${EXTDIR}/rc.d/rcsysinit.d/S25setclock ln -sf ../init.d/checkfs ${EXTDIR}/rc.d/rcsysinit.d/S30checkfs ln -sf ../init.d/mountfs ${EXTDIR}/rc.d/rcsysinit.d/S40mountfs ln -sf ../init.d/cleanfs ${EXTDIR}/rc.d/rcsysinit.d/S45cleanfs diff --git a/bootscripts/lfs/init.d/setclock b/bootscripts/lfs/init.d/setclock index a87fb2d23..c786acec5 100644 --- a/bootscripts/lfs/init.d/setclock +++ b/bootscripts/lfs/init.d/setclock @@ -16,8 +16,6 @@ . ${rc_functions} . /etc/sysconfig/clock -CLOCKPARAMS= - case "${UTC}" in yes|true|1) CLOCKPARAMS="${CLOCKPARAMS} --utc" diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index c37bfc57a..34d82eb82 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -40,6 +40,13 @@ 2009-05-23 + + [bdubbs] - Change the bootsripts and udev configuration + so the rtc is set by udev upon boot. Removed aio device + from udev configuration. Fixes + #2266 and + #2297. + [bdubbs] - Expand package management discussion and add a section on deploying an LFS system to another host. Fixes diff --git a/chapter07/setclock.xml b/chapter07/setclock.xml index 3166c8392..854b889c6 100644 --- a/chapter07/setclock.xml +++ b/chapter07/setclock.xml @@ -23,6 +23,11 @@ way to detect whether or not the hardware clock is set to UTC, so this needs to be configured manually. + The setclock is run via + udev when the kernel detects the hardware + capability upon boot. It can also be run manually with the stop parameter to + store the system time to the CMOS clock. + If you cannot remember whether or not the hardware clock is set to UTC, find out by running the hwclock --localtime --show command. This will display what the current time is according to the hardware @@ -46,6 +51,10 @@ UTC=1 +# Set this to any options you might need to give to hwclock, +# such as machine hardware clock type for Alphas. +CLOCKPARAMS= + # End /etc/sysconfig/clock EOF diff --git a/packages.ent b/packages.ent index a60ed2e70..5919bee60 100644 --- a/packages.ent +++ b/packages.ent @@ -298,7 +298,7 @@ - + @@ -511,7 +511,7 @@ - + diff --git a/udev-config/55-lfs.rules b/udev-config/55-lfs.rules index 732fcde88..2959a2a13 100644 --- a/udev-config/55-lfs.rules +++ b/udev-config/55-lfs.rules @@ -2,8 +2,8 @@ # Core kernel devices -KERNEL=="aio", MODE="0444" -KERNEL=="rtc", MODE="0666" +# This causes the system clock to be set as soon as /dev/rtc becomes available. +SUBSYSTEM=="rtc", MODE="0644", ACTION=="add", RUN+="/etc/rc.d/init.d/setclock start" # Comms devices