blob: 96e636ee81c0633cf9815db3423772e4eba820e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
move_config() {
local partdev
. /lib/upgrade/common.sh
if export_bootdevice && export_partdevice partdev 1; then
if mount -o rw,noatime "/dev/$partdev" /mnt; then
if [ -f "/mnt/$BACKUP_FILE" ]; then
mv -f "/mnt/$BACKUP_FILE" /
fi
umount /mnt
fi
fi
}
boot_hook_add preinit_mount_root move_config
|