Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 296151 Details for
Bug 435228
mkinitrd doesn't grab dm modules for LVs listed by LABEL or UUID
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
git-format-patch that fixes this problem
0001-make-lvshow-work-with-sys-block-dm-devices.patch (text/plain), 1.25 KB, created by
Will Woods
on 2008-02-28 03:23:09 UTC
(
hide
)
Description:
git-format-patch that fixes this problem
Filename:
MIME Type:
Creator:
Will Woods
Created:
2008-02-28 03:23:09 UTC
Size:
1.25 KB
patch
obsolete
>From 865ebe1ab72b2345091be93112b684af7c7415b6 Mon Sep 17 00:00:00 2001 >From: Will Woods <wwoods@redhat.com> >Date: Wed, 27 Feb 2008 22:11:30 -0500 >Subject: [PATCH] make lvshow() work with /sys/block/dm-* devices; cut trailing slash from output of finddevnoinsys() > >--- > mkinitrd | 10 ++++++++-- > 1 files changed, 8 insertions(+), 2 deletions(-) > >diff --git a/mkinitrd b/mkinitrd >index 757f592..9ea7122 100755 >--- a/mkinitrd >+++ b/mkinitrd >@@ -483,7 +483,7 @@ finddevnoinsys() { > echo "$majmin" | cmp -s $device && echo $device ; done) > if [ -n "$dev" ]; then > dev=${dev%%/dev} >- echo "$dev" >+ echo "${dev%/}" > return 0 > fi > fi >@@ -739,8 +739,14 @@ handleraid() { > } > > lvshow() { >+ mylv=$1 >+ if [[ $mylv =~ ^/sys/block ]]; then >+ # This won't work; resolve to something lvm understands >+ devargs="$(sed 's/\([0-9]*\):\([0-9]*\)/-j\1 -m\2/' $1/dev)" >+ mylv=/dev/mapper/$(dmsetup info $devargs -c -o name --noheadings 2>/dev/null) >+ fi > lvm lvs --ignorelockingfailure --noheadings -o vg_name \ >- $1 2>/dev/null | egrep -v '^ *(WARNING:|Volume Groups with)' >+ $mylv 2>/dev/null | egrep -v '^ *(WARNING:|Volume Groups with)' > } > > vgdisplay() { >-- >1.5.4.3 >
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 435228
: 296151 |
296268
|
297247
|
297515
|
297517
|
297518
|
297520
|
297538
|
297640
|
297801