Skip to content
Snippets Groups Projects
Commit 63571cb5 authored by Daniel Golle's avatar Daniel Golle
Browse files

x86: keep /boot mounted for kexec

parent 72967676
No related branches found
No related tags found
No related merge requests found
......@@ -7,11 +7,14 @@ move_config() {
. /lib/upgrade/common.sh
if export_bootdevice && export_partdevice partdev 1; then
if mount -t ext4 -o rw,noatime "/dev/$partdev" /mnt; then
if [ -f /mnt/sysupgrade.tgz ]; then
mv -f /mnt/sysupgrade.tgz /
mkdir -p /boot
if mount -t ext4 -o ro,noatime "/dev/$partdev" /boot; then
if [ -f /boot/sysupgrade.tgz ]; then
mount /boot -o remount,rw,noatime
mv -f /boot/sysupgrade.tgz /
mount /boot -o remount,ro,noatime
fi
umount /mnt
mount --bind /boot/boot /boot
fi
fi
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment