mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 14:37:59 +00:00
fs-resize: print error if disk or partition was not deteced
This commit is contained in:
parent
47baee87f4
commit
597423a948
@ -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