[alpine initramfs] disable rdnssd - does not yet exist

This commit is contained in:
Nico Schottelius 2020-10-18 10:03:38 +02:00
parent 9ceb2a29ba
commit 81c4cc281f

View file

@ -50,20 +50,14 @@ sudo cp "$RESOLVCONF" $rootfs_tmpdir/etc/resolv.conf
run_root ln -sf /sbin/init /init run_root ln -sf /sbin/init /init
run_root apk update run_root apk update
run_root apk add linux-lts openrc udev openssh rdnssd run_root apk add linux-lts openrc udev openssh
# rdnssd
run_root rc-update add udev run_root rc-update add udev
run_root rc-update add udev-trigger run_root rc-update add udev-trigger
run_root rc-update add sshd run_root rc-update add sshd
run_root rc-update add rdnssd
# Layer atop base rootfs.
# run_root apk add openssh linux-lts openrc udev ndisc6
# run_root rc-update add networking
# run_root rc-update add hostname
# run_root rc-update add rdnssd # run_root rc-update add rdnssd
run_root rc-update add networking
run_root rc-update add hostname
sudo tee "$rootfs_tmpdir/etc/network/interfaces" <<EOF sudo tee "$rootfs_tmpdir/etc/network/interfaces" <<EOF
auto lo auto lo
@ -75,30 +69,16 @@ iface eth0 inet6 manual
pre-up echo 1 > /proc/sys/net/ipv6/conf/eth0/accept_ra pre-up echo 1 > /proc/sys/net/ipv6/conf/eth0/accept_ra
EOF EOF
sudo tee "$rootfs_tmpdir/etc/hostname" <<EOF
alpine-unconfigured
EOF
# Generate iniramfs image # Generate iniramfs image
(cd $rootfs_tmpdir; sudo find . | sudo cpio -H newc -o | gzip -9 > "$working_directory/alpine-initramfs.gz") (cd $rootfs_tmpdir; sudo find . | sudo cpio -H newc -o | gzip -9 > "$working_directory/alpine-initramfs.gz")
cp "$rootfs_tmpdir/boot/vmlinuz-lts" "$working_directory/alpine-kernel" cp "$rootfs_tmpdir/boot/vmlinuz-lts" "$working_directory/alpine-kernel"
echo rm -rf "$rootfs_tmpdir" echo rm -rf "$rootfs_tmpdir"
exit 0
sudo tee "$rootfs_tmpdir/etc/hostname" <<EOF
alpine-unconfigured
EOF
echo ipv6 | sudo tee -a "$rootfs_tmpdir/etc/modules"
# Upload to netboot server. - needs to be done outside sudo
echo "Use alpine-initramfs.gz alpine-kernel from $working_directory"! echo "Use alpine-initramfs.gz alpine-kernel from $working_directory"!
exit 0 exit 0
# FIXME: add / install rdnssd / ndisc6 / start it on boot
# ndisc6 is only @testing
# Cleanup.
#rm -r "$rootfs_tmpdir"