]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dmsquash-live-root: use blockdev with --getsz
authorHarald Hoyer <harald@redhat.com>
Thu, 4 Mar 2010 15:49:51 +0000 (16:49 +0100)
committerHarald Hoyer <harald@redhat.com>
Thu, 4 Mar 2010 15:49:51 +0000 (16:49 +0100)
Thanks Karel for pointing this out.. again :)

modules.d/90dmsquash-live/dmsquash-live-root

index e2e3ef86f1655adfd1bb27b04fa6be4941a736a8..b1754dc96da30b5aa6b8b774b0a27f0428664c7c 100755 (executable)
@@ -96,7 +96,7 @@ do_live_overlay() {
     fi
 
     # set up the snapshot
-    echo 0 `blockdev --getsize64 $BASE_LOOPDEV` snapshot $BASE_LOOPDEV $OVERLAY_LOOPDEV p 8 | dmsetup create $readonly_overlay live-rw
+    echo 0 `blockdev --getsz $BASE_LOOPDEV` snapshot $BASE_LOOPDEV $OVERLAY_LOOPDEV p 8 | dmsetup create $readonly_overlay live-rw
 }
 
 # live cd helper function
@@ -169,7 +169,7 @@ fi
 if [ -b "$OSMIN_LOOPDEV" ]; then
     # set up the devicemapper snapshot device, which will merge
     # the normal live fs image, and the delta, into a minimzied fs image
-    echo "0 $( blockdev --getsize64 $BASE_LOOPDEV ) snapshot $BASE_LOOPDEV $OSMIN_LOOPDEV p 8" | dmsetup create --readonly live-osimg-min
+    echo "0 $( blockdev --getsz $BASE_LOOPDEV ) snapshot $BASE_LOOPDEV $OSMIN_LOOPDEV p 8" | dmsetup create --readonly live-osimg-min
 fi
 
 ln -s /dev/mapper/live-rw /dev/root