Run sync and partprobe after wiping fs 51/851/1
authorBaha Mesleh <baha.mesleh@nokia.com>
Sat, 25 May 2019 22:01:45 +0000 (01:01 +0300)
committerBaha Mesleh <baha.mesleh@nokia.com>
Sat, 25 May 2019 22:01:45 +0000 (01:01 +0300)
Make sure that the cached data is flushed before exiting from the service which wipes the fs.

Signed-off-by: Baha Mesleh <baha.mesleh@nokia.com>
Change-Id: Icd58f028d99eac98064dfc98219e9e87bc9e4399

work/dib-ipa-element/virtmedia-netconf/ironic-virtmedia-netconfig/bin/erase-oldfs.sh

index 4e2c909..ffe0377 100755 (executable)
@@ -66,7 +66,9 @@ else
         fi
         wipefs --all /dev/$hd_dev
         sgdisk -Z -o /dev/$hd_dev
-        dd if=/dev/zero of=/dev/$hd_dev bs=1M count=200
+        dd if=/dev/zero of=/dev/$hd_dev bs=1M count=1
     done
+    sync
+    udevadm settle
     partprobe
 fi