SWAP file got holes on transfer ... recreating it in the install process.

This commit is contained in:
Igor Pecovnik 2017-01-21 19:09:19 +01:00
parent d1008532e3
commit fc9957dffe

View File

@ -231,6 +231,9 @@ create_armbian()
echo "$sduuid /media/mmcboot ext4 ${mountopts[ext4]}" >> /mnt/rootfs/etc/fstab
echo "/media/mmcboot/boot /boot none bind 0 0" >> /mnt/rootfs/etc/fstab
echo "$satauuid / $FilesystemChoosen ${mountopts[$FilesystemChoosen]}" >> /mnt/rootfs/etc/fstab
# recreate swap file
dd if=/dev/zero of=/mnt/rootfs/var/swap bs=1M count=128
mkswap /mnt/rootfs/var/swap
fi
umountdevice "/dev/sda"