mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
busybox: fs-resize: clean up and cosmetics
This commit is contained in:
parent
0c96e95f70
commit
03e54f091a
@ -42,22 +42,18 @@ if [ -e /storage/.please_resize_me ] ; then
|
||||
sync
|
||||
umount $PART
|
||||
# TODO: clean up debug
|
||||
echo resizing /storage...
|
||||
echo ""
|
||||
echo ... parted -s -m $DISK rm 2
|
||||
echo "resizing /storage..."
|
||||
echo "this may take a while. please do not reboot or turn off your computer"
|
||||
echo "... parted -s -m $DISK rm 2"
|
||||
parted -s -m $DISK rm 2 &>/dev/null
|
||||
echo ""
|
||||
echo ... parted -s -m $DISK unit b mkpart primary $PART_START 100%
|
||||
echo "... parted -s -m $DISK unit b mkpart primary $PART_START 100%"
|
||||
parted -s -m $DISK unit b mkpart primary $PART_START 100% &>/dev/null
|
||||
echo ""
|
||||
echo ... e2fsck -f -p $PART
|
||||
echo "... e2fsck -f -p $PART"
|
||||
e2fsck -f -p $PART &>/dev/null
|
||||
echo ""
|
||||
echo ... resize2fs $PART
|
||||
echo "... resize2fs $PART"
|
||||
resize2fs $PART &>/dev/null
|
||||
echo ""
|
||||
echo ...done. rebooting in 30s
|
||||
sleep 30
|
||||
echo "...done. rebooting in 15s"
|
||||
sleep 15
|
||||
reboot
|
||||
fi
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user