Explorar o código

fix timing problem

- there seems to be a timing problem, when changing partition
 id. cf disk partition was always empty. strange.
Waldemar Brodkorb %!s(int64=16) %!d(string=hai) anos
pai
achega
a6b6699daf
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      scripts/install.sh

+ 3 - 1
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