diff options
| author | jandob | 2015-11-06 15:22:45 +0100 |
|---|---|---|
| committer | jandob | 2015-11-06 15:22:45 +0100 |
| commit | fad8bbbd6e112a7e8f5cc294a6d5e8dd6208237f (patch) | |
| tree | 8b478a46f27beee46ae47defc2bf0a8e2fff013c | |
| parent | Merge branch 'master' of git.openslx.org:openslx-ng/systemd-init (diff) | |
| download | systemd-init-fad8bbbd6e112a7e8f5cc294a6d5e8dd6208237f.tar.gz systemd-init-fad8bbbd6e112a7e8f5cc294a6d5e8dd6208237f.tar.xz systemd-init-fad8bbbd6e112a7e8f5cc294a6d5e8dd6208237f.zip | |
alternative ramdisk approach
| -rwxr-xr-x | builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh | 5 |
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. |
