mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 15:02:32 +00:00
x86: keep /boot mounted for kexec
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit 63571cb56c
)
This commit is contained in:
parent
6b9eb0c73a
commit
90575776b7
@ -7,11 +7,14 @@ move_config() {
|
|||||||
. /lib/upgrade/common.sh
|
. /lib/upgrade/common.sh
|
||||||
|
|
||||||
if export_bootdevice && export_partdevice partdev 1; then
|
if export_bootdevice && export_partdevice partdev 1; then
|
||||||
if mount -t ext4 -o rw,noatime "/dev/$partdev" /mnt; then
|
mkdir -p /boot
|
||||||
if [ -f /mnt/sysupgrade.tgz ]; then
|
if mount -t ext4 -o ro,noatime "/dev/$partdev" /boot; then
|
||||||
mv -f /mnt/sysupgrade.tgz /
|
if [ -f /boot/sysupgrade.tgz ]; then
|
||||||
|
mount /boot -o remount,rw,noatime
|
||||||
|
mv -f /boot/sysupgrade.tgz /
|
||||||
|
mount /boot -o remount,ro,noatime
|
||||||
fi
|
fi
|
||||||
umount /mnt
|
mount --bind /boot/boot /boot
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user