diff options
author | Cody A.W. Somerville <cody.somerville@canonical.com> | 2011-03-10 04:28:03 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-10 04:28:03 +0100 |
commit | 6a00dab9f6c2f6aa4feeb7b6097ffe8a3a80c5e9 (patch) | |
tree | 7f1b3f9a445715cad699418fbb70c4114d13a713 /scripts/build | |
parent | 88d9374df2f91ccd4e75eaeedb13b577ca28b912 (diff) | |
download | vyos-live-build-6a00dab9f6c2f6aa4feeb7b6097ffe8a3a80c5e9.tar.gz vyos-live-build-6a00dab9f6c2f6aa4feeb7b6097ffe8a3a80c5e9.zip |
Fixing lb_chroot_upstart to use correct path to initctl.
Diffstat (limited to 'scripts/build')
-rwxr-xr-x | scripts/build/lb_chroot_upstart | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/scripts/build/lb_chroot_upstart b/scripts/build/lb_chroot_upstart index bc24c2e01..8f45633c7 100755 --- a/scripts/build/lb_chroot_upstart +++ b/scripts/build/lb_chroot_upstart @@ -14,7 +14,7 @@ set -e . "${LB_BASE:-/usr/share/live/build}"/scripts/build.sh # Setting static variables -DESCRIPTION="$(Echo 'manage /usr/sbin/initctl')" +DESCRIPTION="$(Echo 'manage /sbin/initctl')" HELP="" USAGE="${PROGRAM} {install|remove} [--force]" @@ -29,7 +29,7 @@ Require_stagefile .stage/config .stage/bootstrap case "${1}" in install) - Echo_message "Configuring file /usr/sbin/initctl" + Echo_message "Configuring file /sbin/initctl" # Checking stage file Check_stagefile .stage/chroot_upstart @@ -40,27 +40,27 @@ case "${1}" in # Creating lock file Create_lockfile .lock - if [ -f chroot/usr/sbin/initctl ] + if [ -f chroot/sbin/initctl ] then # Save initctl file - mv chroot/usr/sbin/initctl chroot/usr/sbin/initctl.orig + mv chroot/sbin/initctl chroot/sbin/initctl.orig fi # Create initctl file -cat > chroot/usr/sbin/initctl << EOF +cat > chroot/sbin/initctl << EOF #!/bin/sh echo "All runlevel operations denied by policy" >&2 exit 101 EOF - chmod 0755 chroot/usr/sbin/initctl + chmod 0755 chroot/sbin/initctl # Creating stage file Create_stagefile .stage/chroot_upstart ;; remove) - Echo_message "Deconfiguring file /usr/sbin/initctl" + Echo_message "Deconfiguring file /sbin/initctl" # Checking lock file Check_lockfile .lock @@ -68,13 +68,13 @@ EOF # Creating lock file Create_lockfile .lock - if [ -f chroot/usr/sbin/initctl.orig ] + if [ -f chroot/sbin/initctl.orig ] then # Restore initctl file - mv chroot/usr/sbin/initctl.orig chroot/usr/sbin/initctl + mv chroot/sbin/initctl.orig chroot/sbin/initctl else # Remove initctl file - rm -f chroot/usr/sbin/initctl + rm -f chroot/sbin/initctl fi # Removing stage file |