Set reasonal fstab default

This commit is contained in:
SolidHal 2018-11-04 18:11:20 -06:00
parent ff400231a9
commit 9d25cac20a

View File

@ -36,6 +36,8 @@ then
mkfs.ext4 -F -b 1024 -m 0 -O ^has_journal /dev/mmcblk2p2 mkfs.ext4 -F -b 1024 -m 0 -O ^has_journal /dev/mmcblk2p2
mkdir -p /mnt/mmc/ mkdir -p /mnt/mmc/
rsync -ah --info=progress2 --info=name0 --numeric-ids -x / /mnt/mmc/ rsync -ah --info=progress2 --info=name0 --numeric-ids -x / /mnt/mmc/
#Install a base fstab
echo "/dev/mmcblk2p2 / ext4 defaults 0 1" > /mnt/mmc/etc/fstab
umount /dev/mmcblk2 umount /dev/mmcblk2
echo Running fsck echo Running fsck
e2fsck -p -f /dev/mmcblk2p2 e2fsck -p -f /dev/mmcblk2p2