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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,12 @@
#!/bin/sh #!/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 if [ -L /dev/fd ]; then
echo "fd exists" > /dev/null echo "fd exists" > /dev/null
else else