瀏覽代碼

inform the linux kernel about the new partition table. reported on solidrun forum's to help.

Waldemar Brodkorb 10 年之前
父節點
當前提交
f0a8743a60
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      scripts/install.sh

+ 2 - 1
scripts/install.sh

@@ -116,7 +116,7 @@ shift $((OPTIND - 1))
 f=0
 case $ostype {
 (Linux)
-	tools="bc mkfs.$fs tune2fs"
+	tools="bc mkfs.$fs tune2fs partprobe"
 	;;
 (Darwin)
 	tools="bc diskutil"
@@ -207,6 +207,7 @@ case $ostype {
 	}
 	function create_fs {
 		(( quiet )) || print "Creating filesystem on ${1}..."
+		partprobe $tgt
 		mkfs.$3 "$1"
 	}
 	function tune_fs {