summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-02-27 20:19:04 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2016-02-27 20:44:50 +0100
commitf782421d7ec946d094da47b0af8d5c88c92f2e62 (patch)
tree75aefaf844ff0bbf41f706d1ccb88d111d21fa0a
parent466ccd2cda8a77d91e68f9561423187f0fb00f37 (diff)
on Linux partprobe might be useful, but not before every filesystem creation
-rwxr-xr-xscripts/install.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/install.sh b/scripts/install.sh
index df39ba9f8..80d08293f 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -209,7 +209,6 @@ case $ostype {
}
function create_fs {
(( quiet )) || print "Creating filesystem on ${1}..."
- partprobe $tgt
mkfs.$3 "$1"
}
function tune_fs {
@@ -498,6 +497,11 @@ else
fi
dd if="$T/firsttrack" of="$tgt" > /dev/null 2>&1
+if [[ $ostype = Linux ]]; then
+ partprobe $tgt
+ sync
+fi
+
fwdir=$(dirname "$src")
case $target {