# 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