1
0

[FIX] Ajouter le paquet resolvconf

This commit is contained in:
pulsar89.5 2023-09-21 16:09:59 +02:00
parent 40adc73cd0
commit 71dc83c77b

View File

@ -38,7 +38,6 @@ packages:
- action: install
packages:
- locales
- resolvconf
- sudo
- action: remove
packages:
@ -50,7 +49,6 @@ actions:
#!/bin/sh
set -eux
echo "REPORT_ABSENT_SYMLINK=no" | tee /etc/default/resolvconf
- trigger: post-packages
action: |-
@ -62,7 +60,12 @@ actions:
dpkg-reconfigure --frontend=noninteractive locales
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
# Restore resolv.conf symlink
# Install resolvconf
echo resolvconf resolvconf/linkify-resolvconf boolean false | debconf-set-selections
echo "REPORT_ABSENT_SYMLINK=no" >> /etc/default/resolvconf
apt-get -y install resolvconf
echo resolvconf resolvconf/linkify-resolvconf boolean true | debconf-set-selections
rm /etc/default/resolvconf
ln -nsf ../run/resolvconf/resolv.conf /etc/resolv.conf
# Cleanup underlying /run