Summary: | genkernel-provided initrd/initramfs leaves mounts inaccessible | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | Fedja Beader <fedja> |
Component: | genkernel | Assignee: | Gentoo Genkernel Maintainers <genkernel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | abandonedaccountubdprczb8hs, aoaaxy+gentoobugzilla, zazdxscf+bugs.gentoo.org |
Priority: | Normal | Keywords: | InVCS |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=9061be50c5e6650978138d1484ee6c988ea940a9 commit 9061be50c5e6650978138d1484ee6c988ea940a9 Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2019-07-16 20:27:45 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2019-07-16 20:30:04 +0000 linuxrc: Umount /newroot when it was rejected before prompting for a new root device Bug: https://bugs.gentoo.org/520018 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> defaults/linuxrc | 12 ++++++++++++ 1 file changed, 12 insertions(+) https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=cb6dccf51bf2ae325c962febb48158f705f4c34c commit cb6dccf51bf2ae325c962febb48158f705f4c34c Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2019-07-16 20:26:14 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2019-07-16 20:29:15 +0000 linuxrc: Tell user why we consider a root device as invalid Bug: https://bugs.gentoo.org/520018 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> defaults/linuxrc | 36 ++++++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) Released with >=genkernel-4.0.0_beta5. |
screen transcript follows: >> Determining root device... >> Mounting /dev/vg_main/swap as root... >> Using mount -t auto -o ro !! The filesystem mounted at /dev/mapper/vg_main-swap does not appear to be a valid /, try again !! Could not find the root block device in . Please specify another value or: press Enter for the same, type "shell" for a shell, or "q" to skip... root blick device() :: /dev/vg_main/system Reproducible: Always Steps to Reproduce: Try booting into an "invalid" root block device, then pick a valid one. Actual Results: leftover mount from initrd: /dev/mapper/vg_main-swap /newroot ext4 ro,relatime,data=ordered 0 0 # umount /dev/mapper/vg_main-swap umount: /dev/mapper/vg_main-swap: not mounted Expected Results: There be no leftover mounts Can the "does not appear to be a valid /" be changed into something more informative? PS: I don't know what version of genkernel created that initramfs, but it was after kernel 3.8.6-hardened was stabilised.