Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fvbe.git;a=commitdiff;h=f2d115b1c6afc3cb385c852d9b3f3ecb677468ba
commit f2d115b1c6afc3cb385c852d9b3f3ecb677468ba Author: crazy <[email protected]> Date: Thu Jun 8 18:21:50 2017 +0200 fix typo diff --git a/README-QEMU-EFI b/README-QEMU-EFI index 7d5e251..81728c5 100644 --- a/README-QEMU-EFI +++ b/README-QEMU-EFI @@ -14,4 +14,4 @@ You may see some warnings from DMI , ignore these .. Install now fw and once you are done remove -cdrom from qemu cmd ( or set to none ). -You should now have fw installed an running in quemu in efi mode \ No newline at end of file +You should now have fw installed an running in qemu in efi mode \ No newline at end of file diff --git a/bin/create-rootfs b/bin/create-rootfs index 52d4787..99044fd 100755 --- a/bin/create-rootfs +++ b/bin/create-rootfs @@ -6,25 +6,6 @@ declare -A FVBE_ROOTFS_PACKAGES . ./fvbe.conf -cleanup_mounts() { - echo "Umounting chroot" - cp /proc/mounts mounts - while read line; do - path=$(echo $line | cut -f 2 -d ' ') - if [ "$path" = "$FVBE_ROOT" ]; then - continue - fi - if [ "$path" != "${path#$FVBE_ROOT}" ]; then - umount $path - fi - done < mounts - if grep -q $FVBE_ROOT mounts - then - [ -d "$FVBE_ROOT" ] && umount $FVBE_ROOT - fi - -} - if [ "$(id -u)" -ne 0 ]; then echo "You must be root to do this." exit 1 @@ -51,6 +32,26 @@ if [ ! -e /usr/bin/mformat ]; then fi +cleanup_mounts() { + echo "Umounting chroot" + cp /proc/mounts mounts + while read line; do + path=$(echo $line | cut -f 2 -d ' ') + if [ "$path" = "$FVBE_ROOT" ]; then + continue + fi + if [ "$path" != "${path#$FVBE_ROOT}" ]; then + umount $path + fi + done < mounts + if grep -q $FVBE_ROOT mounts + then + [ -d "$FVBE_ROOT" ] && umount $FVBE_ROOT + fi + +} + + FDB=frugalware-current.fdb MIRROR="http://ftp.frugalware.org/pub/frugalware/frugalware-current/frugalware-$FVBE_ARCH" REPO=$(basename $FDB .fdb) _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
