Permalink
Browse files

Check filesystem on ODROID before resize

  • Loading branch information...
NEMS Linux
NEMS Linux committed Sep 8, 2018
1 parent 856b175 commit 0cb458c51791a7c636373e8765aff6351451fade
Showing with 1 addition and 0 deletions.
  1. +1 −0 resize_rootfs/odroid-stage2
@@ -1,5 +1,6 @@
#!/bin/bash
ROOTFS=`ls -l /dev/disk/by-uuid/ | grep "e139ce78-9841-40fe-8823-96a304a09859" | awk '{print $11}' | sed "s/\.\.\/\.\.\///" | sed "s/p1//"`
e2fsck -f /dev/$ROOTFS
/sbin/resize2fs /dev/$ROOTFS
sed -i "s,/root/nems/nems-admin/resize_rootfs/odroid-stage2,,g" /etc/rc.local
#reboot

0 comments on commit 0cb458c

Please sign in to comment.