5ca75b073f
Currently the mount is set to ro in fstab. This changes the entry in fstab to be "defaults" which will make it mount rw on the subsequent reboot. Why do we need it mounted rw? Because the grub.cfg file lives on that filesystem, and we need to change it for things such as kernel bootargs. Verification - install on a virtual machine, check the resulting fstab entry for otaefi being "defaults" - ensure that /boot/efi is now mounted rw on the subsequent reboot Story: 2009964 Task: 45001 Change-Id: I9bf51b1004dc254b8f33d8fd160e546717e7c9f8 Signed-off-by: Jim Somerville <jim.somerville@windriver.com>
27 lines
939 B
Diff
27 lines
939 B
Diff
From: Jim Somerville <jim.somerville@windriver.com>
|
|
Date: Thu, 7 Apr 2022 18:22:07 +0000
|
|
Subject: Make /boot/efi mount as rw
|
|
|
|
Signed-off-by: Jim Somerville <jim.somerville@windriver.com>
|
|
---
|
|
init-ostree-install.sh | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
diff --git a/init-ostree-install.sh b/init-ostree-install.sh
|
|
index cc7a507..e11289a 100644
|
|
--- a/init-ostree-install.sh
|
|
+++ b/init-ostree-install.sh
|
|
@@ -1589,6 +1589,12 @@ if [ -d /sys/firmware/efi/efivars ] ;then
|
|
fi
|
|
fi
|
|
|
|
+############################################
|
|
+# StarlingX: Do not mount the otaefi partition ro in fstab
|
|
+# Caution... If someone resets the /etc/fstab with OSTree this change is lost...
|
|
+echo "Removing ro from otaefi mount in fstab"
|
|
+sed -i "s:\(LABEL=otaefi.*\) ro:\1 defaults:g" ${PHYS_SYSROOT}/ostree/?/etc/fstab
|
|
+
|
|
if [ "$INSTPOST" = "shell" ] ; then
|
|
echo " Entering interactive install shell, please exit to continue when done"
|
|
shell_start
|