mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-15 19:31:42 +00:00
Fix resolvconf installation in chroot in some cases
This commit is contained in:
parent
55bb4139e7
commit
0b89533bf1
2 changed files with 8 additions and 0 deletions
|
@ -180,6 +180,9 @@ create_rootfs_cache()
|
|||
# add armhf arhitecture to arm64
|
||||
[[ $ARCH == arm64 ]] && eval 'LC_ALL=C LANG=C chroot $SDCARD /bin/bash -c "dpkg --add-architecture armhf"'
|
||||
|
||||
# this should fix resolvconf installation failure in some cases
|
||||
chroot $SDCARD /bin/bash -c 'echo "resolvconf resolvconf/linkify-resolvconf boolean false" | debconf-set-selections'
|
||||
|
||||
# stage: update packages list
|
||||
display_alert "Updating package list" "$RELEASE" "info"
|
||||
eval 'LC_ALL=C LANG=C chroot $SDCARD /bin/bash -c "apt-get -q -y $apt_extra update"' \
|
||||
|
|
|
@ -295,6 +295,11 @@ post_debootstrap_tweaks()
|
|||
rm -f $SDCARD/sbin/initctl $SDCARD/sbin/start-stop-daemon
|
||||
chroot $SDCARD /bin/bash -c "dpkg-divert --quiet --local --rename --remove /sbin/initctl"
|
||||
chroot $SDCARD /bin/bash -c "dpkg-divert --quiet --local --rename --remove /sbin/start-stop-daemon"
|
||||
|
||||
chroot $SDCARD /bin/bash -c 'echo "resolvconf resolvconf/linkify-resolvconf boolean true" | debconf-set-selections'
|
||||
mkdir -p $SDCARD/var/lib/resolvconf/linkified
|
||||
:> $SDCARD/var/lib/resolvconf/linkified
|
||||
|
||||
rm -f $SDCARD/usr/sbin/policy-rc.d $SDCARD/usr/bin/$QEMU_BINARY
|
||||
|
||||
# reenable resolvconf managed resolv.conf
|
||||
|
|
Loading…
Add table
Reference in a new issue