blob: 54dd579660b4a5d81c45f383deef11b7e311173c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# SPDX-License-Identifier: GPL-2.0-or-later
. /lib/functions.sh
. /lib/upgrade/common.sh
move_config() {
local partdev
if export_bootdevice && export_partdevice partdev 1; then
mkdir -p /boot
mount -o rw,noatime "/dev/$partdev" /boot
[ -f "/boot/$BACKUP_FILE" ] && mv -f "/boot/$BACKUP_FILE" /
umount /boot
fi
}
boot_hook_add preinit_mount_root move_config
|