Change run-parts usage to be compatible with Fedora.
Change-Id: I7a4e1252b0ced940cd4d8fa2fbd096c016933954
This commit is contained in:
parent
56e50ee5cf
commit
3860af4be5
@ -122,7 +122,7 @@ function run_d_in_target() {
|
|||||||
sudo mount --bind ${TMP_HOOKS_PATH} $TMP_MOUNT_PATH/tmp/in_target.d
|
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
|
sudo mount -o remount,ro,bind ${TMP_HOOKS_PATH} $TMP_MOUNT_PATH/tmp/in_target.d
|
||||||
check_break before-$1 run_in_target bash
|
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
|
check_break after-$1 run_in_target bash
|
||||||
sudo umount -f $TMP_MOUNT_PATH/tmp/in_target.d
|
sudo umount -f $TMP_MOUNT_PATH/tmp/in_target.d
|
||||||
sudo rmdir $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 -e
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
|
|
||||||
run-parts -v /etc/first-boot.d
|
run-parts /etc/first-boot.d
|
||||||
rm -fr /etc/first-boot.d
|
rm -fr /etc/first-boot.d
|
||||||
mv /etc/rc.local.REAL /etc/rc.local
|
mv /etc/rc.local.REAL /etc/rc.local
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user