Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 50354 Details for
Bug 71032
checkfs does not modprobes dm-mod when LVM2 is configured!
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
The patch I'm using to fix the device node problem now
checkfs-create-node-v3.patch (text/plain), 1.77 KB, created by
BlaisorBlade
on 2005-02-04 10:30:41 UTC
(
hide
)
Description:
The patch I'm using to fix the device node problem now
Filename:
MIME Type:
Creator:
BlaisorBlade
Created:
2005-02-04 10:30:41 UTC
Size:
1.77 KB
patch
obsolete
>--- ./checkfs.noCreateNode 2005-01-04 20:30:22.000000000 +0100 >+++ ./checkfs 2005-01-31 19:29:47.000000000 +0100 >@@ -173,13 +173,52 @@ > then > ebegin "Setting up the Logical Volume Manager" > #still echo stderr for debugging >- /sbin/vgscan >/dev/null >- if [ "$?" -eq 0 ] && [ -x /sbin/vgchange ] && \ >+ echo -n Before vgscan: >+ [ -e /dev/mapper/control ] && echo "Node exists" || \ >+ echo "Node doesn't exist" >+ /sbin/vgscan >+ echo Vgscan returned $? >+ echo -n After vgscan: >+ [ -e /dev/mapper/control ] && echo "Node exists" || \ >+ echo "Node doesn't exist" >+ #My patch (-e to check existence, -f would check being a regular >+ #file!) >+# for ((i = 0; i < 4; i++)) >+# do >+# if [ ! -e /dev/mapper/control ] >+# then >+# sleep 1 >+# fi >+# done >+# [ -e /dev/mapper/control ] && echo "Node exists" || \ >+# echo "Node doesn't exist" >+ >+ # Get major, minor, and mknod >+ MAJOR=$(sed -n 's/^ *\([0-9]\+\) \+misc$/\1/p' /proc/devices) >+ MINOR=$(sed -n "s/^ *\([0-9]\+\) \+device-mapper\$/\1/p" /proc/misc) >+ >+ if test -z "$MAJOR" -o -z "$MINOR" ; then >+ eend 1 "$DM_NAME kernel module not loaded: can't create $CONTROL." >+ fi >+ >+ mkdir -p --mode=755 /dev/mapper >+ rm -f /dev/mapper/control >+ mknod -m 0660 /dev/mapper/control c $MAJOR $MINOR >+ unset MAJOR MINOR >+ #Modified version >+ if [ -x /sbin/vgchange ] && \ > [ -f /etc/lvmtab -o -d /etc/lvm ] >+ #if [ "$?" -eq 0 ] && [ -x /sbin/vgchange ] && \ >+ # [ -f /etc/lvmtab -o -d /etc/lvm ] >+ ##End my patch > then >- /sbin/vgchange -a y >/dev/null >+ echo Before vgchange >+ /sbin/vgchange -a y >+ ret=$? >+ #/sbin/vgchange -a y >/dev/null >+ echo After vgchange > fi >- eend $? "Failed to setup the LVM" >+ eend $ret "Failed to setup the LVM" > fi > fi >
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 71032
:
45210
|
45212
|
50353
|
50354