mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-07 17:02:30 +00:00
Fix broken DNS in buildd image builds.
Instead of injecting an empty resolv.conf with an includes.chroot, we'll inject it in late with a hook. The empty resolv.conf breaks DNS early in the build, and causes some binary hooks to fail
This commit is contained in:
parent
b628d90ef8
commit
6fed316068
0
live-build/buildd/hooks/49-policy-rc-d.binary → live-build/buildd/hooks/48-policy-rc-d.binary
Normal file → Executable file
0
live-build/buildd/hooks/49-policy-rc-d.binary → live-build/buildd/hooks/48-policy-rc-d.binary
Normal file → Executable file
4
live-build/buildd/hooks/49-empty-resolv-conf.binary
Executable file
4
live-build/buildd/hooks/49-empty-resolv-conf.binary
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
chroot chroot truncate -s 0 /etc/resolv.conf
|
@ -27,10 +27,6 @@ cleanup_linux_virtual() {
|
|||||||
}
|
}
|
||||||
trap cleanup_linux_virtual EXIT
|
trap cleanup_linux_virtual EXIT
|
||||||
|
|
||||||
# The base buildd chroot includes an empty resolv.conf
|
|
||||||
# We don't want to include that in the bootable images
|
|
||||||
rm $mount_d/etc/resolv.conf
|
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
env DEBIAN_FRONTEND=noninteractive chroot "$mount_d" apt-get \
|
env DEBIAN_FRONTEND=noninteractive chroot "$mount_d" apt-get \
|
||||||
update --assume-yes
|
update --assume-yes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user