Disallow upgrade if running overlay rootfs is detected

This commit is contained in:
archandanime
2023-10-03 09:16:00 +07:00
committed by GitHub
parent 0e9b847c5d
commit 01e9937a63

View File

@@ -1,5 +1,12 @@
#!/bin/sh
if df / | grep -q overlayfs; then
echo "Unable to upgrade because rootfs is overlay"
echo "Please disable rootfs overlay by setting ENABLE_OVERLAY_IMAGE=\"false\" in wz_mini.conf and reboot first"
echo "You can change it back after upgrade is finished"
exit 1
fi
if [ -L /dev/fd ]; then
echo "fd exists" > /dev/null
else