From 8ed587eb0ad3c15d1477bb2805f93f04f3d3044e Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 9 Dec 2019 20:04:46 +0100 Subject: [PATCH] rename - script is suitable for debian and devuan --- devuan-netboot.sh | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100755 devuan-netboot.sh diff --git a/devuan-netboot.sh b/devuan-netboot.sh deleted file mode 100755 index 3dbb17f..0000000 --- a/devuan-netboot.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh -# Nico Schottelius, 2019-12-09 - -if [ $# -ne 1 ]; then - echo $0 suite - echo suite is for instance ascii, beowulf, etc - exit 1 -fi - -suite=$1; shift - -date=$(date +%F) - -dir=${suite}-${date} -kernel=${dir}-kernel -keyurl=https://code.ungleich.ch/ungleich-public/__ungleich_staff_ssh_access/raw/master/files - -debootstrap "${suite}" "${dir}" -chroot ${dir} apt install -y openssh-server rdnssd linux-image-amd64 - -cat > ${dir}/etc/network/interfaces << EOF -auto lo -iface lo inet loopback - -auto eth0 -iface eth0 inet6 auto -EOF - -mv ${dir}/boot/vmlinuz-* ${kernel} -rm ${dir}/boot/initrd* -mkdir -p ${dir}/root/.ssh - -for key in balazs dominique jinguk nico; do - curl -s ${keyurl}/${key}.pub >> ${dir}/root/.ssh/authorized_keys -done - -( cd ${dir} ; find . | cpio -H newc -o | gzip -9 > ../${dir}-initramfs )