|
|
3a8223 |
From 045aa82701ecdebf8482b25dc0abf1b3b7cc3ce5 Mon Sep 17 00:00:00 2001
|
|
|
3a8223 |
From: Lukas Nykryn <lnykryn@redhat.com>
|
|
|
3a8223 |
Date: Mon, 30 Nov 2020 11:04:42 +0100
|
|
|
3a8223 |
Subject: [PATCH] fix backport of 70b19acf
|
|
|
3a8223 |
|
|
|
3a8223 |
The patch was missing an important hunk of the original diff which
|
|
|
3a8223 |
converted another `ln_r` to `systemctl set-default`. Without it, the
|
|
|
3a8223 |
initrd would try to boot `multi-user.target` instead of `initrd.target`.
|
|
|
3a8223 |
The reason is that `systemctl set-default` modifies `/etc` while `ln_r`
|
|
|
3a8223 |
modifies `/usr`. And so the `set-default multi-user.target` in 00systemd
|
|
|
3a8223 |
takes priority over the `ln_r initrd.target` in `01systemd-initrd`.
|
|
|
3a8223 |
|
|
|
3a8223 |
Thanks Jonathan Lebon for spotting this.
|
|
|
3a8223 |
|
|
|
3a8223 |
Resolves: #1888779
|
|
|
3a8223 |
---
|
|
|
3a8223 |
modules.d/01systemd-initrd/module-setup.sh | 2 +-
|
|
|
3a8223 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
3a8223 |
|
|
|
3a8223 |
diff --git a/modules.d/01systemd-initrd/module-setup.sh b/modules.d/01systemd-initrd/module-setup.sh
|
|
|
3a8223 |
index cb8a8fa6..a42e220a 100755
|
|
|
3a8223 |
--- a/modules.d/01systemd-initrd/module-setup.sh
|
|
|
3a8223 |
+++ b/modules.d/01systemd-initrd/module-setup.sh
|
|
|
3a8223 |
@@ -36,7 +36,7 @@ install() {
|
|
|
3a8223 |
$systemdsystemunitdir/initrd-udevadm-cleanup-db.service \
|
|
|
3a8223 |
$systemdsystemunitdir/initrd-parse-etc.service
|
|
|
3a8223 |
|
|
|
3a8223 |
- ln_r "${systemdsystemunitdir}/initrd.target" "${systemdsystemunitdir}/default.target"
|
|
|
3a8223 |
+ systemctl -q --root "$initdir" set-default initrd.target
|
|
|
3a8223 |
|
|
|
3a8223 |
local VERSION=""
|
|
|
3a8223 |
local PRETTY_NAME=""
|
|
|
3a8223 |
|