Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #62826 > unrolled thread

Bug#917261: linux-image-4.19.0-1-amd64: /dev/mapper symlink for dm-crypt volume containing / not created on system startup

Started byCelejar <celejar@gmail.com>
First post2018-12-25 04:50 +0100
Last post2018-12-25 22:00 +0100
Articles 4 — 4 participants

Back to article view | Back to linux.debian.kernel


Contents

  Bug#917261: linux-image-4.19.0-1-amd64: /dev/mapper symlink for dm-crypt volume containing / not created on system startup Celejar <celejar@gmail.com> - 2018-12-25 04:50 +0100
    Bug#917261: linux-image-4.19.0-1-amd64: /dev/mapper symlink for dm-crypt volume containing / not created on system startup Tiziano Zito <opossumnano@gmail.com> - 2018-12-25 11:40 +0100
    Processed: Re: Bug#917261: linux-image-4.19.0-1-amd64:  /dev/mapper symlink for dm-crypt volume containing / not created on system  startup "Debian Bug Tracking System" <owner@bugs.debian.org> - 2018-12-25 22:00 +0100
    Bug#917261: linux-image-4.19.0-1-amd64: /dev/mapper symlink for dm-crypt volume containing / not created on system startup Ben Hutchings <ben@decadent.org.uk> - 2018-12-25 22:00 +0100

#62826 — Bug#917261: linux-image-4.19.0-1-amd64: /dev/mapper symlink for dm-crypt volume containing / not created on system startup

FromCelejar <celejar@gmail.com>
Date2018-12-25 04:50 +0100
SubjectBug#917261: linux-image-4.19.0-1-amd64: /dev/mapper symlink for dm-crypt volume containing / not created on system startup
Message-ID<x8LTc-XW-1@gated-at.bofh.it>
Package: src:linux
Version: 4.19.12-1
Severity: important

Hi,

[I'm not sure whether this is the right package to report against - feel
free to reassign as appropriate.]

I have / on a luks volume, mounted with dm-crypt (automatically,
via /etc/fstab - /etc/crypttab). As recently as kernel 4.18.0-3,
everything was normal. With 4.19.0-1, the volume mounts, and the
system seems basically functional - but /dev/mapper is empty aside for
'control'!

~# ls -al /dev/mapper/
total 0
drwxr-xr-x  2 root root      60 Dec 23 23:32 .
drwxr-xr-x 18 root root    3340 Dec 23 23:32 ..
crw-------  1 root root 10, 236 Dec 23 23:32 control

'mount' shows that the dm-crypt mount is actually present:

~# mount | grep sda
/dev/mapper/sda2_crypt on / type ext4 (rw,relatime,errors=remount-ro)
/dev/sda1 on /boot type ext4 (rw,relatime)

~#

This situation causes update-initramfs to fail:

~# update-initramfs -u
update-initramfs: Generating /boot/initrd.img-4.19.0-1-amd64
mkinitramfs: failed to determine device for /
mkinitramfs: workaround is MODULES=most, check:
grep -r MODULES /etc/initramfs-tools

Error please report bug on initramfs-tools
Include the output of 'mount' and 'cat /proc/mounts'
update-initramfs: failed for /boot/initrd.img-4.19.0-1-amd64 with 1.

~#

Which in turn is causing things like kernel updates to fail ...

Running 'dmsetup mknodes' manually adds the proper symlink.
Additionally, running cryptsetup on an additional encrypted luks volume
results in the proper symlink creation for that volume.

-- Package-specific info:
** Version:
Linux version 4.19.0-1-amd64 (debian-kernel@lists.debian.org) (gcc version 8.2.0 (Debian 8.2.0-13)) #1 SMP Debian 4.19.12-1 (2018-12-22)

** Command line:
BOOT_IMAGE=/vmlinuz-4.19.0-1-amd64 root=UUID=db4c898d-57d7-4b0b-8dc1-c1622e451d68 ro quiet crashkernel=384M-:128M

** Tainted: WOE (12800)
 * Taint on warning.
 * Out-of-tree module has been loaded.
 * Unsigned module has been loaded.

** Kernel log:
Unable to read kernel log; any relevant messages should be attached

** Model information
sys_vendor: LENOVO
product_name: 20E2CTO1WW
product_version: ThinkPad W550s
chassis_vendor: LENOVO
chassis_version: None
bios_vendor: LENOVO
bios_version: N11ET42W (1.18 )
board_vendor: LENOVO
board_name: 20E2CTO1WW
board_version: SDK0J40705 WIN

** Loaded modules:
cpuid
ctr
algif_skcipher
af_alg
ses
enclosure
scsi_transport_sas
nft_chain_route_ipv4
xt_CHECKSUM
nft_chain_nat_ipv4
ipt_MASQUERADE
nf_nat_ipv4
nf_nat
xt_conntrack
nf_conntrack
nf_defrag_ipv6
nf_defrag_ipv4
libcrc32c
ipt_REJECT
nf_reject_ipv4
nft_counter
xt_tcpudp
nft_compat
tun
bridge
stp
llc
acpi_call(OE)
btusb
btrtl
btbcm
btintel
bluetooth
drbg
ebtable_filter
ebtables
devlink
ansi_cprng
ecdh_generic
nf_tables
nfnetlink
cpufreq_conservative
cpufreq_userspace
cpufreq_powersave
ipmi_devintf
ipmi_msghandler
uas
usb_storage
nls_utf8
cifs
ccm
dns_resolver
fscache
snd_hda_codec_hdmi
bbswitch(OE)
arc4
intel_rapl
x86_pkg_temp_thermal
intel_powerclamp
iwlmvm
coretemp
kvm_intel
mac80211
iTCO_wdt
kvm
rtsx_pci_sdmmc
mmc_core
rtsx_pci_ms
memstick
iTCO_vendor_support
wmi_bmof
i915
irqbypass
crct10dif_pclmul
crc32_pclmul
ghash_clmulni_intel
intel_cstate
snd_hda_codec_realtek
intel_uncore
drm_kms_helper
snd_hda_codec_generic
intel_rapl_perf
ehci_pci
xhci_pci
ehci_hcd
iwlwifi
xhci_hcd
sg
snd_hda_intel
mei_me
drm
snd_hda_codec
mei
cfg80211
e1000e
pcspkr
snd_hda_core
usbcore
rtsx_pci
joydev
snd_hwdep
snd_pcm
i2c_i801
i2c_algo_bit
usb_common
lpc_ich
thinkpad_acpi
intel_pch_thermal
snd_timer
wmi
nvram
ac
tpm_tis
snd
tpm_tis_core
tpm
soundcore
rfkill
rng_core
battery
video
pcc_cpufreq
button
parport_pc
ppdev
lp
parport
sunrpc
ip_tables
x_tables
autofs4
ext4
crc16
mbcache
jbd2
crc32c_generic
fscrypto
ecb
dm_crypt
dm_mod
sd_mod
crc32c_intel
ahci
libahci
aesni_intel
libata
aes_x86_64
crypto_simd
cryptd
scsi_mod
psmouse
glue_helper
evdev
serio_raw
thermal

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

Kernel: Linux 4.19.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages linux-image-4.19.0-1-amd64 depends on:
ii  initramfs-tools [linux-initramfs-tool]  0.132
ii  kmod                                    25-2
ii  linux-base                              4.5

Versions of packages linux-image-4.19.0-1-amd64 recommends:
ii  apparmor             2.13.1-3+b1
ii  firmware-linux-free  3.4
ii  irqbalance           1.5.0-0.1

Versions of packages linux-image-4.19.0-1-amd64 suggests:
pn  debian-kernel-handbook  <none>
ii  grub-pc                 2.02+dfsg1-9
pn  linux-doc-4.19          <none>

Versions of packages linux-image-4.19.0-1-amd64 is related to:
pn  firmware-amd-graphics     <none>
pn  firmware-atheros          <none>
pn  firmware-bnx2             <none>
pn  firmware-bnx2x            <none>
pn  firmware-brcm80211        <none>
pn  firmware-cavium           <none>
pn  firmware-intel-sound      <none>
pn  firmware-intelwimax       <none>
pn  firmware-ipw2x00          <none>
pn  firmware-ivtv             <none>
ii  firmware-iwlwifi          20180825+dfsg-1
pn  firmware-libertas         <none>
pn  firmware-linux-nonfree    <none>
pn  firmware-misc-nonfree     <none>
pn  firmware-myricom          <none>
pn  firmware-netxen           <none>
pn  firmware-qlogic           <none>
pn  firmware-realtek          <none>
pn  firmware-samsung          <none>
pn  firmware-siano            <none>
pn  firmware-ti-connectivity  <none>
pn  xen-hypervisor            <none>

-- no debconf information

[toc] | [next] | [standalone]


#62829

FromTiziano Zito <opossumnano@gmail.com>
Date2018-12-25 11:40 +0100
Message-ID<x8ShX-4LD-1@gated-at.bofh.it>
In reply to#62826
Hi!

I have the same issue. Not sure the problem is with the kernel package though, because even purging and/or reinstalling linux-image-4.18.0-3 fails (see below). Any suggestion which package may be responsible? The problem started after a dist-upgrade on Dec 24...

Thanks!
Tiziano

# aptitude purge linux-image-4.18.0-3-amd64
The following packages will be REMOVED:
  linux-image-4.18.0-3-amd64{p}
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 258 MB will be freed.
Do you want to continue? [Y/n/?] Y
(Reading database ... 420270 files and directories currently installed.)
Removing linux-image-4.18.0-3-amd64 (4.18.20-2) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-4.19.0-1-amd64
I: /initrd.img.old is now a symlink to boot/initrd.img-4.19.0-1-amd64
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.18.0-3-amd64
/etc/kernel/postrm.d/zz-update-grub:
/usr/sbin/grub-probe: error: failed to get canonical path of `/dev/mapper/CRYPT-ROOT'.
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1
dpkg: error processing package linux-image-4.18.0-3-amd64 (--remove):
 installed linux-image-4.18.0-3-amd64 package post-removal script subprocess returned error exit status 1
Errors were encountered while processing:
 linux-image-4.18.0-3-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

# aptitude reinstall linux-image-4.18.0-3-amd64
The following packages will be REINSTALLED:
  linux-image-4.18.0-3-amd64
0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/45.7 MB of archives. After unpacking 0 B will be used.
(Reading database ... 416025 files and directories currently installed.)
Preparing to unpack .../linux-image-4.18.0-3-amd64_4.18.20-2_amd64.deb ...
Unpacking linux-image-4.18.0-3-amd64 (4.18.20-2) over (4.18.20-2) ...
Setting up linux-image-4.18.0-3-amd64 (4.18.20-2) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-4.18.0-3-amd64
I: /initrd.img.old is now a symlink to boot/initrd.img-4.18.0-3-amd64
/etc/kernel/postinst.d/dkms:
Error! Your kernel headers for kernel 4.18.0-3-amd64 cannot be found.
Please install the linux-headers-4.18.0-3-amd64 package,
or use the --kernelsourcedir option to tell DKMS where it's located
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.18.0-3-amd64
cryptsetup: ERROR: Couldn't resolve device /dev/mapper/CRYPT-ROOT
cryptsetup: WARNING: Couldn't determine root device
Warning: couldn't identify filesystem type for fsck hook, ignoring.
/etc/kernel/postinst.d/zz-update-grub:
/usr/sbin/grub-probe: error: failed to get canonical path of `/dev/mapper/CRYPT-ROOT'.
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
dpkg: error processing package linux-image-4.18.0-3-amd64 (--configure):
 installed linux-image-4.18.0-3-amd64 package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 linux-image-4.18.0-3-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

[toc] | [prev] | [next] | [standalone]


#62845 — Processed: Re: Bug#917261: linux-image-4.19.0-1-amd64: /dev/mapper symlink for dm-crypt volume containing / not created on system startup

From"Debian Bug Tracking System" <owner@bugs.debian.org>
Date2018-12-25 22:00 +0100
SubjectProcessed: Re: Bug#917261: linux-image-4.19.0-1-amd64: /dev/mapper symlink for dm-crypt volume containing / not created on system startup
Message-ID<x91XX-21R-1@gated-at.bofh.it>
In reply to#62826
Processing control commands:

> reassign -1 udev 240-1
Bug #917261 [src:linux] linux-image-4.19.0-1-amd64: /dev/mapper symlink for dm-crypt volume containing / not created on system startup
Bug reassigned from package 'src:linux' to 'udev'.
No longer marked as found in versions linux/4.19.12-1.
Ignoring request to alter fixed versions of bug #917261 to the same values previously set
Bug #917261 [udev] linux-image-4.19.0-1-amd64: /dev/mapper symlink for dm-crypt volume containing / not created on system startup
Marked as found in versions systemd/240-1.
> forcemerge 917124 -1
Bug #917124 [udev] lvm2 logical volumes are not properly initialized
Bug #917136 [udev] udev: LVM volumes fail to initialize properly with udev 240-1
Bug #917261 [udev] linux-image-4.19.0-1-amd64: /dev/mapper symlink for dm-crypt volume containing / not created on system startup
Set Bug forwarded-to-address to 'https://github.com/systemd/systemd/issues/11255'.
Severity set to 'grave' from 'important'
Bug #917136 [udev] udev: LVM volumes fail to initialize properly with udev 240-1
Merged 917124 917136 917261

-- 
917124: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=917124
917136: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=917136
917261: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=917261
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [next] | [standalone]


#62847

FromBen Hutchings <ben@decadent.org.uk>
Date2018-12-25 22:00 +0100
Message-ID<x91XX-21R-3@gated-at.bofh.it>
In reply to#62826

[Multipart message — attachments visible in raw view] — view raw

Control: reassign -1 udev 240-1
Control: forcemerge 917124 -1

This seems to be a bug in udev, not the kernel.  You will only have
noticed it once you rebooted for the kernel upgrade.

Ben.

-- 
Ben Hutchings
It is impossible to make anything foolproof
because fools are so ingenious.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.kernel


csiph-web