Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61827 - EVMS2 genkernel
Summary: EVMS2 genkernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-08-26 09:35 UTC by Douglas Hammond
Modified: 2005-01-05 13:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
genkernel.diff (genkernel.diff,3.29 KB, patch)
2004-08-26 09:37 UTC, Douglas Hammond
Details | Diff
updated for genkernel-3.1.0a (genkernel-evms2.patch,2.53 KB, patch)
2004-11-02 05:23 UTC, Nick Fish
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Douglas Hammond 2004-08-26 09:35:33 UTC
I have made a patch to genkernel to support a root partition on an evms volume

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




here is the diff with my changes

diff -r -u /usr/share/genkernel/gen_initrd.sh ./gen_initrd.sh
--- /usr/share/genkernel/gen_initrd.sh  2004-08-26 11:11:43.000000000 -0500
+++ ./gen_initrd.sh     2004-08-26 11:00:36.000000000 -0500
@@ -85,6 +85,26 @@
 #              print_warning 1 "initrd: No LVM2 static binaries found; 
skipping support..."
        fi

+       # EVMS2
+       if [ -e '/sbin/evms_activate' ]
+       then
+#              if [ "${CMD_NOEVMS}" -ne '1' ]
+#              then
+                       mkdir -p ${TEMP}/initrd-temp/lib
+                       cp -a /lib/ld-* "${TEMP}/initrd-temp/lib" || 
gen_die 'Could not copy files for EVMS2!'
+                       cp -a /lib/libc-* /lib/libc.* "${TEMP}/initrd-temp/lib" 
|| gen_die 'Could not copy files for EVMS2!'
+                       cp -a /lib/libdl-* /lib/libdl.* "${TEMP}/initrd-
temp/lib" || gen_die 'Could not copy files for EVMS2!'
+                       cp -a /lib/libpthread* "${TEMP}/initrd-temp/lib" || 
gen_die 'Could not copy files for EVMS2!'
+                       cp -a /lib/libuuid*so* "${TEMP}/initrd-temp/lib" || 
gen_die 'Could not copy files for EVMS2!'
+                       cp -a /lib/libevms*so* "${TEMP}/initrd-temp/lib" || 
gen_die 'Could not copy files for EVMS2!'
+                       cp -a /lib/evms "${TEMP}/initrd-temp/lib" || 
gen_die 'Could not copy files for EVMS2!'
+                       cp -a /lib/evms/* "${TEMP}/initrd-temp/lib/evms" || 
gen_die 'Could not copy files for EVMS2!'
+                       cp -a /etc/evms.conf "${TEMP}/initrd-temp/etc" || 
gen_die 'Could not copy files for EVMS2!'
+                       cp /sbin/evms_activate "${TEMP}/initrd-
temp/bin/evms_activate" || gen_die 'Could not copy over vgscan!'
+#              fi
+       fi
+
+
        for i in '[' ash basename cat chroot clear cp dirname echo env false 
find \
        grep gunzip gzip ln ls loadkmap losetup lsmod mkdir mknod more mount mv 
\
        pivot_root ps awk pwd rm rmdir rmmod sed sh sleep tar test touch true 
umount uname \
diff -r -
u /usr/share/genkernel/generic/initrd.defaults ./generic/initrd.defaults
--- /usr/share/genkernel/generic/initrd.defaults        2004-08-26 
11:11:43.000000000 -0500
+++ ./generic/initrd.defaults   2004-08-26 10:56:56.000000000 -0500
@@ -17,8 +17,8 @@
 # Only sections that are in by default or those that
 # are not module groups need to be defined here...

-HWOPTS="usb firewire keymap cache lvm2"
-MY_HWOPTS="usb firewire lvm2"
+HWOPTS="usb firewire keymap cache lvm2 evms2"
+MY_HWOPTS="usb firewire lvm2 evms2"

 QUIET=1
 ROOT_LINKS='bin sbin lib lib64 boot usr opt'
diff -r -u /usr/share/genkernel/generic/linuxrc ./generic/linuxrc
--- /usr/share/genkernel/generic/linuxrc        2004-08-26 11:11:43.000000000 -
0500
+++ ./generic/linuxrc   2004-08-26 10:58:52.000000000 -0500
@@ -104,8 +104,10 @@
        chooseKeymap
 fi

+
 echo -e "${GOOD}>>${NORMAL}${BOLD} Mounting filesystems...${NORMAL}"

+
 mkdir /newroot
 if [ "${CDROOT}" -eq '1' ]
 then
@@ -157,6 +159,17 @@
        fi
 fi

+
+if [ "${DO_evms2}" ]
+then
+       if [ -e '/sbin/evms_activate' ]
+       then
+               echo -e "${GOOD}>>${NORMAL}${BOLD} Activating EVMS...${NORMAL}"
+               evms_activate
+       fi
+fi
+
+
 echo -e "${GOOD}>>${NORMAL}${BOLD} Determining root device...${NORMAL}"

 while true
Comment 1 Douglas Hammond 2004-08-26 09:37:25 UTC
Created attachment 38248 [details, diff]
genkernel.diff
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2004-08-26 13:15:45 UTC
Could you please attach your diff to this bug so the newlines don't get mangled by Bugzilla? Thanks.
Comment 3 Douglas Hammond 2004-08-26 14:13:20 UTC
Have done
Comment 4 Nick Fish 2004-11-02 05:23:11 UTC
Created attachment 43157 [details, diff]
updated for genkernel-3.1.0a
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2004-11-30 11:40:13 UTC
Ok, support in genkernel-3.0.2c, should reach rsync shortly. Please reopen this bug if you have any problems. Thanks!
Comment 6 Chris Gianelloni (RETIRED) gentoo-dev 2005-01-05 13:33:56 UTC
This thing gives some nasty errors about some swap plug-in... that, and it should only be enabled when you add --evms to the command line, like lvm2 does.

I can file a separate bug on this, if you wish.