Package: lvm2
Version: 2.03.22-1+b1
Severity: important

If a system is configured with a lvm root, it will drop init a busybox shell on
boot if any PV is missing, regardless of whether that PV is necessary for
activating the root lv. (E.g., if root is on a PV that is present, or root is
on an LV of type raid.) As far as I can tell, that is because the current
version of the lvm initrd support depends on udev to activate VGs and udev only
runs vgchange if all PVs have been found. Simply running vgchange -ay at the
busybox prompt will render the system bootable with the current default
activationmode, but this is severely suboptimal as it requires console access. 

An immediate fix is to simply add a script in
/etc/initramfs-tools/scripts/init-premount to run vgchange -ay unconditionally.
An alternative would be to make the udev logic run vgscan when sufficient PVs
have been detected to enable the root volume to be mounted.

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

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

Versions of packages lvm2 depends on:
ii  dmeventd                  2:1.02.196-1+b1
ii  dmsetup                   2:1.02.196-1+b1
ii  libaio1t64                0.3.113-8
ii  libblkid1                 2.40.2-8
ii  libc6                     2.40-2
ii  libdevmapper-event1.02.1  2:1.02.196-1+b1
ii  libedit2                  3.1-20240808-1
ii  libselinux1               3.7-3
ii  libsystemd0               256.6-1
ii  libudev1                  256.6-1

Versions of packages lvm2 recommends:
ii  thin-provisioning-tools  0.9.0-2

lvm2 suggests no packages.

-- no debconf information

Reply via email to