mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
fs-resize: print error if disk or partition was not deteced
This commit is contained in:
parent
c6a6dc3f0e
commit
2f27d3ac97
@ -53,6 +53,9 @@ if [ -e /storage/.please_resize_me ] ; then
|
||||
StartProgress spinner "Checking file system... " "e2fsck -f -p $PART &>/dev/null"
|
||||
StartProgress spinner "Resizing file system... " "resize2fs $PART &>/dev/null"
|
||||
StartProgress countdown "Rebooting in 15s... " 15 "NOW"
|
||||
else
|
||||
echo "Partition was not detected - resizing aborted."
|
||||
StartProgress countdown "Rebooting in 15s... " 15 "NOW"
|
||||
fi
|
||||
fi
|
||||
reboot -f &>/dev/null
|
||||
|
Loading…
x
Reference in New Issue
Block a user