From c719356d6bc7cde7f2e22d677ffdfcb905526d02 Mon Sep 17 00:00:00 2001 From: jandob Date: Thu, 3 Dec 2015 18:20:38 +0100 Subject: fix --- builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-55-g7522