Move MOUNTS variable into cleanup function for clarity; it's used

nowhere else.
ubuntu/precise
Colin Watson 16 years ago
parent 7aba4c9dc3
commit 3a77c96af7

2
debian/changelog vendored

@ -2,6 +2,8 @@ livecd-rootfs (0.68) UNRELEASED; urgency=low
* Unmount /proc/sys/fs/binfmt_misc, in case binfmt-support is installed * Unmount /proc/sys/fs/binfmt_misc, in case binfmt-support is installed
and manages to mount it. and manages to mount it.
* Move MOUNTS variable into cleanup function for clarity; it's used
nowhere else.
-- Colin Watson <cjwatson@ubuntu.com> Mon, 22 Sep 2008 11:46:43 +0100 -- Colin Watson <cjwatson@ubuntu.com> Mon, 22 Sep 2008 11:46:43 +0100

@ -24,7 +24,9 @@ set -eu
# Depends: debootstrap, rsync, python-minimal|python, procps, squashfs-tools # Depends: debootstrap, rsync, python-minimal|python, procps, squashfs-tools
cleanup() { cleanup() {
for mnt in $MOUNTS ${ROOT}lib/modules/*/volatile ${ROOT}var/{lock,run}; do for mnt in ${ROOT}dev/pts ${ROOT}dev/shm ${ROOT}.dev ${ROOT}dev \
${ROOT}proc/sys/fs/binfmt_misc ${ROOT}proc ${ROOT}sys \
${ROOT}lib/modules/*/volatile ${ROOT}var/{lock,run}; do
umount $mnt || true umount $mnt || true
done done
@ -152,7 +154,6 @@ ROOT=$(pwd)/chroot-livecd/ # trailing / is CRITICAL
for FS in "$@"; do for FS in "$@"; do
FSS="$FS${SUBARCH:+-$SUBARCH}" FSS="$FS${SUBARCH:+-$SUBARCH}"
IMG=livecd.${FSS}.fsimg IMG=livecd.${FSS}.fsimg
MOUNTS="${ROOT}dev/pts ${ROOT}dev/shm ${ROOT}.dev ${ROOT}dev ${ROOT}proc/sys/fs/binfmt_misc ${ROOT}proc ${ROOT}sys"
DEV="" DEV=""
COMP="main restricted" COMP="main restricted"

Loading…
Cancel
Save