Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1189299 > unrolled thread
| Started by | Leandro Lucarella <luca-debian@llucax.com> |
|---|---|
| First post | 2024-03-06 21:50 +0100 |
| Last post | 2024-03-06 22:00 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.debian.bugs.dist
Bug#1065573: kxc: initramfs script writes a line to resolv.conf with $IPV4DNS0 even if empty Leandro Lucarella <luca-debian@llucax.com> - 2024-03-06 21:50 +0100
Bug#1065573: Wrong patch Leandro Lucarella <luca@llucax.com> - 2024-03-06 22:00 +0100
| From | Leandro Lucarella <luca-debian@llucax.com> |
|---|---|
| Date | 2024-03-06 21:50 +0100 |
| Subject | Bug#1065573: kxc: initramfs script writes a line to resolv.conf with $IPV4DNS0 even if empty |
| Message-ID | <If6n8-eSnw-5@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
Package: kxc Version: 0.15-4.1+b1 Severity: important Tags: patch Dear Maintainer, The script /usr/share/initramfs-tools/scripts/init-premount/kxc-premount-net writes a line to /etc/resolv.conf adding a "nameserver $IPV4DNS0" even if that environment variable is empty. If I understand correctly that variable is only set if a DNS is passed via the ip= kernel parameter. Popular simple configurations like ip=dhcp will then have no DNS server set there, which will end up with a bad /etc/resolv.conf line with "namesever ". -- System Information: Debian Release: trixie/sid APT prefers testing APT policy: (990, 'testing'), (500, 'stable'), (300, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 6.4.0-1-amd64 (SMP w/8 CPU threads; PREEMPT) Kernel taint flags: TAINT_CPU_OUT_OF_SPEC, TAINT_USER, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8), LANGUAGE=en_IE:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages kxc depends on: ii cryptsetup 2:2.6.1-6+b1 ii kxgencert 0.15-4.1+b1 kxc recommends no packages. kxc suggests no packages. -- no debconf information
[toc] | [next] | [standalone]
| From | Leandro Lucarella <luca@llucax.com> |
|---|---|
| Date | 2024-03-06 22:00 +0100 |
| Subject | Bug#1065573: Wrong patch |
| Message-ID | <If6wN-eSqX-9@gated-at.bofh.it> |
| In reply to | #1189299 |
[Multipart message — attachments visible in raw view] — view raw
Damn, the patch is wrong, it should be something like:
if ! [ -s /etc/resolv.conf ] && [ -n "$IPV4DNS0" ]; then
echo "nameserver $IPV4DNS0" >> /etc/resolv.conf
fi
--
Leandro Lucarella (Luca)
https://llucax.com
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.bugs.dist
csiph-web