Your message dated Mon, 27 Apr 2020 16:50:10 +0000
with message-id <[email protected]>
and subject line Bug#958397: fixed in systemd 245.5-2
has caused the Debian Bug report #958397,
regarding Missing 60-block.rules breaks grub-installer
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
958397: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=958397
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: udev-udeb
Version: 241-7~deb10u3
Control: found -1 232-25+deb9u12
Control: unarchive 852323
X-Debbugs-CC: [email protected]
Hello,
Udev has a rule with OPTIONS+="watch" to generate an event and update
symlinks in /dev/disk/ when a block device is written to. In Jessie, the
rule was in /lib/udev/rules.d/60-persistent-storage.rules. In Stretch
and Buster, it was moved to /lib/udev/rules.d/60-block.rules. However
/lib/udev/rules.d/60-block.rules was *not* included in :
- the initramfs hook script /usr/share/initramfs-tools/hooks/udev,
therefore in the initramfs built by update-initramfs
- the udev-udeb package
- the Debian installer initrd.gz (I guess it uses udev-udeb)
The most visible consequence is in the Debian installer. When a device
is formatted, symbolic links pointing to that device in /dev/disk/ are
not updated immediately. Then if the symlink pointing to the root device
in /dev/disk/by-uuid/ is missing or wrong, update-grub/grub-mkconfig
puts the root device name instead of the UUID in the root= kernel
parameter (see /etc/grub.d/10_linux). Drive and partition device names
are unreliable and may change at each boot, causing the boot to fail.
The following bugs may be related to this issue :
852323
863815
876866
925556
Steps to reproduce the issue :
Boot the Debian installer.
Select "advanced options" > "Expert install".
Follow steps up to "Partition disks".
Select manual partitioning.
Create or select and format a partition for /.
Do not create or use any swaps.
Install the base system.
Skip "Configure the package manager" and "Select and install software".
Install the GRUB boot loader.
Jump into a shell.
Check the symlink pointing to the root partition in /dev/disk/by-uuid/
is missing or wrong.
Check that /target/boot/grub/grub.cfg "linux" lines have
root=/dev/<partition> instead of root=UUID=<uuid>.
Suggested fix :
The issue could be worked around by executing "udevadm trigger" to
update symlinks at a proper time after formatting the root filesystem
and before installing GRUB. This is actually what seems to happen at the
"select and install software" step. But I think is is easier, safer and
cleaner to include /lib/udev/rules.d/60-block.rules and fix the root
cause than to rely on executing "udevadm trigger" at the proper time.
--- End Message ---
--- Begin Message ---
Source: systemd
Source-Version: 245.5-2
Done: Michael Biebl <[email protected]>
We believe that the bug you reported is fixed in the latest version of
systemd, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Michael Biebl <[email protected]> (supplier of updated systemd 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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Mon, 27 Apr 2020 17:38:44 +0200
Source: systemd
Architecture: source
Version: 245.5-2
Distribution: unstable
Urgency: medium
Maintainer: Debian systemd Maintainers
<[email protected]>
Changed-By: Michael Biebl <[email protected]>
Closes: 958397
Changes:
systemd (245.5-2) unstable; urgency=medium
.
* Cherry-pick various fixes from upstream master
- network: add a flag to ignore gateway provided by DHCP server
- userdb: when doing client-side NSS look-ups optionally avoid shadow
look-ups
- nss-systemd: don't synthesize root/nobody when iterating
- core: make sure we don't get confused when setting TERM for a tty fd
- core: make sure to restore the control command id, too
* Install 60-block.rules in udev-udeb and initramfs-tools.
The block device rules were split out from 60-persistent-storage.rules
into its own rules file in v220. Those rules ensure that change events
are emitted and the udev db is updated after metadata changes.
Thanks to Pascal Hambourg (Closes: #958397)
Checksums-Sha1:
637d0dc749044655800310875a813e34b0bdcb48 5093 systemd_245.5-2.dsc
c495aad7ed686b5089edb825d2a7b08f34854cbf 161988 systemd_245.5-2.debian.tar.xz
18e6995753801f262abee7d3f84d48c75b8a408a 9595 systemd_245.5-2_source.buildinfo
Checksums-Sha256:
5601e3e44d26fde90e9d33cb2dea9a28390fe6c5887264a9d285695645ffac2c 5093
systemd_245.5-2.dsc
f3b5dbcd47c61a616bfa34db314755b43fd7882bbd804c737abfb0069652f99d 161988
systemd_245.5-2.debian.tar.xz
81970847ac02e069f49f251e9e1c78f4d6fb44676906fc103bc1df22aae99a44 9595
systemd_245.5-2_source.buildinfo
Files:
25b9d443ff0139fb9ee67016893ec80e 5093 admin optional systemd_245.5-2.dsc
fc4ee64b1ef62f4cfabfe851c9d85724 161988 admin optional
systemd_245.5-2.debian.tar.xz
ab09ad3a020a5dd966c0d5a9da2ff192 9595 admin optional
systemd_245.5-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEECbOsLssWnJBDRcxUauHfDWCPItwFAl6nChoACgkQauHfDWCP
ItwpCQ//d+9xN7/zKrqSl4g5VWlkUo6nwXNkNSHAxwhw595Ln4OOI/ee208ynGzC
0S25vivVEWxG3JOWS7ofymybZJotyVeXpLGKZcVNE0bvLiAw4aJNpoRJYME4dMSJ
IS5UMV45adsK9czwQspNLvfSTsG+JT916dccGxLICWSwYb73dKU8wZpdvVt0ulhk
Q0Yrrf8ca3zZZouECGD5+XqL2LMZoe7icqHlYrN+AC6o3zx2BNy5TKshyLTpRGgr
EqdR3q/eSqXuYKmFIIENiGnod+y0dwUFF5tJGPhoNQDSLM3SgVM1gqOJq6dbAR4l
TufLHen5t8t95qhURwE29cGT/sHYHyoJIb0HWjr6vaDhaDGJVHDMBRyUy6LPpu4R
3LyQKWwtd/KKEoW18ZL/46I04HSI7ZHYO+EMZdzANSKmGEsNaJb/ttEoqpkxstXE
CSTWQrjMMXTIKFgDGnLjWfRd/YRjYj2W1IwQTtNQElf5643x/ldY4/SrOUgLPraD
Cs9j3l0qV7Wdn1iNo3mId2TrZZunJD6Pr9bXF5TUDi2hpEMk1mHsD4l0MuNKDFYv
R10bb6oUWF4DozM6OpvlkmgnoXTLXWbCiNTWWDUU/FeVmopYxDV3UdgTnBSN0mVt
nldetXDmWihu7FDl3L0UarF2h+/hOeIIrUFtQtW8FJiT3YVra64=
=W9CY
-----END PGP SIGNATURE-----
--- End Message ---