openwrt/package/base-files/files/lib/upgrade
Daniel Golle a2b9ec0231
base-files: upgrade: take down loop and LVM before upgrade
Users of devices with large block storage may choose to have an LVM
partition on the same device which is used for booting OpenWrt.
The presents a problem during sysupgrade as the root device is then
still busy and changing partitions will not work as desired,
leading to data corruption in case the newly flashed image is larger
than the currently installed one.
Having loop devices setup causes similar havoc.
Make sure all volume groups are offline and all loop devices have been
released before sysupgrade.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2021-05-05 13:18:43 +01:00
..
keep.d base-files: Add /etc/shinit for non-login shell init 2020-03-01 21:35:59 +01:00
common.sh base-files: functions: introduce new helper functions 2021-03-31 16:53:39 +01:00
do_stage2 treewide: sysupgrade: use $UPGRADE_BACKUP to check for backup 2019-09-11 09:05:35 +02:00
fwtool.sh base-files: upgrade: fwtool.sh: rewording logs 2020-11-11 21:29:55 +08:00
nand.sh base-files: remove unneeded '$' signs in nand.sh 2021-02-24 11:42:02 +00:00
stage2 base-files: upgrade: take down loop and LVM before upgrade 2021-05-05 13:18:43 +01:00