Package: dracut
Version: 051-1
Severity: normal
Dear Maintainer,
The dracut package does not seem to 'know' its own version.
Example:
$ cat /lib/dracut/dracut-version.sh
DRACUT_VERSION=
$ dracut --version
dracut
$ dpkg-query --show dracut-core
dracut-core 051-1
$ dracut --help | head -n 5
Usage: /usr/bin/dracut [OPTION]... [ []]
Version:
Creates initial ramdisk images for preloading modules
This is admittedly a minor issue, but also manifests itself in the
initramfs that is created by 'dracut'. It means an initramfs module
cannot make decisions based on the dracut version.
The fix seems simple enough:
% echo DRACUT_VERSION=051-1 > /lib/dracut/dracut-version.sh
% dracut --version
dracut 051-1
So you just need to manage to write the version to that file during
package build.
-- System Information:
Debian Release: bullseye/sid
APT prefers focal-updates
APT policy: (500, 'focal-updates'), (500, 'focal-security'), (500, 'focal')
Architecture: amd64 (x86_64)
Kernel: Linux 5.8.0-45-generic (SMP w/8 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages dracut depends on:
pn dracut-core
dracut recommends no packages.
Versions of packages dracut suggests:
pn dracut-network