Pass a new (SNF_IMAGE_)ROOT variable to the helper
authorNikos Skalkotos <skalkoto@grnet.gr>
Thu, 3 Nov 2011 15:15:15 +0000 (17:15 +0200)
committerNikos Skalkotos <skalkoto@grnet.gr>
Thu, 3 Nov 2011 15:15:15 +0000 (17:15 +0200)
For {ext,ntfs}dump this is always 1.
For diskdump this is an image property

snf-image-host/create

index 22c44c0..7c3d896 100755 (executable)
@@ -68,6 +68,7 @@ case "$IMAGE_TYPE" in
 
         target="$(map_disk0 "$blockdev")-1" #the root device
         add_cleanup unmap_disk0 "$blockdev"
+        snf_export_ROOT=1
         ;;
     diskdump)
         target="$blockdev"