summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--builder/dnbd3-rootfs/hooks/copy-dnbd3-service-into-newroot.sh2
-rw-r--r--builder/dnbd3-rootfs/hooks/copy-dracut-systemd-files-into-newroot.sh2
2 files changed, 2 insertions, 2 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 1fb8429a..51e0105c 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"
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 27ec97f9..7093439e 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,7 +2,7 @@
# 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"
mkdir --parents "$newsystemdsystemunitdir"
for file in \