summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuilder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh5
1 files 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.