#559178 /dev/disk/by-uuid not populated in d-i with RAID

#559178#5
Date:
2009-11-30 21:07:49 UTC
From:
To:
Package: installation-reports

I installed to an ARM machine today with the daily image and towards
the installation there was a hang at: "Configuring flash memory to
boot the system: 33%".  Looking at /var/log/syslog showed that
flash-kernel's initramfs hook waited for user input because the UUID
was not found.

"blkid /dev/md1" showed the same UUID that flash-kernel was
complaining about.  Looking at /dev/disk, I noticed that the by-uuid
directory didn't exist at all!

When I did:
| echo change > /sys/block/sda/sda2/uevent
the by-uuid dir was added and the UUID for my swap partitioon showed
up.  However, I couldn't make the UUID of my RAID partition show up
with
| echo change > /sys/block/md0/uevent

I ran into this bug once before but thought it was a glitch.  But a
few days ago another user reported this issue to me and today I ran
into it again.  Normally I don't use RAID but today I did, so I'm
wondering if it's related to that.

Colin, Md, others: any idea?

Here's a workaround for users who run into this issue: open another
SSH connection to the installer, open a shell and type:
    ps aux | grep -i flash_kernel
then kill that PID.  Then edit the file
/target/usr/share/initramfs-tools/hooks/flash_kernel_set_root
and remove the check that ensures the root device exists.  The
installer will continue.  Wait until it reaches
"Installation complete" and hit "Go Back".  Then choose "Make
the system bootable" again.

#559178#10
Date:
2009-12-02 13:53:21 UTC
From:
To:
Yes, because the udev rules do not deal with md* devices.
The mdadm udeb needs to ship an appropriate rules file like the plain
deb does.

#559178#15
Date:
2009-12-02 14:08:07 UTC
From:
To:
* Marco d'Itri <md@Linux.IT> [2009-12-02 14:53]:

Okay, thanks.  I guess the same applies to the lvm2 udeb?  Any other
udebs that will need such rules?

#559178#20
Date:
2009-12-02 14:09:49 UTC
From:
To:
Yes.
Any one which ships in the .deb rules also needed in d-i?

#559178#29
Date:
2009-12-02 14:20:32 UTC
From:
To:
reassign 558823 mdadm
tags 558823 patch
thanks

also sprach Marco d'Itri <md@Linux.IT> [2009.12.02.1453 +0100]:

http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commitdiff;h=3a986686580df5d108e130947cde8c15c4f036ff

#559178#38
Date:
2017-11-09 21:12:20 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
lvm2, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 504341@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bastian Blank <waldi@debian.org> (supplier of updated lvm2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Thu, 09 Nov 2017 20:42:38 +0100
Source: lvm2
Binary: lvm2 lvm2-udeb lvm2-dbusd lvm2-lockd clvm libdevmapper-dev libdevmapper1.02.1 libdevmapper1.02.1-udeb dmsetup dmsetup-udeb libdevmapper-event1.02.1 dmeventd liblvm2app2.2 liblvm2cmd2.02 liblvm2-dev
Architecture: source
Version: 2.02.176-2
Distribution: unstable
Urgency: medium
Maintainer: Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>
Changed-By: Bastian Blank <waldi@debian.org>
Description:
 clvm       - Cluster extensions for userland logical volume management tools
 dmeventd   - Linux Kernel Device Mapper event daemon
 dmsetup    - Linux Kernel Device Mapper userspace library
 dmsetup-udeb - Linux Kernel Device Mapper userspace library (udeb)
 libdevmapper-dev - Linux Kernel Device Mapper header files
 libdevmapper-event1.02.1 - Linux Kernel Device Mapper event support library
 libdevmapper1.02.1 - Linux Kernel Device Mapper userspace library
 libdevmapper1.02.1-udeb - Linux Kernel Device Mapper userspace library (udeb)
 liblvm2-dev - LVM2 libraries - development files
 liblvm2app2.2 - LVM2 application library
 liblvm2cmd2.02 - LVM2 command library
 lvm2       - Linux Logical Volume Manager
 lvm2-dbusd - LVM2 D-Bus daemon
 lvm2-lockd - LVM locking daemon
 lvm2-udeb  - Linux Logical Volume Manager (udeb)
Closes: 504341
Changes:
 lvm2 (2.02.176-2) unstable; urgency=medium
 .
   * Drop changes for upgrades from before Wheezy.
   * Drop deprecated python bindings.
   * Enable udev rules in udeb. (closes: #504341)
   * Drop some udev rules modifications.
     - Pull in newer dmsetup for udev rules changes.
Checksums-Sha1:
 ed1f78886e79bb0b2be22066839726ca6a29a591 2992 lvm2_2.02.176-2.dsc
 f4e96e129cb78d64ef4867144a945988385e1a50 31420 lvm2_2.02.176-2.debian.tar.xz
 b8ae2f8e819b53daac1f9d723b779d51c2a3b0ad 6968 lvm2_2.02.176-2_source.buildinfo
Checksums-Sha256:
 7306e4912fcfd762c546df01f013c1a115276d82d40b17e057bf91aa424249ca 2992 lvm2_2.02.176-2.dsc
 859cd981960086b6895da81533bedd616202c1fcd2c5259ec68f82885c94fa88 31420 lvm2_2.02.176-2.debian.tar.xz
 ed531f2f6e1e63528fe1f19c97c90222492b33914b7d56dd107cec85afdd1bda 6968 lvm2_2.02.176-2_source.buildinfo
Files:
 103cb8aa24bd26190903017980cc65e7 2992 admin optional lvm2_2.02.176-2.dsc
 ead7a860274b8aa887948e3a40720b2c 31420 admin optional lvm2_2.02.176-2.debian.tar.xz
 f845de531a653aec697a1048a58e7724 6968 admin optional lvm2_2.02.176-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEER3HMN63jdS1rqjxLbZOIhYpp/lEFAloEr+EACgkQbZOIhYpp
/lEcOQf/UKJYnt4Je6h5bxrgDYQQCmc54DgmlaEJ2jdhMXP69FvHgvsge2S26Mrn
xoNEIYMMlhw2Osd8rhU8rWAXH2REwzdNxP9XIaYsZ2Q/6+QcXcO0uUvlqEmRzrhx
7O3hAvaaf39PmBCjCwfMQ97gFh2AsBiV8OyHmrAxhQFF0vE1p1qIlP5IT9PFzhgn
djkVD9HcdaufyVC29iY/NGk4h12b+Dpj5yDmh7l5SAAeQKokmSO9/gynKkN/behY
vvggdsXGdukC6AF7bGh6pprXPXLzWa64w95JwGp1/+nmbxChEkVDgU108Sw1NmTA
wUN30ts1DF9uTKYDRS6DQ6Ax6aEZ6g==
=1rkf
-----END PGP SIGNATURE-----