summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjandob2016-02-29 17:15:04 +0100
committerjandob2016-02-29 17:15:04 +0100
commitc7a039cbd638092f1fdaba60b3752d0ef2664ad7 (patch)
tree0027bf46ae0938dad8069456048366e0d40c1f4f
parentfix systemd paths in new root (diff)
downloadsystemd-init-c7a039cbd638092f1fdaba60b3752d0ef2664ad7.tar.gz
systemd-init-c7a039cbd638092f1fdaba60b3752d0ef2664ad7.tar.xz
systemd-init-c7a039cbd638092f1fdaba60b3752d0ef2664ad7.zip
fix systemd paths in new root
-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 \