From 3860af4be56a1d4f99136f35e8255176ad0fa0f5 Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Thu, 14 Feb 2013 11:16:00 +1300 Subject: [PATCH] Change run-parts usage to be compatible with Fedora. Change-Id: I7a4e1252b0ced940cd4d8fa2fbd096c016933954 --- lib/img-functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/img-functions b/lib/img-functions index deae2522..af6d416d 100644 --- a/lib/img-functions +++ b/lib/img-functions @@ -122,7 +122,7 @@ function run_d_in_target() { sudo mount --bind ${TMP_HOOKS_PATH} $TMP_MOUNT_PATH/tmp/in_target.d sudo mount -o remount,ro,bind ${TMP_HOOKS_PATH} $TMP_MOUNT_PATH/tmp/in_target.d check_break before-$1 run_in_target bash - run_in_target run-parts -v /tmp/in_target.d/$1.d + run_in_target run-parts /tmp/in_target.d/$1.d check_break after-$1 run_in_target bash sudo umount -f $TMP_MOUNT_PATH/tmp/in_target.d sudo rmdir $TMP_MOUNT_PATH/tmp/in_target.d @@ -149,7 +149,7 @@ function prepare_first_boot () { set -e set -o xtrace -run-parts -v /etc/first-boot.d +run-parts /etc/first-boot.d rm -fr /etc/first-boot.d mv /etc/rc.local.REAL /etc/rc.local exit 0