Merge "Don't block the upstart daemon if it doesn't exist"
This commit is contained in:
commit
670f1f7312
@ -5,7 +5,8 @@ set -e
|
|||||||
[ -n "$TARGET_ROOT" ]
|
[ -n "$TARGET_ROOT" ]
|
||||||
|
|
||||||
sudo mv $TARGET_ROOT/sbin/start-stop-daemon.REAL $TARGET_ROOT/sbin/start-stop-daemon
|
sudo mv $TARGET_ROOT/sbin/start-stop-daemon.REAL $TARGET_ROOT/sbin/start-stop-daemon
|
||||||
|
if [ -f $TARGET_ROOT/sbin/initctl.REAL ]
|
||||||
|
then
|
||||||
sudo mv $TARGET_ROOT/sbin/initctl.REAL $TARGET_ROOT/sbin/initctl
|
sudo mv $TARGET_ROOT/sbin/initctl.REAL $TARGET_ROOT/sbin/initctl
|
||||||
|
fi
|
||||||
sudo mv $TARGET_ROOT/usr/sbin/invoke-rc.d.REAL $TARGET_ROOT/usr/sbin/invoke-rc.d
|
sudo mv $TARGET_ROOT/usr/sbin/invoke-rc.d.REAL $TARGET_ROOT/usr/sbin/invoke-rc.d
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,6 +13,8 @@ echo "Warning: Fake start-stop-daemon called, doing nothing"
|
|||||||
EOF
|
EOF
|
||||||
sudo chmod 755 $TARGET_ROOT/sbin/start-stop-daemon
|
sudo chmod 755 $TARGET_ROOT/sbin/start-stop-daemon
|
||||||
|
|
||||||
|
if [ -f $TARGET_ROOT/sbin/initctl ]
|
||||||
|
then
|
||||||
sudo mv $TARGET_ROOT/sbin/initctl $TARGET_ROOT/sbin/initctl.REAL
|
sudo mv $TARGET_ROOT/sbin/initctl $TARGET_ROOT/sbin/initctl.REAL
|
||||||
sudo dd of=$TARGET_ROOT/sbin/initctl <<EOF
|
sudo dd of=$TARGET_ROOT/sbin/initctl <<EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
@ -20,6 +22,7 @@ echo "initctl (tripleo 1.0)"
|
|||||||
echo "Warning: Fake initctl called, doing nothing"
|
echo "Warning: Fake initctl called, doing nothing"
|
||||||
EOF
|
EOF
|
||||||
sudo chmod 755 $TARGET_ROOT/sbin/initctl
|
sudo chmod 755 $TARGET_ROOT/sbin/initctl
|
||||||
|
fi
|
||||||
|
|
||||||
sudo mv $TARGET_ROOT/usr/sbin/invoke-rc.d $TARGET_ROOT/usr/sbin/invoke-rc.d.REAL
|
sudo mv $TARGET_ROOT/usr/sbin/invoke-rc.d $TARGET_ROOT/usr/sbin/invoke-rc.d.REAL
|
||||||
sudo dd of=$TARGET_ROOT/usr/sbin/invoke-rc.d <<EOF
|
sudo dd of=$TARGET_ROOT/usr/sbin/invoke-rc.d <<EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user