aboutsummaryrefslogtreecommitdiffstats
path: root/common/mentor-swupdate/recipes-core/initrdscripts/files/0006-init-install-efi-don-t-unnecessarily-set-the-rootfs-.patch
blob: e5c037024751b66ddfb9bce7c6826160704fb7cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 74e5fc2d0044f474b42f83918ddd70658fb2013a Mon Sep 17 00:00:00 2001
From: Awais Belal <awais_belal@mentor.com>
Date: Wed, 16 Jan 2019 16:15:56 +0500
Subject: [PATCH 6/7] init-install-efi: don't unnecessarily set the rootfs to
 rw

Specifically in swupdate we use a ro rootfs.

Signed-off-by: Awais Belal <awais_belal@mentor.com>
---
 init-install-efi.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/init-install-efi.sh b/init-install-efi.sh
index cdab4d6..efe0c64 100644
--- a/init-install-efi.sh
+++ b/init-install-efi.sh
@@ -305,7 +305,7 @@ if [ -f /run/media/$1/EFI/BOOT/grub.cfg ]; then
     grub-editenv $GRUBENV set "FB_RFS=PARTUUID=$root_part_uuid"
     # Replace root= and add additional standard boot options
     # We use root as a sentinel value, as vmlinuz is no longer guaranteed
-    sed -i "s/ root=[^ ]*/ root=\$RFS rw $rootwait quiet /g" $GRUBCFG
+    sed -i "s/ root=[^ ]*/ root=\$RFS $rootwait quiet /g" $GRUBCFG
     # Mentor - SWUpdate - create our fallback menuentry
     sed -i "1ifallback=1" $GRUBCFG
     cmd=$(grep "linux " $GRUBCFG)
-- 
2.11.1