[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#853163: Leaves stale device-mapper entry



Package: os-prober
Version: 1.73
Severity: important

While purging an old kernel from my stretch machine today I saw a lot of
errors being output at the end when the Grub config was being updated:

Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-4.9.0-1-amd64
Found initrd image: /boot/initrd.img-4.9.0-1-amd64
device-mapper: remove ioctl on osprober-linux-sda2 failed: Device or resource busy
Command failed
  WARNING: Not using lvmetad because duplicate PVs were found.
  WARNING: Use multipath or vgimportclone to resolve duplicate PVs?
  WARNING: After duplicates are resolved, run "pvscan --cache" to enable lvmetad.
  WARNING: PV cU7LfS-Hy15-lqhf-BBlB-b6HB-mxuG-Cij5Pu on /dev/mapper/osprober-linux-sda2 was already found on /dev/sda2.
  WARNING: PV cU7LfS-Hy15-lqhf-BBlB-b6HB-mxuG-Cij5Pu prefers device /dev/sda2 because device is used by LV.

(Warnings repeated many times)

lvm continued to be unhappy after the "apt purge" had finished until I
did a "dmsetup remove osprober-linux-sda2".

-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (900, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages os-prober depends on:
ii  dmsetup      2:1.02.137-1
ii  grub-common  2.02~beta3-3
ii  libc6        2.24-8

os-prober recommends no packages.

os-prober suggests no packages.

-- no debconf information


Reply to: