[alpine/netboot] fix rdnssd until -r5 of rdnssd is installed
This commit is contained in:
parent
9477e8b589
commit
bc568d7151
1 changed files with 16 additions and 1 deletions
|
@ -12,7 +12,7 @@ set -x
|
|||
SSH_KEYS=$1; shift
|
||||
|
||||
MAJOR_VERSION=3.13
|
||||
MINOR_VERSION=2
|
||||
MINOR_VERSION=5
|
||||
IMAGE=alpine-minirootfs-$MAJOR_VERSION.$MINOR_VERSION-x86_64.tar.gz
|
||||
|
||||
RESOLVCONF=/etc/resolv.conf
|
||||
|
@ -63,6 +63,21 @@ run_root rc-update add networking
|
|||
run_root rc-update add hostname
|
||||
run_root sed -i 's/root:!::0:::::/root:*::0:::::/' /etc/shadow
|
||||
|
||||
# Fix not yet updated initscript for rdnssd
|
||||
sudo tee "$rootfs_tmpdir/etc/init.d/rdnssd" <<EOF
|
||||
#!/sbin/openrc-run
|
||||
|
||||
supervisor=supervise-daemon
|
||||
command=/usr/sbin/rdnssd
|
||||
command_args="-H /etc/rdnssd/resolvconf"
|
||||
command_args_foreground="-f"
|
||||
|
||||
start_pre() {
|
||||
checkpath -d -m 0755 -o nobody:nobody -q /run/rdnssd
|
||||
}
|
||||
|
||||
EOF
|
||||
|
||||
sudo tee "$rootfs_tmpdir/etc/network/interfaces" <<EOF
|
||||
auto lo
|
||||
iface lo inet loopback
|
||||
|
|
Loading…
Reference in a new issue