| Summary: | >=sys-kernel/gentoo-sources-3.10: dev-root-proc-mount-fix patch breaks root on HP cciss controllers | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Hector Martin <marcan> |
| Component: | Current packages | Assignee: | Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | CC: | bobbykent32 |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Hector Martin
2017-03-29 08:23:13 UTC
bug 438380 looks like a good candidate for the origin of the patch. bug 467266 appears to be a tweak restoring default kernel behaviour (int err = create_dev("/dev/root", ROOT_DEV);) for systems without an initramfs using root=PARTUUID type syntax on the kernel commandline. Perhaps cciss users are another case where default behaviour would be advantageous. While it might not be elegant, something like: if (saved_root_name[0] == '/' && ((int)(strrchr(saved_root_name, '/') - saved_root_name)) == 4 ) { should do the trick. An alternative could be creating intermediate directories between /dev and the root "node". Well, it doesn't make much sense to force the change except for some drivers. Ultimately, either the patch makes sense -in which case it should be upstreamed, and fixed to work for all drivers including creating subdirectories- or it doesn't -in which case it should be dropped. In general I have a bad vibe about patching such core parts of the kernel without a *very* good excuse. The discussion is several years old; userspace these days seems to work with /dev/root fine. I don't think Gentoo should patch the kernel unless it is to fix bugs that do not change the userspace interface, or to add features useful to Gentoo. This change is something that affects every distro; there shouldn't be a need to have a one-off patch in Gentoo if other distros don't need it. bug #438380 is the origin of this patch. The question is, will the affected packages in that bug break without this patch, will ones we don't know about break or are we so far in the future these packages have since handled this? If someone wants to submit a fix for this patch, I will review and commit. Honestly, it's not at all clear to me from that old bug (and associated ones) what kinds of breakage we're looking for without the patch. There were some mentions of quota, but I'm not sure exactly what to test. Either way, since /dev/root *does* actually get created by udev, nothing should be breaking if it just naively opens /dev/root. I'll be happy to test any specific issues that were previously problematic with /dev/root. If we can't find anything broken I think the logical course of action would be to just remove the patch. This patch is no longer part of gentoo-sources as of kernels >= 4.17. |