3 ## live-build(7) - System Build Scripts
4 ## Copyright (C) 2006-2014 Daniel Baumann <mail@daniel-baumann.ch>
6 ## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
7 ## This is free software, and you are welcome to redistribute it
8 ## under certain conditions; see COPYING for details.
13 # Including common functions
14 [ -e "${LIVE_BUILD}/scripts/build.sh" ] && .
"${LIVE_BUILD}/scripts/build.sh" || .
/usr
/lib
/live
/build.sh
16 # Setting static variables
17 DESCRIPTION
="$(Echo 'mount /proc')"
19 USAGE
="${PROGRAM} {install|remove} [--force]"
23 # Reading configuration files
24 Read_conffiles config
/all config
/common config
/bootstrap config
/chroot config
/binary config
/source
27 # Requiring stage file
28 Require_stagefile .build
/config .build
/bootstrap
32 Echo_message
"Begin mounting /proc..."
35 Check_stagefile .build
/chroot_proc
47 mount proc-live
-t proc chroot
/proc
50 Create_stagefile .build
/chroot_proc
54 Echo_message
"Begin unmounting /proc..."
62 # Workaround binfmt-support /proc locking
63 if [ -e chroot
/proc
/sys
/fs
/binfmt_misc
/status
]
65 umount chroot
/proc
/sys
/fs
/binfmt_misc
69 if [ -e chroot
/proc
/version
]
75 rm -f .build
/chroot_proc