busybox: fs-resize: clean up and cosmetics

This commit is contained in:
Stefan Saraev 2014-02-22 14:47:40 +02:00
parent 0c96e95f70
commit 03e54f091a

View File

@ -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