Search
j0ke.net Open Build Service
>
Projects
>
home:jg
:
playground
>
dracut
> 0039-dmsquash-live-root-use-blockdev-with-getsz.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0039-dmsquash-live-root-use-blockdev-with-getsz.patch of Package dracut
From f32cc501ae257e7d44f300cd2244fa06f7abb50c Mon Sep 17 00:00:00 2001 From: Harald Hoyer <harald@redhat.com> Date: Thu, 4 Mar 2010 16:49:51 +0100 Subject: [PATCH] dmsquash-live-root: use blockdev with --getsz Thanks Karel for pointing this out.. again :) --- modules.d/90dmsquash-live/dmsquash-live-root | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules.d/90dmsquash-live/dmsquash-live-root b/modules.d/90dmsquash-live/dmsquash-live-root index e2e3ef8..b1754dc 100755 --- a/modules.d/90dmsquash-live/dmsquash-live-root +++ b/modules.d/90dmsquash-live/dmsquash-live-root @@ -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 -- 1.8.3.1