summaryrefslogtreecommitdiffstats
path: root/builder/dnbd3-rootfs
diff options
context:
space:
mode:
authorjandob2016-02-29 14:40:40 +0100
committerjandob2016-02-29 14:40:40 +0100
commitc64ecb0b86422d68985a59f6b717fe2d9fd8bee0 (patch)
tree036cc82a99aa46970a8ba082a77ff60735203fa0 /builder/dnbd3-rootfs
parentrefactoring (diff)
downloadsystemd-init-c64ecb0b86422d68985a59f6b717fe2d9fd8bee0.tar.gz
systemd-init-c64ecb0b86422d68985a59f6b717fe2d9fd8bee0.tar.xz
systemd-init-c64ecb0b86422d68985a59f6b717fe2d9fd8bee0.zip
fix shebang
Diffstat (limited to 'builder/dnbd3-rootfs')
-rw-r--r--builder/dnbd3-rootfs/hooks/copy-dracut-systemd-files-into-newroot.sh4
1 files changed, 2 insertions, 2 deletions
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 e1c2e46c..22876341 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
@@ -1,4 +1,4 @@
-#!/bin/env bash
+#!/usr/bin/env bash
# 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)")"
@@ -21,4 +21,4 @@ done
temp_dir="$(mktemp --directory)"
mount --bind / "$temp_dir"
cp --recursive --no-target-directory "$temp_dir" /run/initramfs
-umount "$temp_dir" && rmdir "$temp_dir"
+umount "$temp_dir" && rm --dir "$temp_dir"