aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorTomasz Maciej Nowak <tomek_n@o2.pl>2018-11-28 20:44:21 +0100
committerJo-Philipp Wich <jo@mein.io>2018-12-18 17:22:08 +0100
commitfc38aad1949150d13baf0ad7a261beee0768dc60 (patch)
tree12a0420962213711b5d324cca4711ce1b35a7485 /target
parent6b0bafb16b77a5a8e49cbcf0f482bbfcea028cae (diff)
downloadupstream-fc38aad1949150d13baf0ad7a261beee0768dc60.tar.gz
upstream-fc38aad1949150d13baf0ad7a261beee0768dc60.tar.bz2
upstream-fc38aad1949150d13baf0ad7a261beee0768dc60.zip
x86: make sysupgrade.tgz reachable again
Moving binding mount before check for saved sysupgrade configuration made it unreachable. Fix it by moving binding mount after the check. Fixes: f78b2616 (x86: mount writable bootfs) Reported-by: Lucian Cristian <luci@powerneth.ro> Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl> (backported from c288ad9c2b2a4ab62e4c887f13f220870911cc28)
Diffstat (limited to 'target')
-rw-r--r--target/linux/x86/base-files/lib/preinit/79_move_config2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/x86/base-files/lib/preinit/79_move_config b/target/linux/x86/base-files/lib/preinit/79_move_config
index debce43557..aff720a52c 100644
--- a/target/linux/x86/base-files/lib/preinit/79_move_config
+++ b/target/linux/x86/base-files/lib/preinit/79_move_config
@@ -9,10 +9,10 @@ move_config() {
if export_bootdevice && export_partdevice partdev 1; then
mkdir -p /boot
mount -t ext4 -o rw,noatime "/dev/$partdev" /boot
- mount --bind /boot/boot /boot
if [ -f /boot/sysupgrade.tgz ]; then
mv -f /boot/sysupgrade.tgz /
fi
+ mount --bind /boot/boot /boot
fi
}