diff --git a/chapter06/systemd.xml.next b/chapter06/systemd.xml.next index 306ca901f..9b89b8f2d 100644 --- a/chapter06/systemd.xml.next +++ b/chapter06/systemd.xml.next @@ -76,7 +76,9 @@ EOF --with-rootlibdir=/lib \ --enable-split-usr \ --disable-gudev \ + --disable-firstboot \ --disable-ldconfig \ + --disable-sysusers \ --without-python \ --docdir=/usr/share/doc/systemd-&systemd-version; \ --with-dbuspolicydir=/etc/dbus-1/system.d \ @@ -122,6 +124,16 @@ EOF + + --disable-firstboot + + This switch prevents installation of systemd + services responsible for setting up the system for + the first time. They are not useful for LFS because + everything is done manually. + + + --disable-ldconfig @@ -133,6 +145,17 @@ EOF + + --disable-sysusers + + This switch prevents installation of systemd + services responsible for setting up the + /etc/group and + /etc/passwd files. Both files + were created early in this chapter. + + + --with-dbus* @@ -168,10 +191,6 @@ EOF make LD_LIBRARY_PATH=/tools/lib install - Prevent systemd units that are not needed on a LFS system from running: - -rm -fv /lib/systemd/system/sysinit.target.wants/systemd-{firstboot,sysusers,update-done}.service - Move NSS libraries to /lib: mv -v /usr/lib/libnss_{myhostname,mymachines,resolve}.so.2 /lib @@ -212,7 +231,7 @@ ln -sfv ../lib/systemd/systemd /sbin/init kernel-install, localectl, loginctl, machinectl, networkctl, poweroff, reboot, runlevel, shutdown, systemctl, systemd-analyze, systemd-ask-password, systemd-cat, systemd-cgls, systemd-cgtop, - systemd-delta, systemd-detect-virt, systemd-escape, systemd-firstboot, + systemd-delta, systemd-detect-virt, systemd-escape, systemd-inhibit, systemd-machine-id-setup, systemd-notify, systemd-nspawn, systemd-path, systemd-run, systemd-stdio-bridge, systemd-sysusers, systemd-tmpfiles, systemd-tty-ask-password-agent, telinit, timedatectl, @@ -498,7 +517,7 @@ ln -sfv ../lib/systemd/systemd /sbin/init - + systemd-inhibit