Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 233317 Details for
Bug 321569
sys-fs/lvm2-2.02.64: fix grub2 support
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
make grub2 follow symbolic links in /dev/mapper/ (from upstream)
grub-1.98-follow-dev-mapper-symlinks-upstream.patch (text/plain), 793 bytes, created by
Chris Coleman
on 2010-05-28 18:26:27 UTC
(
hide
)
Description:
make grub2 follow symbolic links in /dev/mapper/ (from upstream)
Filename:
MIME Type:
Creator:
Chris Coleman
Created:
2010-05-28 18:26:27 UTC
Size:
793 bytes
patch
obsolete
>--- a/util/getroot.c 2010-03-06 20:51:37.000000000 +0000 >+++ b/util/getroot.c 2010-05-28 19:21:57.592307313 +0100 >@@ -222,9 +222,20 @@ find_root_device (const char *dir, dev_t > /* Ignore any error. */ > continue; > >- if (S_ISLNK (st.st_mode)) >- /* Don't follow symbolic links. */ >+ if (S_ISLNK (st.st_mode)) { >+#ifdef __linux__ >+ if (strcmp (dir, "mapper") == 0) { >+ /* Follow symbolic links under /dev/mapper/; the canonical name >+ may be something like /dev/dm-0, but the names under >+ /dev/mapper/ are more human-readable and so we prefer them if >+ we can get them. */ >+ if (stat (ent->d_name, &st) < 0) >+ continue; >+ } else >+#endif /* __linux__ */ >+ /* Don't follow other symbolic links. */ > continue; >+ } > > if (S_ISDIR (st.st_mode)) > {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 321569
:
233015
|
233195
|
233301
| 233317