Browse Source

add some debug output, which has the nice side effect to fix timing issues while creating filesystems while partition tables isn't uptodate

Waldemar Brodkorb 6 years ago
parent
commit
50b716ced8
1 changed files with 5 additions and 2 deletions
  1. 5 2
      scripts/install.sh

+ 5 - 2
scripts/install.sh

@@ -118,7 +118,7 @@ shift $((OPTIND - 1))
 f=0
 case $ostype {
 (Linux)
-	tools="bc mkfs.$fs tune2fs partprobe"
+	tools="bc mkfs.ext4 mkfs.vfat tune2fs partprobe"
 	;;
 (Darwin)
 	tools="bc diskutil"
@@ -504,8 +504,11 @@ fi
 dd if="$T/firsttrack" of="$tgt" > /dev/null 2>&1
 
 if [[ $ostype = Linux ]]; then
-  partprobe $tgt
+  echo partprobe $tgt
+  partprobe -s $tgt
   sync
+  fdisk -l $tgt
+  ls -la ${tgt}*
 fi
 
 fwdir=$(dirname "$src")