diff --git a/overlays/mate-fta/etc/fstab b/overlays/mate-fta/etc/fstab new file mode 100644 index 0000000000000000000000000000000000000000..83df18aa5102e67474e43bd41801f569e0124471 --- /dev/null +++ b/overlays/mate-fta/etc/fstab @@ -0,0 +1,6 @@ +# Static information about the filesystems. +# See fstab(5) for details. + +# <file system> <dir> <type> <options> <dump> <pass> +LABEL=BOOT /boot vfat defaults 0 0 +/dev/mmcblk0p2 / ext4 defaults,noatime 0 1 diff --git a/overlays/mate-fta/usr/bin/resize-fs b/overlays/mate-fta/usr/bin/resize-fs deleted file mode 100755 index 5dbccf25a4619df252b7fb3275a3153ce48d7126..0000000000000000000000000000000000000000 --- a/overlays/mate-fta/usr/bin/resize-fs +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh -# This script will attempt to resize the partition and filesystem in order to fill the sdcard - # Credits to rpi-distro https://github.com/RPi-Distro/raspi-config/ - -# Get device and partition numbers/names - # Root Partition - PART_DEV=`findmnt / -o source -n` - - # Remove '/dev/' from the name - PART_NAME=`echo $PART_DEV | cut -d "/" -f 3` - - # Set just the name of the device, usually mmcblk0 - DEV_NAME=`echo /sys/block/*/${PART_NAME} | cut -d "/" -f 4` - - # Add /dev/ to device name - DEV="/dev/${DEV_NAME}" - - # Get Number of device as single digit integer - PART_NUM=`cat /sys/block/${DEV_NAME}/${PART_NAME}/partition` - - # Get size of SDCard (final sector) - SECTOR_SIZE=`cat /sys/block/${DEV_NAME}/size` - - # Set the ending sector that the partition should be resized too - END_SECTOR=`expr $SECTOR_SIZE - 1` - -#growpartfs $PART_DEV - -# resize the partition -parted -m $DEV u s resizepart $PART_NUM $END_SECTOR - -# reload the partitions in the kernel -partprobe - -# resize -resize2fs $PART_DEV - -#sudo systemctl disable resize-fs.service - -#reboot - -