This commit is contained in:
Nico Schottelius 2019-12-14 17:24:25 +01:00
parent 279f86a1f0
commit 3f2dece3f5

View file

@ -16,16 +16,18 @@ outdir=$1; shift
date=$(date +%F) date=$(date +%F)
dir=${outdir}/${suite}-${date} basename=${suite}-${date}
kernel=kernel-${dir} dir=${outdir}/${basename}
initramfs=initramfs-${dir} kernel=${outdir}/kernel-${basename}
initramfs=${outdir}/initramfs-${basename}
keyurl=https://code.ungleich.ch/ungleich-public/__ungleich_staff_ssh_access/raw/master/files keyurl=https://code.ungleich.ch/ungleich-public/__ungleich_staff_ssh_access/raw/master/files
debootstrap "${suite}" "${dir}" debootstrap "${suite}" "${dir}"
# need non-free for firmware-bnx2 # need non-free for firmware-bnx2
echo 'deb http://pkgmaster.devuan.org/merged ${suite} main contrib non-free' > ${dir}/etc/apt/sources.list echo "deb http://pkgmaster.devuan.org/merged ${suite} main contrib non-free" > ${dir}/etc/apt/sources.list
chroot ${dir} apt update
chroot ${dir} apt install -y openssh-server rdnssd linux-image-amd64 firmware-bnx2 chroot ${dir} apt install -y openssh-server rdnssd linux-image-amd64 firmware-bnx2
@ -62,8 +64,6 @@ eof
ifup "\${dev}" ifup "\${dev}"
exit 0 exit 0
EOF EOF
# ensure there is /init in the initramfs -> otherwise there is a kernel panic # ensure there is /init in the initramfs -> otherwise there is a kernel panic
@ -71,4 +71,5 @@ EOF
# in our case, they are just the same # in our case, they are just the same
ln -s /sbin/init ${dir}/init ln -s /sbin/init ${dir}/init
# Finally building the initramfs
( cd ${dir} ; find . | cpio -H newc -o | gzip -9 > ${initramfs} ) ( cd ${dir} ; find . | cpio -H newc -o | gzip -9 > ${initramfs} )