diff options
author | Alessandro Elias | 2016-02-16 15:49:24 +0100 |
---|---|---|
committer | Alessandro Elias | 2016-02-16 15:49:24 +0100 |
commit | cb739f172b5b07fef352d846ca8285a5c2ca284f (patch) | |
tree | 1a288ec5348289205bb1fd7d47750006cc706c50 | |
parent | Ignore xmount. (diff) | |
download | systemd-init-cb739f172b5b07fef352d846ca8285a5c2ca284f.tar.gz systemd-init-cb739f172b5b07fef352d846ca8285a5c2ca284f.tar.xz systemd-init-cb739f172b5b07fef352d846ca8285a5c2ca284f.zip |
Fixed command qemu-img, duplicated.
Signed-off-by: Alessandro Elias <ae11@c3sl.ufpr.br>
-rwxr-xr-x | builder/dnbd3-rootfs/hooks/prepare-root-partition.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/builder/dnbd3-rootfs/hooks/prepare-root-partition.sh b/builder/dnbd3-rootfs/hooks/prepare-root-partition.sh index 1cd5a5be..52426180 100755 --- a/builder/dnbd3-rootfs/hooks/prepare-root-partition.sh +++ b/builder/dnbd3-rootfs/hooks/prepare-root-partition.sh @@ -46,8 +46,8 @@ else # configured via kernel command line: "brd.rd_size=SITE_IN_KILOBYTE" # statically: #! rmmod brd 2>/dev/null - #modprobe brd max_part=1 rd_size="$ramdisk_size" - #writable_device='/dev/ram0' + modprobe brd max_part=1 rd_size="$ramdisk_size" + writable_device='/dev/ram0' ramdisk_location="$(mktemp)" dd of="$ramdisk_location" seek="$ramdisk_size" count=0 1>/dev/null writable_device="$(losetup --find)" @@ -89,7 +89,7 @@ fi # region scan partitions read_only_device="" -if utils.dependency_check qemu-img && ! qemu-img qemu-img info \ +if utils.dependency_check qemu-img && ! qemu-img info \ "$SLX_DNBD3_DEVICE" | grep 'file format: raw' then read_only_device="$(container-unpack-xmount $SLX_DNBD3_DEVICE)" |