Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.kernel > #62824 > unrolled thread
| Started by | Paul Menzel <pmenzel@molgen.mpg.de> |
|---|---|
| First post | 2018-12-24 15:20 +0100 |
| Last post | 2018-12-30 10:30 +0100 |
| Articles | 10 — 4 participants |
Back to article view | Back to linux.debian.kernel
Bug#917234: [initramfs-tools] Unable to detect root device Paul Menzel <pmenzel@molgen.mpg.de> - 2018-12-24 15:20 +0100
Processed: Re: Bug#917234: [initramfs-tools] Unable to detect root device "Debian Bug Tracking System" <owner@bugs.debian.org> - 2018-12-25 22:00 +0100
Bug#917234: [initramfs-tools] Unable to detect root device Ben Hutchings <ben@decadent.org.uk> - 2018-12-25 22:00 +0100
Bug#917234: [initramfs-tools] Unable to detect root device Paul Menzel <pmenzel@molgen.mpg.de> - 2018-12-29 11:40 +0100
Bug#917234: [initramfs-tools] Unable to detect root device Ben Hutchings <ben@decadent.org.uk> - 2018-12-29 18:00 +0100
Bug#917234: [initramfs-tools] Unable to detect root device Paul Menzel <pmenzel@molgen.mpg.de> - 2018-12-29 20:00 +0100
Bug#917234: [initramfs-tools] Unable to detect root device Paul Menzel <pmenzel@molgen.mpg.de> - 2018-12-30 14:00 +0100
Bug#917234: [initramfs-tools] Unable to detect root device Ben Hutchings <ben@decadent.org.uk> - 2018-12-30 19:30 +0100
Bug#917234: [initramfs-tools] Unable to detect root device Rémi DUCCESCHI <remi.ducceschi@gmail.com> - 2018-12-29 17:30 +0100
Bug#917234: [initramfs-tools] Unable to detect root device Rémi DUCCESCHI <remi.ducceschi@gmail.com> - 2018-12-30 10:30 +0100
| From | Paul Menzel <pmenzel@molgen.mpg.de> |
|---|---|
| Date | 2018-12-24 15:20 +0100 |
| Subject | Bug#917234: [initramfs-tools] Unable to detect root device |
| Message-ID | <x8zfk-1Xs-5@gated-at.bofh.it> |
Package: initramfs-tools Version: 0.132 Severity: normal Dear Debian folks, Updating the Linux kernel package fails with the error below. ``` $ sudo LANG=C dpkg -a --configure Setting up linux-image-4.19.0-1-amd64 (4.19.12-1) ... /etc/kernel/postinst.d/initramfs-tools: 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. run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1 dpkg: error processing package linux-image-4.19.0-1-amd64 (--configure): installed linux-image-4.19.0-1-amd64 package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: linux-image-4.19.0-1-amd64 ``` `/dev/mapper/sda3_crypt` is the root device. ``` $ mount sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) proc on /proc type proc (rw,relatime) udev on /dev type devtmpfs (rw,nosuid,relatime,size=8144364k,nr_inodes=2036091,mode=755) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=1630000k,mode=755) /dev/mapper/sda3_crypt on / type ext4 (rw,relatime,errors=remount-ro) securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k) tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755) cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate) cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd) pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime) efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime) bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700) cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event) cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids) cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct) cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset) cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio) cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory) cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio) cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices) cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer) debugfs on /sys/kernel/debug type debugfs (rw,relatime) systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=36,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=1351) hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M) mqueue on /dev/mqueue type mqueue (rw,relatime) /dev/sda2 on /boot type ext4 (rw,relatime,errors=remount-ro) /dev/sda1 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro) tmpfs on /run/user/5272 type tmpfs (rw,nosuid,nodev,relatime,size=1629996k,mode=700,uid=5272,gid=5272) gvfsd-fuse on /run/user/5272/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=5272,group_id=5272) fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime) ``` ``` $ cat /proc/mounts sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0 proc /proc proc rw,relatime 0 0 udev /dev devtmpfs rw,nosuid,relatime,size=8144364k,nr_inodes=2036091,mode=755 0 0 devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0 tmpfs /run tmpfs rw,nosuid,noexec,relatime,size=1630000k,mode=755 0 0 /dev/mapper/sda3_crypt / ext4 rw,relatime,errors=remount-ro 0 0 securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0 tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0 tmpfs /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0 tmpfs /sys/fs/cgroup tmpfs ro,nosuid,nodev,noexec,mode=755 0 0 cgroup2 /sys/fs/cgroup/unified cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate 0 0 cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,name=systemd 0 0 pstore /sys/fs/pstore pstore rw,nosuid,nodev,noexec,relatime 0 0 efivarfs /sys/firmware/efi/efivars efivarfs rw,nosuid,nodev,noexec,relatime 0 0 bpf /sys/fs/bpf bpf rw,nosuid,nodev,noexec,relatime,mode=700 0 0 cgroup /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_event 0 0 cgroup /sys/fs/cgroup/pids cgroup rw,nosuid,nodev,noexec,relatime,pids 0 0 cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct 0 0 cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0 cgroup /sys/fs/cgroup/net_cls,net_prio cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio 0 0 cgroup /sys/fs/cgroup/memory cgroup rw,nosuid,nodev,noexec,relatime,memory 0 0 cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0 cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0 cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0 debugfs /sys/kernel/debug debugfs rw,relatime 0 0 systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=36,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=1351 0 0 hugetlbfs /dev/hugepages hugetlbfs rw,relatime,pagesize=2M 0 0 mqueue /dev/mqueue mqueue rw,relatime 0 0 /dev/sda2 /boot ext4 rw,relatime,errors=remount-ro 0 0 /dev/sda1 /boot/efi vfat rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0 tmpfs /run/user/5272 tmpfs rw,nosuid,nodev,relatime,size=1629996k,mode=700,uid=5272,gid=5272 0 0 gvfsd-fuse /run/user/5272/gvfs fuse.gvfsd-fuse rw,nosuid,nodev,relatime,user_id=5272,group_id=5272 0 0 fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0 ``` Kind regards, Paul --- System information. --- Architecture: Kernel: Linux 4.19.0-1-amd64 Debian Release: buster/sid 500 unstable deb.debian.org 1 experimental deb.debian.org --- Package information. --- Depends (Version) | Installed ===================================-+-=========== initramfs-tools-core (= 0.132) | 0.132 linux-base | 4.5 Package's Recommends field is empty. Suggests (Version) | Installed ==============================-+-=========== bash-completion | 1:2.8-5
[toc] | [next] | [standalone]
| From | "Debian Bug Tracking System" <owner@bugs.debian.org> |
|---|---|
| Date | 2018-12-25 22:00 +0100 |
| Subject | Processed: Re: Bug#917234: [initramfs-tools] Unable to detect root device |
| Message-ID | <x91XX-21R-9@gated-at.bofh.it> |
| In reply to | #62824 |
Processing control commands: > tag -1 moreinfo Bug #917234 [initramfs-tools] [initramfs-tools] Unable to detect root device Added tag(s) moreinfo. -- 917234: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=917234 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
[toc] | [prev] | [next] | [standalone]
| From | Ben Hutchings <ben@decadent.org.uk> |
|---|---|
| Date | 2018-12-25 22:00 +0100 |
| Message-ID | <x91XX-21R-11@gated-at.bofh.it> |
| In reply to | #62824 |
[Multipart message — attachments visible in raw view] — view raw
Control: tag -1 moreinfo On Mon, 2018-12-24 at 15:05 +0100, Paul Menzel wrote: > Package: initramfs-tools > Version: 0.132 > Severity: normal > > Dear Debian folks, > > > Updating the Linux kernel package fails with the error below. [...] I think this is bug #917124. Try downgrading udev to version 239-15 (still in testing). Ben. -- Ben Hutchings It is impossible to make anything foolproof because fools are so ingenious.
[toc] | [prev] | [next] | [standalone]
| From | Paul Menzel <pmenzel@molgen.mpg.de> |
|---|---|
| Date | 2018-12-29 11:40 +0100 |
| Message-ID | <xakc9-8qn-1@gated-at.bofh.it> |
| In reply to | #62848 |
Dear Ben,
Am 25.12.18 um 21:55 schrieb Ben Hutchings:
> On Mon, 2018-12-24 at 15:05 +0100, Paul Menzel wrote:
>> Updating the Linux kernel package fails with the error below.
> [...]
>
> I think this is bug #917124. Try downgrading udev to version 239-15
> (still in testing).
Downgrading udev and libudev1 to 239-15 did not help. It also still
happens with udev 240-2.
The problem is, that `/dev/mapper/sda3_crypt` is not there for some reason.
$ ls -l /dev/mapper/
insgesamt 0
crw------- 1 root root 10, 236 Dez 29 10:55 control
From the systemd journal:
Dez 29 10:55:11 ersatz kernel: sda: sda1 sda2 sda3
Dez 29 10:55:11 ersatz systemd[1]: Starting Cryptography Setup for
sda3_crypt...
Dez 29 10:55:11 ersatz systemd-cryptsetup[369]: Volume sda3_crypt
already active.
Dez 29 10:55:11 ersatz systemd[1]: Started Cryptography Setup for
sda3_crypt.
I wonder, how it works at all, as `/dev/mapper/sda3_crypt` is used in
`/etc/fstab`.
Kind regards,
Paul
[toc] | [prev] | [next] | [standalone]
| From | Ben Hutchings <ben@decadent.org.uk> |
|---|---|
| Date | 2018-12-29 18:00 +0100 |
| Message-ID | <xaq7U-3Cw-5@gated-at.bofh.it> |
| In reply to | #62881 |
[Multipart message — attachments visible in raw view] — view raw
On Sat, 2018-12-29 at 11:19 +0100, Paul Menzel wrote:
> Dear Ben,
>
>
> Am 25.12.18 um 21:55 schrieb Ben Hutchings:
>
> > On Mon, 2018-12-24 at 15:05 +0100, Paul Menzel wrote:
> > > Updating the Linux kernel package fails with the error below.
> > [...]
> >
> > I think this is bug #917124. Try downgrading udev to version 239-15
> > (still in testing).
>
> Downgrading udev and libudev1 to 239-15 did not help. It also still
> happens with udev 240-2.
[...]
You might need to reboot first.
Ben.
--
Ben Hutchings
Life is what happens to you while you're busy making other plans.
- John Lennon
[toc] | [prev] | [next] | [standalone]
| From | Paul Menzel <pmenzel@molgen.mpg.de> |
|---|---|
| Date | 2018-12-29 20:00 +0100 |
| Message-ID | <xas01-4QO-5@gated-at.bofh.it> |
| In reply to | #62889 |
Dear Ben, Am 29.12.18 um 17:47 schrieb Ben Hutchings: > On Sat, 2018-12-29 at 11:19 +0100, Paul Menzel wrote: >> Am 25.12.18 um 21:55 schrieb Ben Hutchings: >> >>> On Mon, 2018-12-24 at 15:05 +0100, Paul Menzel wrote: >>>> Updating the Linux kernel package fails with the error below. >>> [...] >>> >>> I think this is bug #917124. Try downgrading udev to version 239-15 >>> (still in testing). >> >> Downgrading udev and libudev1 to 239-15 did not help. It also still >> happens with udev 240-2. > [...] > > You might need to reboot first. I did reboot, and the problem is still there. No idea, if the initrd needs to be updated, but that does not work due to the issue at hand. Kind regards, Paul
[toc] | [prev] | [next] | [standalone]
| From | Paul Menzel <pmenzel@molgen.mpg.de> |
|---|---|
| Date | 2018-12-30 14:00 +0100 |
| Message-ID | <xaIRb-6Tl-7@gated-at.bofh.it> |
| In reply to | #62890 |
Dear Ben,
Am 29.12.18 um 19:55 schrieb Paul Menzel:
> Am 29.12.18 um 17:47 schrieb Ben Hutchings:
>> On Sat, 2018-12-29 at 11:19 +0100, Paul Menzel wrote:
>
>>> Am 25.12.18 um 21:55 schrieb Ben Hutchings:
>>>
>>>> On Mon, 2018-12-24 at 15:05 +0100, Paul Menzel wrote:
>>>>> Updating the Linux kernel package fails with the error below.
>>>> [...]
>>>>
>>>> I think this is bug #917124. Try downgrading udev to version 239-15
>>>> (still in testing).
>>>
>>> Downgrading udev and libudev1 to 239-15 did not help. It also still
>>> happens with udev 240-2.
>> [...]
>>
>> You might need to reboot first.
>
> I did reboot, and the problem is still there.
>
> No idea, if the initrd needs to be updated, but that does not work due
> to the issue at hand.
That was indeed the problem. Editing
`/usr/share/initramfs-tools/hook-functions` and
`/usr/share/initramfs-tools/hooks/cryptroot` to ignore the missing file
`/dev/mapper/sda3_crypt` and running `sudo update-initramfs -u` fixed
the issue for me.
$ ls -l /dev/mapper/sda3_crypt
lrwxrwxrwx 1 root root 7 Dez 30 13:42 /dev/mapper/sda3_crypt ->
../dm-0
Should this bug report be merged with #917124?
Kind regards,
Paul
[toc] | [prev] | [next] | [standalone]
| From | Ben Hutchings <ben@decadent.org.uk> |
|---|---|
| Date | 2018-12-30 19:30 +0100 |
| Message-ID | <xaO0x-1Qe-5@gated-at.bofh.it> |
| In reply to | #62896 |
[Multipart message — attachments visible in raw view] — view raw
Control: reassign -1 udev
Control: forcemerge 917124 -1
On Sun, 2018-12-30 at 13:48 +0100, Paul Menzel wrote:
> Dear Ben,
>
>
> Am 29.12.18 um 19:55 schrieb Paul Menzel:
>
> > Am 29.12.18 um 17:47 schrieb Ben Hutchings:
> > > On Sat, 2018-12-29 at 11:19 +0100, Paul Menzel wrote:
> > > > Am 25.12.18 um 21:55 schrieb Ben Hutchings:
> > > >
> > > > > On Mon, 2018-12-24 at 15:05 +0100, Paul Menzel wrote:
> > > > > > Updating the Linux kernel package fails with the error below.
> > > > > [...]
> > > > >
> > > > > I think this is bug #917124. Try downgrading udev to version 239-15
> > > > > (still in testing).
> > > >
> > > > Downgrading udev and libudev1 to 239-15 did not help. It also still
> > > > happens with udev 240-2.
> > > [...]
> > >
> > > You might need to reboot first.
> >
> > I did reboot, and the problem is still there.
> >
> > No idea, if the initrd needs to be updated, but that does not work due
> > to the issue at hand.
>
> That was indeed the problem. Editing
> `/usr/share/initramfs-tools/hook-functions` and
> `/usr/share/initramfs-tools/hooks/cryptroot` to ignore the missing file
> `/dev/mapper/sda3_crypt` and running `sudo update-initramfs -u` fixed
> the issue for me.
>
> $ ls -l /dev/mapper/sda3_crypt
> lrwxrwxrwx 1 root root 7 Dez 30 13:42 /dev/mapper/sda3_crypt ->
> ../dm-0
>
> Should this bug report be merged with #917124?
Yes, it sounds like this really is the same thing although it was
harder for you to recover from.
Ben.
--
Ben Hutchings
The generation of random numbers is too important to be left to chance.
- Robert Coveyou
[toc] | [prev] | [next] | [standalone]
| From | Rémi DUCCESCHI <remi.ducceschi@gmail.com> |
|---|---|
| Date | 2018-12-29 17:30 +0100 |
| Message-ID | <xapER-3rQ-1@gated-at.bofh.it> |
| In reply to | #62824 |
[Multipart message — attachments visible in raw view] — view raw
Hello, I have installed Debian Sid on a LUCKS ext4 partition, ans I have the same issue. `ls -l /dev/mapper/` Gives me the same as Paul. Best regards, Rémi
[toc] | [prev] | [next] | [standalone]
| From | Rémi DUCCESCHI <remi.ducceschi@gmail.com> |
|---|---|
| Date | 2018-12-30 10:30 +0100 |
| Message-ID | <xaFzX-4Zf-1@gated-at.bofh.it> |
| In reply to | #62888 |
[Multipart message — attachments visible in raw view] — view raw
Hello, It seems to be solved for me. The problem happenned when I was trying to upgrade. What I did: - reboot on old kernel (4.18) - do a `dist-upgrade` - this worked fine, no initframfs error - reboot on latest kernel (4.19) I haven't had any issue since. Best regards,
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.kernel
csiph-web