diff options
| -rwxr-xr-x | builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh b/builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh index 2492e493..70c4e1a7 100755 --- a/builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh +++ b/builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh @@ -59,7 +59,7 @@ if [ -n "$persistent_device" ]; then fi else local ramdisk_size="$SLX_RAMDISK_SIZE" - if [ "ramdisk_size" = "" ]; then + if [ "$ramdisk_size" = "" ]; then ramdisk_size=$(cat /proc/meminfo | awk '/MemTotal/ {print $2}') fi modprobe brd max_part=1 rd_size=$ramdisk_size |
