diff options
Diffstat (limited to 'builder/dnbd3-rootfs/hooks/prepare-root-partition.sh')
-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 |