From: Matt Bilker Date: Tue, 25 Aug 2020 22:12:52 +0000 (-0400) Subject: Fix mkinitcpio with newer systemd versions X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~8^2~5^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=dac2ad288f40ba93a125e69f78edd6a7c3866074;p=ostree.git Fix mkinitcpio with newer systemd versions - Fixes systemd failing to determine if `/sysroot` is valid because of `/etc/os-release` not being available yet. - Related: #1759 --- diff --git a/src/boot/mkinitcpio/ostree b/src/boot/mkinitcpio/ostree index 7f21cacd..3aa0659f 100644 --- a/src/boot/mkinitcpio/ostree +++ b/src/boot/mkinitcpio/ostree @@ -5,6 +5,6 @@ build() { add_binary /usr/lib/ostree/ostree-remount add_file /usr/lib/systemd/system/ostree-prepare-root.service - add_symlink /usr/lib/systemd/system/initrd-switch-root.target.wants/ostree-prepare-root.service \ + add_symlink /usr/lib/systemd/system/initrd-root-fs.target.wants/ostree-prepare-root.service \ /usr/lib/systemd/system/ostree-prepare-root.service }