[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[lvm-devel] [PATCH] Fix Gentoo support in lvm2create_initrd



Gentoo's MAKEDEV has moved (probably some time ago) from /usr/sbin
to /sbin. This fixes that and documents the option as well since I
didn't even know it existed until I looked at the source. Note that
this patch doesn't include the generated pod2man changes because my
version is much newer and it changes a lot of other lines too.
Index: scripts/lvm2create_initrd/lvm2create_initrd
===================================================================
RCS file: /cvs/lvm2/LVM2/scripts/lvm2create_initrd/lvm2create_initrd,v
retrieving revision 1.2
diff -u -r1.2 lvm2create_initrd
--- scripts/lvm2create_initrd/lvm2create_initrd	21 Nov 2006 22:41:56 -0000	1.2
+++ scripts/lvm2create_initrd/lvm2create_initrd	12 Nov 2011 13:45:05 -0000
@@ -74,7 +74,7 @@
 	echo "      -e|--extra     extra files to add to initrd"
 	echo "      -r|--raid      raid devices to start in initrd"
 	echo "      -R|--raidconf  location of mdadm.conf file to include"
-	echo "      -M|--makedev   set MAKEDEV type (debian or redhat)"
+	echo "      -M|--makedev   set MAKEDEV type (debian, redhat, gentoo)"
 }
 
 verbose () {
@@ -379,7 +379,7 @@
     RETCODE=$?
     ;;
 gentoo)
-    (cd $TMPMNT/dev; /usr/sbin/MAKEDEV $OPT_Q $BASICDEVICES $BLOCKDEVICES)
+    (cd $TMPMNT/dev; /sbin/MAKEDEV $OPT_Q $BASICDEVICES $BLOCKDEVICES)
     RETCODE=$?
     ;;
 *)
Index: scripts/lvm2create_initrd/lvm2create_initrd.pod
===================================================================
RCS file: /cvs/lvm2/LVM2/scripts/lvm2create_initrd/lvm2create_initrd.pod,v
retrieving revision 1.1
diff -u -r1.1 lvm2create_initrd.pod
--- scripts/lvm2create_initrd/lvm2create_initrd.pod	7 Jun 2004 16:20:05 -0000	1.1
+++ scripts/lvm2create_initrd/lvm2create_initrd.pod	12 Nov 2011 13:45:05 -0000
@@ -107,11 +107,11 @@
 
 =item B<-M|--makedev> I<style>
 
-Set MAKEDEV invocation style. The script currently supports 2 styles of
-MAKEDEV programs I<debian> and I<redhat>. The default is I<debian>. Set
-to I<redhat> if using the RedHat/Fedora binary MAKEDEV program. Please send
-a bug report to maintainer if your distrib doesn't work with any of the
-current options.
+Set MAKEDEV invocation style. The script currently supports 3 styles of
+MAKEDEV programs I<debian>, I<redhat> and I<gentoo>. The default is I<debian>.
+Set to I<redhat> if using the RedHat/Fedora binary MAKEDEV program. I<gentoo>
+has the same binary but in /sbin instead of /dev. Please send a bug report to
+maintainer if your distribution doesn't work with any of the current options.
 
 =back
 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]