summaryrefslogtreecommitdiff
path: root/scripts/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/install.sh')
-rwxr-xr-xscripts/install.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/install.sh b/scripts/install.sh
index 926c03b6b..5cb5e01f4 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -156,7 +156,9 @@ if [ $rb532 -ne 0 ];then
$parted -s $1 set 1 boot on
$sfdisk --change-id $1 1 27
$sfdisk --change-id $1 3 88
- dd if=$3 of=${1}1
+ sleep 2
+ sync
+ dd if=$3 of=${1}1 bs=2048
sync
else
rootpart=${1}1
@@ -206,7 +208,7 @@ printf "Fixing permissions\n"
chmod 1777 $tmp/tmp
chmod 4755 $tmp/bin/busybox
-if [ $rb532 -ne 0 ];then
+if [ $rb532 -eq 0 ];then
printf "Copying grub files\n"
mkdir $tmp/boot/grub
cp /boot/grub/stage1 $tmp/boot/grub