Fix mkinitcpio with newer systemd versions
authorMatt Bilker <mbilker@pyramidhc.com>
Tue, 25 Aug 2020 22:12:52 +0000 (18:12 -0400)
committerMatt Bilker <mbilker@pyramidhc.com>
Tue, 25 Aug 2020 22:12:55 +0000 (18:12 -0400)
- Fixes systemd failing to determine if `/sysroot` is valid because of
  `/etc/os-release` not being available yet.

- Related: #1759

src/boot/mkinitcpio/ostree

index 7f21cacd63e53f9d247f13498d875bf3f3a5653c..3aa0659fb340bcde9a64cf953e9c06549f1a2e09 100644 (file)
@@ -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
 }