Skip to content

Commit

Permalink
build-debian: Enable systemd-resolved
Browse files Browse the repository at this point in the history
Fixes #8.
  • Loading branch information
johang committed Jun 17, 2022
1 parent 1b057a2 commit 8e9569e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/build-debian
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ chroot debian /bin/sh -ex <<- EOF
/usr/bin/apt-get clean
/bin/rm -rf /var/lib/apt/lists/*
/usr/bin/systemctl enable systemd-networkd.service
/usr/bin/systemctl enable systemd-resolved.service
/bin/rm -f /var/log/*.log
/bin/echo root:${PASSWORD} | /usr/sbin/chpasswd
/bin/sed -i "s/#*\s*PermitRootLogin .*/PermitRootLogin yes/" /etc/ssh/sshd_config
Expand All @@ -139,6 +140,9 @@ cp -rv --preserve=mode ../2nd-stage-files/post-2nd-stage-files/* debian
# Set hostname
echo "${OS}" > debian/etc/hostname

# Set resolv.conf
ln -sf /run/systemd/resolve/stub-resolv.conf debian/etc/resolv.conf

# List all files
find debian ! -type d -printf "/%P\n" | sort > files.txt

Expand Down

0 comments on commit 8e9569e

Please sign in to comment.