From c7a039cbd638092f1fdaba60b3752d0ef2664ad7 Mon Sep 17 00:00:00 2001 From: jandob Date: Mon, 29 Feb 2016 17:15:04 +0100 Subject: fix systemd paths in new root --- builder/dnbd3-rootfs/hooks/copy-dnbd3-service-into-newroot.sh | 2 +- builder/dnbd3-rootfs/hooks/copy-dracut-systemd-files-into-newroot.sh | 2 +- 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 \ -- cgit v1.2.3-55-g7522