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


Groups > linux.debian.kernel > #83158

Bug#980021: initramfs-tools: Upgrading a LVM2 system with separate /usr to buster breaks booting

From Ben Hutchings <ben@decadent.org.uk>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#980021: initramfs-tools: Upgrading a LVM2 system with separate /usr to buster breaks booting
Date 2024-07-24 05:20 +0200
Message-ID <J3AHL-4hck-1@gated-at.bofh.it> (permalink)
References <BwFaO-75k-5@gated-at.bofh.it> <BwFaO-75k-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


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

Control: tag -1 moreino

On Tue, 12 Jan 2021 21:23:55 -0600 Ryan Underwood
<nemesis@icequake.net> wrote:
> Package: initramfs-tools
> Version: 0.139
> Severity: important
> 
> Dear Maintainer,
> 
> I understand that separate /usr is deprecated, but many users do not
> have the luxury of wiping and reinstalling their entire system. 
Rather,
> a simple dist-upgrade procedure is expected to produce a working
system,
> making a best effort to migrate previously supported configurations.
> 
> Given that, upgrading a system to buster will break booting if the
> following two conditions are true:
> * /usr is a mount for a separate block device
> * The block device containing the /usr filesystem is a LVM volume.

No, that's a well-tested scenario.  There must be something unusual
about your system configuration.
 
> The reason is because the script
> /usr/share/initramfs-tools/scripts/local-top/lvm2 only attempts to
> activate the root and resume devices, and no other devices.
[...]

That's intentional and not a bug.  We find out the root and resume
devices from the built-in defaults or kernel command line.  But we find
the /usr device from /etc/fstab, after fscking and mounting root. 
There's a separate script,
/usr/share/initramfs-tools/scripts/local-block/lvm2, that is called to
handle /usr and should activate its volume group.

How was /usr listed in /etc/fstab?

Ben.

-- 
Ben Hutchings
Reality is just a crutch for people who can't handle science fiction.

Back to linux.debian.kernel | Previous | Next | Find similar | Unroll thread


Thread

Bug#980021: initramfs-tools: Upgrading a LVM2 system with separate /usr to buster breaks booting Ben Hutchings <ben@decadent.org.uk> - 2024-07-24 05:20 +0200

csiph-web