7.3. Bootscripts for CLFS 3.0-20140710

The Bootscripts package contains a set of scripts to start/stop the CLFS system at bootup/shutdown.

7.3.1. Installation of Bootscripts

Apply a patch which modifies the scripts for use in /tools:

patch -Np1 -i ../bootscripts-cross-lfs-3.0-20140710-tools_updates-2.patch

Install the package:

make DESTDIR=/tools install-minimal

The setclock script reads the time from the hardware clock, also known as the BIOS or the Complementary Metal Oxide Semiconductor (CMOS) clock. If the hardware clock is set to UTC, this script will convert the hardware clock's time to the local time using the /tools/etc/sysconfig/clock file (which tells the hwclock program which timezone the user is in). There is no way to detect whether or not the hardware clock is set to UTC, so this needs to be configured manually.

If you do not know whether or not the hardware clock is set to UTC, you can find out after you have booted the new machine by running the hwclock --localtime --show command, and if necessary editing the /tools/etc/sysconfig/clock file. The worst that will happen if you make a wrong guess here is that the time displayed will be wrong.

Change the value of the UTC variable below to a value of 0 (zero) if the hardware clock is not set to UTC time.

cat > /tools/etc/sysconfig/clock << "EOF"
# Begin /tools/etc/sysconfig/clock

UTC=1

# End /tools/etc/sysconfig/clock
EOF

Details on this package are located in Section 11.2.2, “Contents of Bootscripts.”