Bug#1057807: dracut-network: broken on sid ("Module 'ifcfg' cannot be found.", and /etc/dracut.conf.d/11-ifcfg.conf add_dracutmodules+=" ifcfg " but modules.d/45ifcfg gone vs bookworm)

2023-12-08 Thread Thomas Lange


A new dracut version 060+5-1 will be available soon.
060+5 is the same as 059+212 because upstream changed its release process.

-- 
reagrds Thomas



Bug#1057807: dracut-network: broken on sid ("Module 'ifcfg' cannot be found.", and /etc/dracut.conf.d/11-ifcfg.conf add_dracutmodules+=" ifcfg " but modules.d/45ifcfg gone vs bookworm)

2023-12-08 Thread наб
On Fri, Dec 08, 2023 at 08:35:11PM +0100, Thomas Lange wrote:
> remove-on-upgrade /etc/dracut.conf.d/11-ifcfg.conf
Just commenting out the file and regenerating did seem to make the initrd,
but it just hung for so-long-I-thought-it's-forever before going into a
minutes-long initqueue crashloop before finally dropping to
an emergency shell.

This revealed it didn't actually generate a sysroot.mount unit at all!

Though running
  mount -t nfs4 tarta:/mnt/filling/machine/1200-S121 /sysroot
corresponding to the
  ip=dhcp root=nfs4:tarta:/mnt/filling/machine/1200-S121
cmdline did work.

As usual with dracut,
breaking out of the shell after mounting /sysroot proceeded normally.

Whether it's the ifcfg thing or not (probably not),
the nfs netboot generator doesn't work anymore.

Attaching journalctl -b from the emergency shell.

Best,
наб


journalctl-b.zst
Description: application/zstd


signature.asc
Description: PGP signature


Bug#1057807: dracut-network: broken on sid ("Module 'ifcfg' cannot be found.", and /etc/dracut.conf.d/11-ifcfg.conf add_dracutmodules+=" ifcfg " but modules.d/45ifcfg gone vs bookworm)

2023-12-08 Thread Thomas Lange


I guess I can fix this by adding

remove-on-upgrade /etc/dracut.conf.d/11-ifcfg.conf
to debian/dracut-network.conffiles

--
Thomas



Bug#1057807: dracut-network: broken on sid ("Module 'ifcfg' cannot be found.", and /etc/dracut.conf.d/11-ifcfg.conf add_dracutmodules+=" ifcfg " but modules.d/45ifcfg gone vs bookworm)

2023-12-08 Thread наб
Package: dracut-network
Version: 059+212-3
Severity: important

Dear Maintainer,

  # cat /etc/dracut.conf.d/11-ifcfg.conf
  add_dracutmodules+=" ifcfg "
  # dpkg -L dracut-network | grep ifcfg
  /etc/dracut.conf.d/11-ifcfg.conf
  # dracut -q --kver 6.5.0-5-686
  dracut[E]: Module 'ifcfg' cannot be found.
which naturally breaks upgrades.

Compare 
https://packages.debian.org/search?suite=bookworm=filename=contents=ifcfg
  /etc/dracut.conf.d/11-ifcfg.conf   dracut-network
  /usr/lib/dracut/modules.d/45ifcfg/write-ifcfg.sh   dracut-network
  /usr/lib/dracut/modules.d/80cms/cms-write-ifcfg.sh dracut-network
and 
https://packages.debian.org/search?suite=sid=filename=contents=ifcfg
  /etc/dracut.conf.d/11-ifcfg.conf   dracut-network 
[kfreebsd-amd64, mipsel, hurd-i386, powerpc, mips, kfreebsd-i386, powerpcspe]
  /usr/lib/dracut/modules.d/45ifcfg/write-ifcfg.sh   dracut-network [not 
amd64, arm64, armel, armhf, i386, mips64el, ppc64el, riscv64, s390x]
  /usr/lib/dracut/modules.d/80cms/cms-write-ifcfg.sh dracut-network [not 
amd64, arm64, armel, armhf, i386, mips64el, ppc64el, riscv64, s390x]

This is unnoted both in the NEWS and the changelog,
so it's obviously a bug.

Not tagging grave because presumably it works on.. ppc?
All the more baffling since this is arch:all.

Best,
наб

-- System Information:
Debian Release: 12.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'stable-debug'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-9-amd64 (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_FIRMWARE_WORKAROUND, 
TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dracut-network depends on:
ii  dracut-core  059-4
pn  iputils-arping   
pn  isc-dhcp-client  

Versions of packages dracut-network recommends:
ii  curl7.88.1-10+deb12u4
ii  nbd-client  1:3.24-1.1
ii  nfs-common  1:2.6.2-4
pn  open-iscsi  

dracut-network suggests no packages.


signature.asc
Description: PGP signature