Run partprobe after diskpart.py
authorNikos Skalkotos <skalkoto@grnet.gr>
Wed, 29 Jan 2014 13:28:49 +0000 (15:28 +0200)
committerNikos Skalkotos <skalkoto@grnet.gr>
Wed, 29 Jan 2014 13:28:49 +0000 (15:28 +0200)
After disklabel.py enlarges the partition the kernel must be
informed about this

snf-image-helper/tasks/10FixPartitionTable.in

index 0e489a3..a0388d2 100644 (file)
@@ -37,6 +37,8 @@ fi
 
 if [ "$SNF_IMAGE_PROPERTY_OSFAMILY" = openbsd ]; then
     @scriptsdir@/disklabel.py -d "$(blockdev --getsz "$SNF_IMAGE_DEV")" -p "$SNF_IMAGE_DEV"
+    # Inform the kernel about the changes
+    partprobe "$SNF_IMAGE_DEV"
     exit 0
 fi