diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:50 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:18:29 +0100 |
commit | 4739146fc6c4de8b16418517bb882312c475195c (patch) | |
tree | a3c29d97d1ead4ad4fa532b1c6bfdb419f160e71 /helpers/lh_chroot_interactive | |
parent | 1863ed88740575342008ac5f694d03e944bcece2 (diff) | |
download | vyos-live-build-4739146fc6c4de8b16418517bb882312c475195c.tar.gz vyos-live-build-4739146fc6c4de8b16418517bb882312c475195c.zip |
Adding live-helper 1.0~a6-1.
Diffstat (limited to 'helpers/lh_chroot_interactive')
-rwxr-xr-x | helpers/lh_chroot_interactive | 47 |
1 files changed, 22 insertions, 25 deletions
diff --git a/helpers/lh_chroot_interactive b/helpers/lh_chroot_interactive index ac90f89d1..556f07916 100755 --- a/helpers/lh_chroot_interactive +++ b/helpers/lh_chroot_interactive @@ -33,40 +33,37 @@ Set_defaults Breakpoint "chroot_interactive: Init" -if [ "${LIVE_INTERACTIVE}" != "disabled" ] +if [ "${LIVE_INTERACTIVE}" = "disabled" ] then - # Requiring stage file - Require_stagefile .stage/bootstrap + exit 0 +fi - # Checking lock file - Check_lockfile .lock +# Requiring stage file +Require_stagefile .stage/bootstrap - # Creating lock file - Create_lockfile .lock +# Checking stage file +Check_stagefile .stage/chroot_interactive - # Checking stage file - Check_stagefile .stage/chroot_interactive +# Checking lock file +Check_lockfile .lock - case "${LIVE_INTERACTIVE}" in - enabled|shell) - echo "Pausing build: starting interactive shell..." +# Creating lock file +Create_lockfile .lock +case "${LIVE_INTERACTIVE}" in + enabled|shell) + echo "Pausing build: starting interactive shell..." Chroot "/bin/bash --login" - ;; - + ;; x11) - echo "Pausing build: starting interactive X11..." - + echo "Pausing build: starting interactive X11..." Chroot "startx" - ;; - + ;; xnest) - echo "Pausing build: starting interactive Xnest..." - + echo "Pausing build: starting interactive Xnest..." #Chroot "" # FIXME - ;; - esac + ;; +esac - # Creating stage file - Create_stagefile .stage/chroot_symlinks -fi +# Creating stage file +Create_stagefile .stage/chroot_symlinks |