aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorTomasz Maciej Nowak <tomek_n@o2.pl>2018-11-28 20:44:21 +0100
committerJohn Crispin <john@phrozen.org>2018-12-03 07:38:20 +0100
commitc288ad9c2b2a4ab62e4c887f13f220870911cc28 (patch)
treec4a69e4b7d415b51d4172881f88b50e51412cd28 /target/linux
parent9808bd279927bcd2d3a78d19a55229b93bbbcf05 (diff)
downloadupstream-c288ad9c2b2a4ab62e4c887f13f220870911cc28.tar.gz
upstream-c288ad9c2b2a4ab62e4c887f13f220870911cc28.tar.bz2
upstream-c288ad9c2b2a4ab62e4c887f13f220870911cc28.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>
Diffstat (limited to 'target/linux')
-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
}