Permalink
Browse files

Polish the XU4 resizer

  • Loading branch information...
NEMS Linux
NEMS Linux committed Oct 24, 2018
1 parent 4dcddab commit 9776dbc14be1c7c3047a01fe5e5d77765697d7d5
Showing with 4 additions and 3 deletions.
  1. +4 −3 resize_rootfs/odroid-stage2
@@ -7,14 +7,15 @@ BOOTDEVICE=`ls -l /dev/disk/by-uuid/ | grep 96C3-9298 | awk '{print $11}' | sed
NEMSPART=${BOOTDEVICE}p2
echo "Stage 2 on $NEMSPART" >> $rslog
e2fsck -y -f /dev/$NEMSPART >> $rslog
echo "-------- Resize --------" >> $rslog
/sbin/resize2fs /dev/$NEMSPART >> $rslog
/sbin/resize2fs /dev/$NEMSPART >> $rslog 2>&1
echo "-------- /Resize -------" >> $rslog
e2fsck -y -f /dev/$NEMSPART >> $rslog
sed -i "s,/root/nems/nems-admin/resize_rootfs/odroid-stage2,,g" /etc/rc.local
echo "Done" >> $rslog
df -h / >> $rslog
# Force FSCK to run at next boot just for good measure
touch /forcefsck
sync
reboot

0 comments on commit 9776dbc

Please sign in to comment.