From c64ecb0b86422d68985a59f6b717fe2d9fd8bee0 Mon Sep 17 00:00:00 2001 From: jandob Date: Mon, 29 Feb 2016 14:40:40 +0100 Subject: fix shebang --- builder/dnbd3-rootfs/hooks/copy-dracut-systemd-files-into-newroot.sh | 4 ++-- 1 file 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" -- cgit v1.2.3-55-g7522