From 894134fd3077d4513ea79893c62b25bb9564d52e Mon Sep 17 00:00:00 2001 From: Ivan Berezovskiy Date: Tue, 16 Jul 2013 15:47:58 +0400 Subject: [PATCH] Fix for mounted readonly filesystem for Fedora 19 Change-Id: Ie168618924116f88ef4ec46f59e79818239b4c70 Fixes: bug #1201774 --- elements/vm/finalise.d/51-grub | 3 +++ 1 file changed, 3 insertions(+) diff --git a/elements/vm/finalise.d/51-grub b/elements/vm/finalise.d/51-grub index fd3862872..9e03504f3 100755 --- a/elements/vm/finalise.d/51-grub +++ b/elements/vm/finalise.d/51-grub @@ -100,4 +100,7 @@ sed -i "s%root=UUID=[A-Za-z0-9\-]*%root=LABEL=cloudimg-rootfs%" $GRUB_CFG if [ $DIST = 'Fedora' ] ; then # enable serial console sed -i "s%LABEL=cloudimg-rootfs%LABEL=cloudimg-rootfs console=tty0 console=ttyS0,115200%" $GRUB_CFG + if [ $(lsb_release -rs) = '19' ]; then + sed -i "s%UUID=[A-Za-z0-9\-]*%LABEL=cloudimg-rootfs%" /etc/fstab + fi fi