summaryrefslogtreecommitdiffstats
path: root/builder
diff options
context:
space:
mode:
Diffstat (limited to 'builder')
-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"