diff options
| author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:50 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:50 +0200 |
| commit | 2230835b694fef8f6f63992b373d06e6025917ce (patch) | |
| tree | a3c29d97d1ead4ad4fa532b1c6bfdb419f160e71 /helpers/lh_binary_chroot | |
| parent | bf396ae4b8d2380bb8024f8d794771a7f3b48fa2 (diff) | |
| download | vyos-live-build-2230835b694fef8f6f63992b373d06e6025917ce.tar.gz vyos-live-build-2230835b694fef8f6f63992b373d06e6025917ce.zip | |
Adding live-helper 1.0~a6-1.
Diffstat (limited to 'helpers/lh_binary_chroot')
| -rwxr-xr-x | helpers/lh_binary_chroot | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/helpers/lh_binary_chroot b/helpers/lh_binary_chroot index 86da15d35..24ee5f88f 100755 --- a/helpers/lh_binary_chroot +++ b/helpers/lh_binary_chroot @@ -36,20 +36,32 @@ Breakpoint "binary_chroot: Init" # Requiring stage file Require_stagefile .stage/bootstrap +# Checking stage file +Check_stagefile .stage/binary_chroot + # Checking lock file Check_lockfile .lock # Creating lock file Create_lockfile .lock -# Checking stage file -Check_stagefile .stage/binary_chroot +# Normally, proc is not mounted here, but people tend to be lazy +if [ -f chroot/proc/version ] +then + umount chroot/proc +fi + +if [ -d chroot/sys/kernel ] +then + umount chroot/sys +fi # Removing old chroot rm -rf chroot/chroot rm -rf chroot.tmp # Copying new chroot +Echo_message "Copying chroot, this can take a while." cp -a chroot chroot.tmp mv chroot.tmp chroot/chroot |
