From 1266653b80e518051ef44f86c18396f59176fdf6 Mon Sep 17 00:00:00 2001 From: hennr Date: Thu, 16 Jun 2011 05:36:59 -0700 Subject: [PATCH] Some typos. Added a second "sync" command because umount is not patient and will cancel the unmounting process if there is too much left to write to the stick. --- config/release/create_installstick | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) mode change 100755 => 100644 config/release/create_installstick diff --git a/config/release/create_installstick b/config/release/create_installstick old mode 100755 new mode 100644 index f82a792952..a87f9d2fd9 --- a/config/release/create_installstick +++ b/config/release/create_installstick @@ -136,6 +136,10 @@ fi cp README /tmp/usb_install cp RELEASE /tmp/usb_install +# syncing disk + echo "syncing disk..." + sync + # unmount partition echo "unmounting partition $PART..." umount "$PART" @@ -143,11 +147,11 @@ fi # write mbr echo "writing mbr..." if [ -f /usr/lib/syslinux/mbr.bin ]; then - MBR="/usr/lib/syslinux/mbr.bin" # example: ubuntu + MBR="/usr/lib/syslinux/mbr.bin" # example: debian, ubuntu elif [ -f /usr/share/syslinux/mbr.bin ]; then MBR="/usr/share/syslinux/mbr.bin" # example: fedora else - echo "Dont find mbr.bin on Host OS" + echo "Can't find mbr.bin on Host OS" fi if [ -n "$MBR" ]; then @@ -162,4 +166,4 @@ fi echo "cleaning tempdir..." rmdir /tmp/usb_install -echo "...ready" +echo "...finished installation"