From 31511dfc190aecb6dd49be78b17fc870a26c3fa5 Mon Sep 17 00:00:00 2001 From: John Klug Date: Fri, 28 May 2021 05:00:10 -0500 Subject: Flash upgrade fails from SD card --- recipes-core/initscripts/initscripts-1.0/umountfs | 2 ++ recipes-core/initscripts/initscripts_1.0.bbappend | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'recipes-core/initscripts') diff --git a/recipes-core/initscripts/initscripts-1.0/umountfs b/recipes-core/initscripts/initscripts-1.0/umountfs index b044a4a..dd78a0e 100644 --- a/recipes-core/initscripts/initscripts-1.0/umountfs +++ b/recipes-core/initscripts/initscripts-1.0/umountfs @@ -265,6 +265,8 @@ flash_upgrade() { return 1 fi + # Keep flash_root mounted + cd ${flash_root} # Run the upgrade script, if it exists, before we change # flash-root to read-only if ((upgrade_script == 1)) ; then diff --git a/recipes-core/initscripts/initscripts_1.0.bbappend b/recipes-core/initscripts/initscripts_1.0.bbappend index 537fbee..6e0e9f3 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 .= ".46" +PR .= ".47" -- cgit v1.2.3