Gentoo Archives: gentoo-user

From: Daniel Frey <djqfrey@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Getting genkernel to use newer dmraid
Date: Mon, 11 Jul 2011 17:13:25
Message-Id: CA+ZgY1FbOMPaBJTcGXAFb-MyPRVtk4nF2bajCq81d8j3azUTfg@mail.gmail.com
1 Hi all,
2
3 I've been trying to get genkernel to use a newer version of dmraid.
4 For some reason, genkernel is using a build from 2006 (!)
5
6 I've tried an ubuntu livecd which uses a build that's available in
7 portage that works with my fakeraid. All this to try to dual-boot
8 using a raid 1+0.
9
10 I've discovered /etc/genkernel.conf has settings for this, so I tried
11 changing them:
12 -----
13 #DMRAID_VER="1.0.0.rc14"
14 DMRAID_VER="1.0.0.rc16"
15 DMRAID_DIR="dmraid/${DMRAID_VER}"
16 #DMRAID_SRCTAR="${DISTDIR}/dmraid-${DMRAID_VER}.tar.bz2"
17 DMRAID_SRCTAR="/usr/share/dmraid/dmraid-1.0.0.rc16-3-prepatched.tar.bz2"
18 DMRAID_BINCACHE="%%CACHE%%/dmraid-${DMRAID_VER}-%%ARCH%%.tar.bz2"
19 -----
20
21 After that I issued a `genkernel --lvm --dmraid initramfs` and got this:
22 -----
23 ubuntu / # genkernel initramfs
24 * Gentoo Linux Genkernel; Version 3.4.17
25 * Running with options: initramfs
26
27 * Linux Kernel 2.6.38-gentoo-r6 for x86_64...
28 * blkid: >> Using cache
29 * busybox: >> Using cache
30 * initramfs: >> Initializing...
31 * >> Appending base_layout cpio data...
32 * >> Appending auxilary cpio data...
33 * >> Appending busybox cpio data...
34 * >> Appending lvm cpio data...
35 * LVM: Adding support (using local static binary /sbin/lvm.static)...
36 * >> Appending dmraid cpio data...
37 * DMRAID: Adding support (compiling binaries)...
38 * ERROR: DMRAID directory ${DMRAID_DIR} is invalid!
39
40 * -- Grepping log... --
41
42 * >> Appending dmraid cpio data...
43 * DMRAID: Adding support (compiling binaries)...
44 * Gentoo Linux Genkernel; Version 3.4.17
45 * Running with options: initramfs
46
47 * ERROR: DMRAID directory ${DMRAID_DIR} is invalid!
48
49 * -- End log... --
50 -----
51
52 I can see that the dmraid directory is invalid, but I do not know how
53 to correct this?
54
55 I've not tried making an initramfs myself (I do not know how) but have
56 been building my own kernels since 2004. I couldn't really find
57 anything on genkernel after googling other than the basic usage.
58
59 Can anyone help?

Replies

Subject Author
Re: [gentoo-user] Getting genkernel to use newer dmraid Alan McKinnon <alan.mckinnon@×××××.com>