diff options
| author | jandob | 2016-03-21 17:20:29 +0100 |
|---|---|---|
| committer | jandob | 2016-03-21 17:20:29 +0100 |
| commit | 9fe608e8bb87691ef36fde6906b847176eadb538 (patch) | |
| tree | 1c80771270691a66c3b1cd150094d3ea9af70c0e /builder/dnbd3-rootfs | |
| parent | add shutdown umount hook (diff) | |
| download | systemd-init-9fe608e8bb87691ef36fde6906b847176eadb538.tar.gz systemd-init-9fe608e8bb87691ef36fde6906b847176eadb538.tar.xz systemd-init-9fe608e8bb87691ef36fde6906b847176eadb538.zip | |
change persistent storage file size to MB
Diffstat (limited to 'builder/dnbd3-rootfs')
| -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 20c06814..5f4996cc 100755 --- a/builder/dnbd3-rootfs/hooks/prepare-root-partition.sh +++ b/builder/dnbd3-rootfs/hooks/prepare-root-partition.sh @@ -5,6 +5,7 @@ core.import "/usr/lib/openslx/tools.sh" core.import exceptions core.import utils core.import logging +type getarg >/dev/null 2>&1 || source /lib/dracut-lib.sh # endregion exceptions.try { @@ -56,8 +57,8 @@ then if [ -n "$persistent_device" ]; then if [ ! -e "$storage_file" ]; then # create sparse file - dd of="$storage_file" bs=1k \ - seek="$SLX_WRITABLE_DEVICE_STORAGE_FILE_MAX_SIZE" count=0 + dd of="$storage_file" bs=1M \ + seek="$SLX_WRITABLE_DEVICE_STORAGE_FILE_MAX_SIZE_MB" count=0 fi persistent_device="$(losetup --find)" losetup "$persistent_device" "$storage_file" @@ -164,7 +165,6 @@ device-add-write-layer "root" "$read_only_partition" "$writable_device" \ } exceptions.catch { - type getarg >/dev/null 2>&1 || source /lib/dracut-lib.sh emergency_shell "error in ${BASH_SOURCE[0]}" } # region vim modline |
