debian-installer-utils: Ensure that /run/systemd/resolve/stub-resolve.conf exists inside /target during in-target execution

This commit is contained in:
Ruben Rodriguez 2022-11-17 16:33:29 -05:00
parent 8f4bf631ab
commit f6be5012c4

View file

@ -23,12 +23,14 @@
# such packages from Debian in order to build the required udeb packages. # such packages from Debian in order to build the required udeb packages.
## ##
VERSION=0 VERSION=1
EXTERNAL='deb-src http://ftp.debian.org/debian stable main' EXTERNAL='deb-src http://ftp.debian.org/debian stable main'
REPOKEY=648ACFD622F3D138 REPOKEY=648ACFD622F3D138
NETINST=true NETINST=true
. ./config . ./config
# Ensure that /run/systemd/resolve/stub-resolve.conf exists inside /target during in-target execution
sed '/mount --bind \/run \/target\/run/amkdir -p /run/systemd/resolve; cp /etc/resolv.conf /run/systemd/resolve/stub-resolve.conf' -i chroot-setup.sh
changelog "Fetch and build as udeb dependency for debian-installer." changelog "Fetch and build as udeb dependency for debian-installer."
compile compile