summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiří Klimeš <jklimes@redhat.com>2014-01-30 17:08:02 +0100
committerThomas Haller <thaller@redhat.com>2014-06-30 17:42:09 +0200
commitdc872b7e52e111c26011ab674b40d6348776b250 (patch)
tree0b5d67bd4925e397ce63dbfc36e3e3865ca4026f
parent26626c75c3a013a1d82d7ea1586c0a7dbcede101 (diff)
downloadNetworkManager-dc872b7e52e111c26011ab674b40d6348776b250.tar.gz
contrib/nm-live-vm: add rootfstype=ramfs kernel parameter to run.sh
Kernel changed default filesystem for roots from ramfs to tmpfs. See http://lwn.net/Articles/559176/ for more information. The change caused our initramfs to be mounted with size= parameter that equals to the actual size of unpacked initramfs. That's why mounted / was full and no space was available (without manual remounting: mount -o remount,size=100% /). So we explicitly require usage of ramfs to have all RAM of the virtual machine available for /. Signed-off-by: Jiří Klimeš <jklimes@redhat.com>
-rwxr-xr-xcontrib/fedora/nm-live-vm/run.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/fedora/nm-live-vm/run.sh b/contrib/fedora/nm-live-vm/run.sh
index fb018da263..7a5acbb7c1 100755
--- a/contrib/fedora/nm-live-vm/run.sh
+++ b/contrib/fedora/nm-live-vm/run.sh
@@ -16,7 +16,7 @@ if [ "$OS" == "Red Hat Enterprise Linux" ]; then
PATH=$PATH:/usr/libexec
- qemu-kvm -vnc :0 -m 2048 $NET_OPTIONS -kernel vmlinuz -append video='1024x768' -initrd initramfs.img &
+ qemu-kvm -vnc :0 -m 2048 $NET_OPTIONS -kernel vmlinuz -append "video=1024x768 rootfstype=ramfs" -initrd initramfs.img &
sleep 1
vncviewer localhost
@@ -31,6 +31,5 @@ else
QEMU="qemu-system-$ARCH -enable-kvm"
}
- $QEMU -m 2048 -net nic $NET_OPTIONS -kernel vmlinuz -append video='1024x768' -initrd initramfs.img
-
+ $QEMU -m 2048 -net nic $NET_OPTIONS -kernel vmlinuz -append "video=1024x768 rootfstype=ramfs" -initrd initramfs.img
fi