Summary: | [debianutils] mkboot script unwisely depends upon [util-linux] rdev utility | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | kfm |
Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | CC: | infowolfe |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=315303 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
sys-apps/debianutils-1.16.7-r5.ebuild
debianutils-1.16.7-mkboot-nordev.patch |
Description
kfm
2005-05-15 18:18:44 UTC
Created attachment 58977 [details]
sys-apps/debianutils-1.16.7-r5.ebuild
Created attachment 58978 [details, diff]
debianutils-1.16.7-mkboot-nordev.patch
This patch implements the alternate method of determining the root device as
mentioned above.
debianutils-2.x has 'better' rdev handling ... your rootpart grep looks pretty good, could you please e-mail that to the debian bug site ? http://www.debian.org/Bugs/Reporting Thanks SpanKY. I've done exactly that; I'll post back here if anything comes of it. Here's the BTS link: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=315303 Clint Adams accepted a fix for the package upstream (thanks Clint!). Not sure how it will propagate in terms of package versions/releases (should probably read up on their policy one of these days). I presume that the fix will somewhat resemble the suggestion I made: if [ $(mount | grep -o "^proc") ] && [ -e /proc/cmdline ]; then rootpart=$(grep -o "root=[^ ]*" /proc/cmdline | cut -d = -f 2) else which rdev >/dev/null && rootpart=$(rdev | cut -d ' ' -f 1) fi Thus, the existing behaviour is supported as a fallback in the case that it doesn't appear possible to establish the root device from the /proc filesystem. we watch http://packages.debian.org/unstable/base/debianutils.html when that version gets updated, we update the ebuild Sure thing, thanks. Damn, I just realised that it could have been made to work in a chroot also: [ $(mount | grep -Ec "^(none|proc) on /proc type proc") -gt 0 ] && [ -e /proc/cmdline ] Bump. It's fixed in >=debianutils-2.14 (where 2.14.1 is currently available). So this should be closed once it's in portage. 2.14.1 now in portage, thanks |