diff options
Diffstat (limited to 'builder')
-rw-r--r-- | builder/dnbd3-rootfs/hooks/copy-dnbd3-service-into-newroot.sh | 2 | ||||
-rw-r--r-- | builder/dnbd3-rootfs/hooks/copy-dracut-systemd-files-into-newroot.sh | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/builder/dnbd3-rootfs/hooks/copy-dnbd3-service-into-newroot.sh b/builder/dnbd3-rootfs/hooks/copy-dnbd3-service-into-newroot.sh index 51e0105c..592bc3b4 100644 --- a/builder/dnbd3-rootfs/hooks/copy-dnbd3-service-into-newroot.sh +++ b/builder/dnbd3-rootfs/hooks/copy-dnbd3-service-into-newroot.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash systemdsystemunitdir="$( dirname "$(find / -name dracut-mount.service -type f -print -quit)")" -newsystemdsystemunitdir="${NEWROOT}/lib/systemd" +newsystemdsystemunitdir="${NEWROOT}/lib/systemd/system" cp "${systemdsystemunitdir}/dnbd3root.service" \ "${newsystemdsystemunitdir}/dnbd3root.service" diff --git a/builder/dnbd3-rootfs/hooks/copy-dracut-systemd-files-into-newroot.sh b/builder/dnbd3-rootfs/hooks/copy-dracut-systemd-files-into-newroot.sh index 7093439e..075428ee 100644 --- a/builder/dnbd3-rootfs/hooks/copy-dracut-systemd-files-into-newroot.sh +++ b/builder/dnbd3-rootfs/hooks/copy-dracut-systemd-files-into-newroot.sh @@ -2,9 +2,9 @@ # Dracut may not be installed on the new root. Thus copy all services over. systemdsystemunitdir="$( dirname "$(find / -name dracut-mount.service -type f -print -quit)")" -newsystemdsystemunitdir="${NEWROOT}/lib/systemd" +newsystemdsystemunitdir="${NEWROOT}/lib/systemd/system" -mkdir --parents "$newsystemdsystemunitdir" +mkdir --parents "$newsystemdsystemunitdir/initrd.target.wants" for file in \ dracut-cmdline.service \ dracut-initqueue.service \ |