EOF
# based on https://blog.chendry.org/2015/02/06/automating-arch-linux-installation.html
# and https://wiki.archlinux.org/index.php/Remastering_the_Install_ISO
EOF
# based on https://blog.chendry.org/2015/02/06/automating-arch-linux-installation.html
# and https://wiki.archlinux.org/index.php/Remastering_the_Install_ISO
s mkdir -p squashfs-root/root/.ssh
s chmod 755 squashfs-root/root/.ssh
s cp ~/.ssh/id_rsa.pub squashfs-root/root/.ssh/authorized_keys
s mkdir -p squashfs-root/root/.ssh
s chmod 755 squashfs-root/root/.ssh
s cp ~/.ssh/id_rsa.pub squashfs-root/root/.ssh/authorized_keys
s rm $sfs
s mksquashfs squashfs-root $sfs -comp xz
# file transfer to wrt is slow, so remove some useless files
s rm $sfs
s mksquashfs squashfs-root $sfs -comp xz
# file transfer to wrt is slow, so remove some useless files