Skip to contentSkip to conversation

systemd-initrd: install new initrd-root-device.target

PATCH In review Daniel Drake 2 participants 2 messages May 12, 2016 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 systemd-initrd: install new initrd-root-device.target

systemd has a new initramfs target useful for inserting custom initramfs code after the root device is available, before it has been checked and mounted.
https://github.com/systemd/systemd/pull/3239

Make that available in dracut initramfs as standard.

---
 modules.d/01systemd-initrd/module-setup.sh | 1 +
 1 file changed, 1 insertion(+)
modules.d/01systemd-initrd/module-setup.sh +1 -0
index fb6a9ea..c1ccd2a 100755
@@ -28,6 +28,7 @@ install() {
     inst_multiple -o \
         $systemdsystemunitdir/initrd.target \
         $systemdsystemunitdir/initrd-fs.target \
+        $systemdsystemunitdir/initrd-root-device.target \
         $systemdsystemunitdir/initrd-root-fs.target \
         $systemdsystemunitdir/initrd-switch-root.target \
         $systemdsystemunitdir/initrd-switch-root.service \
Signature · 1 line
2.7.4