mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2025-07-01 17:09:47 +00:00
Disallow upgrade if running overlay rootfs is detected
This commit is contained in:
parent
0e9b847c5d
commit
01e9937a63
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user