Douglas R. Reno wrote:
On Mon, Nov 21, 2016 at 8:18 PM, Bruce Dubbs <[email protected]> wrote:

Eric Stone wrote:

Unless I made a mistake following the book, it seems 7.10-systemd
installations are unable to boot into linux single-user mode without
modification.  When “single” is added to the kernel boot parameters,
Systemd’s rescue.target (aka runlevel 1) looks for “sulogin” in a
different
location than where it’s installed by following the LFS book. Because of
this, systemd just transitions on to the usual graphical.target mode (aka
runlevel 5).  I fixed this on my system by issuing:

sudo ln -s /sbin/sulogin /usr/sbin/sulogin

I’m not certain what a better long-term fix for LFS is; move the sulogin
executable (like “passwd” gets moved per LFS instructions after installing
“shadow”), patch systemd to use the current location, or add a symlink
like
I did.  Regardless it would be helpful to add this note to 7.10-systemd
errata, and improve the next LFS-systemd release.


We still support the possibility of a separate /usr partition, so it would
appear that the best solution is to fix systemd.

I don't do systemd very often, so I could be mistaken, but it appears that

ac_cv_path_SULOGIN="/sbin/sulogin"

in config.cache would do what is needed.

systemd itself explicitly does not support a split /usr.

https://freedesktop.org/wiki/Software/systemd/separate-usr-is-broken/

Just because systemd doesn't does not mean that we shouldn't try. From the above link:

"One thing in advance: systemd itself is actually completely fine with /usr on a separate file system that is not pre-mounted at boot time. However, the common basic set of OS components of modern Linux machines is not, and has not been in quite some time. And it is unlikely that this is going to be fixed any time soon, or even ever."

There really a lot of need to do much to mount /usr after the initial boot. In some cases networking may be needed for a nfs or smb mount. We do put the files needed in /bin and /lib so the reference about "common basic set of OS components" not being available is not accurate for LFS.

  -- Bruce


--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to