summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2020-08-26 15:03:07 -0500
committerJohn Klug <john.klug@multitech.com>2020-11-12 09:26:20 -0600
commit7b242188a17ec9f7bc626c0685b2d7f486564b66 (patch)
treeffbf7384d976b8efe41d26c60d18db827f99a13f
parent4e8611566547526cc7b57d2d6f9e558b1efe411d (diff)
downloadmeta-mlinux-7b242188a17ec9f7bc626c0685b2d7f486564b66.tar.gz
meta-mlinux-7b242188a17ec9f7bc626c0685b2d7f486564b66.tar.bz2
meta-mlinux-7b242188a17ec9f7bc626c0685b2d7f486564b66.zip
Account for the noexec flag when doing a script-based upgrade.
-rw-r--r--recipes-core/initscripts/initscripts-1.0/umountfs3
-rw-r--r--recipes-core/initscripts/initscripts_1.0.bbappend2
2 files changed, 4 insertions, 1 deletions
diff --git a/recipes-core/initscripts/initscripts-1.0/umountfs b/recipes-core/initscripts/initscripts-1.0/umountfs
index 9c36bd3..b100086 100644
--- a/recipes-core/initscripts/initscripts-1.0/umountfs
+++ b/recipes-core/initscripts/initscripts-1.0/umountfs
@@ -251,6 +251,9 @@ flash_upgrade() {
# flash-root to read-only
if ((upgrade_script == 1)) ; then
if (cd ${flash_dir};tar -xf ${upgrade_file}) ; then
+ if ! [[ -x ${flash_dir}/${install_file} ]]
+ /bin/mount -o remount,exec ${flash_root}
+ fi
exec ${flash_dir}/${install_file} ${flash_root}
else
echo "Extraction of ${upgrade_file} failed"
diff --git a/recipes-core/initscripts/initscripts_1.0.bbappend b/recipes-core/initscripts/initscripts_1.0.bbappend
index af7b258..c5bd486 100644
--- a/recipes-core/initscripts/initscripts_1.0.bbappend
+++ b/recipes-core/initscripts/initscripts_1.0.bbappend
@@ -3,4 +3,4 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
# flash on reboot/umountfs needs regular umount (not busybox)
RDEPENDS_${PN} += "util-linux-umount util-linux-mount bash"
-PR .= ".43"
+PR .= ".44"