summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjandob2015-11-06 15:22:45 +0100
committerjandob2015-11-06 15:22:45 +0100
commitfad8bbbd6e112a7e8f5cc294a6d5e8dd6208237f (patch)
tree8b478a46f27beee46ae47defc2bf0a8e2fff013c
parentMerge branch 'master' of git.openslx.org:openslx-ng/systemd-init (diff)
downloadsystemd-init-fad8bbbd6e112a7e8f5cc294a6d5e8dd6208237f.tar.gz
systemd-init-fad8bbbd6e112a7e8f5cc294a6d5e8dd6208237f.tar.xz
systemd-init-fad8bbbd6e112a7e8f5cc294a6d5e8dd6208237f.zip
alternative ramdisk approach
-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.