mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +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
|
sync
|
||||||
umount $PART
|
umount $PART
|
||||||
# TODO: clean up debug
|
# TODO: clean up debug
|
||||||
echo resizing /storage...
|
echo "resizing /storage..."
|
||||||
echo ""
|
echo "this may take a while. please do not reboot or turn off your computer"
|
||||||
echo ... parted -s -m $DISK rm 2
|
echo "... parted -s -m $DISK rm 2"
|
||||||
parted -s -m $DISK rm 2 &>/dev/null
|
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
|
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
|
e2fsck -f -p $PART &>/dev/null
|
||||||
echo ""
|
echo "... resize2fs $PART"
|
||||||
echo ... resize2fs $PART
|
|
||||||
resize2fs $PART &>/dev/null
|
resize2fs $PART &>/dev/null
|
||||||
echo ""
|
echo "...done. rebooting in 15s"
|
||||||
echo ...done. rebooting in 30s
|
sleep 15
|
||||||
sleep 30
|
|
||||||
reboot
|
reboot
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user