-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
install: systemctl preset-all does not work with --root= option #12304
Comments
|
From v242, you need to run Lines 223 to 230 in 1e5d2d6
|
|
Thanks. |
|
Maybe, a workaround for this is chroot to /tool and run |
|
Please ignore my previous comment. There were two factors involved, 1) PATH and 2) the assumption that --root was the same as --prefix. However I still think there is a bug in that above command which still produces errors. The Failed to preset unit error does not make sense. It implies that the ctrl-alt-del.target is created 5 times? |
|
It's not supported to set the prefix to anything other than /usr. This is documented explicitly in README. systemd is not an app you can install at arbitrary places, it's a core part of the OS, hence we make stricter requirements there. Sorry. |
systemd version the issue has been seen with
242
Used distribution
LFS
Expected behaviour you didn't see
After booting system the login prompt should come up
Unexpected behaviour you saw
Boot process stops at
Starting Update UTMP about System Runlevel Changes...
Steps to reproduce the problem
build and install from tarball systemd-242.tar.gz, then boot system.
Same build process for version 241 works with no issue.
Further info
Looks like nothing is created under /etc/systemd/system except for two empty directories, getty.target.wants and multi-user.target.wants .
Creating the following symlink fixes the immediate issue.
ln -s /lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@tty1.service
The text was updated successfully, but these errors were encountered: