From fad8bbbd6e112a7e8f5cc294a6d5e8dd6208237f Mon Sep 17 00:00:00 2001 From: jandob Date: Fri, 6 Nov 2015 15:22:45 +0100 Subject: alternative ramdisk approach --- builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 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 adcf02e0..a1a8159d 100755 --- a/builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh +++ b/builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh @@ -23,9 +23,10 @@ local read_only_partition="$(utils_create_partition_via_offset "$nbd_device" \ # TODO implement persistent available indicator. local persistent="N" # 'P' for persistent storage, 'N' for not persistent if true; then + modprobe brd local writable_device="/dev/ram0" && \ - mknod --mode 660 "$writable_device" b 1 1 && \ - chown root:disk "$writable_device" + #mknod --mode 660 "$writable_device" b 1 1 && \ + #chown root:disk "$writable_device" mkfs.ext4 "$writable_device" else # Use next free loop device. -- cgit v1.2.3-55-g7522