Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 311277 Details for
Bug 409921
sys-fs/lvm2-2.02.95 fails to start LVM
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
version of above patch without cruft
lvm-start.patch (text/plain), 1.57 KB, created by
Xake
on 2012-05-09 19:09:35 UTC
(
hide
)
Description:
version of above patch without cruft
Filename:
MIME Type:
Creator:
Xake
Created:
2012-05-09 19:09:35 UTC
Size:
1.57 KB
patch
obsolete
>--- /var/portage/sys-fs/lvm2/files/lvm2-start.sh-2.02.95 2012-03-27 05:20:56.000000000 +0200 >+++ /lib/rcscripts/addons/lvm-start.sh 2012-05-09 21:07:51.109825064 +0200 >@@ -1,8 +1,6 @@ > # /lib/rcscripts/addons/lvm-start.sh > # $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/files/lvm2-start.sh-2.02.95,v 1.1 2012/03/27 03:20:56 robbat2 Exp $ > >-config='global { locking_dir = "/dev/.lvm" }' >- > dm_in_proc() { > local retval=0 > for x in devices misc ; do >@@ -28,15 +26,18 @@ > if [ -d /proc/lvm ] || dm_in_proc ; then > ebegin "Setting up the Logical Volume Manager" > #still echo stderr for debugging >- lvm_commands="#! ${lvm_path} --config '${config}'\n" >- # Extra PV find pass because some devices might not have been available until very recently >- lvm_commands="${lvm_commands}pvscan\n" >- # Now make the nodes >- lvm_commands="${lvm_commands}vgscan --mknodes\n" >+ lvm_commands="#! ${lvm_path}\n" >+ # devtmpfs (needed by udev) makes scanning unnecessary >+ if ! mountinfo -q -f devtmpfs /dev ; then >+ # Extra PV find pass because some devices might not have been available until very recently >+ lvm_commands="${lvm_commands}pvscan\n" >+ # Now make the nodes >+ lvm_commands="${lvm_commands}vgscan --mknodes\n" >+ fi > # And turn them on! > lvm_commands="${lvm_commands}vgchange --sysinit -a ly\n" > # Order of this is important, have to work around dash and LVM readline >- printf "%b\n" "${lvm_commands}" | $lvm_path /proc/self/fd/0 --config "${config}" >/dev/null >+ printf "%b\n" "${lvm_commands}" | $lvm_path /proc/self/fd/0 >/dev/null > eend $? "Failed to setup the LVM" > fi > else
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 409921
:
306899
|
306901
|
311269
| 311277