From 3b6a163b9653468d0ffebfb2eeecf1fc3282e1bb Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 04 Jul 2013 14:29:26 -0400 Subject: bootstrap-stage2-install.sh: Unmount old mounts. --- diff --git a/bootstrap-stage2-install.sh b/bootstrap-stage2-install.sh index 2f656d0..f50f42c 100755 --- a/bootstrap-stage2-install.sh +++ b/bootstrap-stage2-install.sh @@ -35,6 +35,7 @@ main() ================================= EOF + clean_root install_packages install_archplat_sysconf configure_packages @@ -55,11 +56,29 @@ log() printf '\n\n' } +clean_root() +{ + [ -d root2 ] || return + + cd root2 + + case "${ARCH}" in + *-linux-*) + sudo umount proc || true + sudo umount sys || true + sudo umount dev || true + ;; + esac + + cd .. + + rm -Rf root2 +} + install_packages() { local opk pkg - rm -Rf root2 mkdir root2 cd root2 -- cgit v0.9.1