瀏覽代碼

fix timing problem

- there seems to be a timing problem, when changing partition
 id. cf disk partition was always empty. strange.
Waldemar Brodkorb 16 年之前
父節點
當前提交
a6b6699daf
共有 1 個文件被更改,包括 3 次插入1 次删除
  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