Gentoo Archives: gentoo-user

From: Michael Scherer <a6702894@××××××××××××××.at>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] genkernel assistance building initramfs
Date: Tue, 24 Apr 2012 15:13:51
Message-Id: DDB1B44D709440559CC600958263F9EE@mic2
In Reply to: Re: [gentoo-user] genkernel assistance building initramfs by Dale
1 So you solved it.
2 It would be nice then to adorn your subject lines with a [solved] tag,
3 to avoid further getting mails with comments that are obsolete.
4
5 michael
6
7 --
8 Michael Scherer
9 Univ.klinik f. Psychiatrie
10 email: michael.scherer@×××××××××××××.at
11 phone: +43 6991 941 22 54
12
13 ----- Original Message -----
14 From: "Dale" <rdalek1967@×××××.com>
15 To: <gentoo-user@l.g.o>
16 Sent: Tuesday, 24 April, 2012 01:43
17 Subject: Re: [gentoo-user] genkernel assistance building initramfs
18
19
20 > Michael Scherer wrote:
21 >> On Mon, 23 Apr 2012 18:01:09 -0500
22 >> Dale <rdalek1967@×××××.com> wrote:
23 >>
24 >>> Michael Scherer wrote:
25 >>>> On Mon, 23 Apr 2012 13:26:57 -0500
26 >>>> Dale <rdalek1967@×××××.com> wrote:
27 >>>>
28 >>>>> Michael Mol wrote:
29 >>>>>> So, my habit is to have /usr sit on top of LVM on top of mdraid. I
30 >>>>>> really don't want to get into the business of manually managing my
31 >>>>>> own initramfs, and udev >= 181 will eventually hit stable. I want
32 >>>>>> my systems ready before that.
33 >>>>>>
34 >>>>>> Now, having looked at the pertinent documentation, it looks like
35 >>>>>> the command I need to run is:
36 >>>>>>
37 >>>>>> genkernel --lvm --mdadm --disklabel initramfs
38 >>>>>>
39 >>>>>> and then add the initramfs to my grub setup.
40 >>>>>>
41 >>>>>> The trouble is, genkernel dies on me. I tried for some feedback in
42 >>>>>> #gentoo-chat, and DrEeevil gave me two clues:
43 >>>>>>
44 >>>>>> 13:34 <+DrEeevil> that shouldn't even be possible
45 >>>>>> 13:36 <+DrEeevil> mikemol: looks like static linking didn't on
46 >>>>>> your system
47 >>>>>>
48 >>>>>> I don't know where to take things from here. I'm hesitant to file
49 >>>>>> a bug on b.g.o, because the tail end of genkernel.log specifically
50 >>>>>> says not to file build errors as bug reports.
51 >>>>>>
52 >>>>>> So...any ideas? This is an amd64 mostly-stable system, and dracut
53 >>>>>> is still masked on amd64, which is why I'm trying to get genkernel
54 >>>>>> working.
55 >>>>>>
56 >>>>>> I've attached genkernel.log
57 >>>>>>
58 >>>>>
59 >>>>>
60 >>>>> If I read the -dev mailing list correctly, they plan to still
61 >>>>> support /usr without a init thingy. After all the mess I went
62 >>>>> through, we may not need the init thingy after all.
63 >>>>>
64 >>>>> Go figure.
65 >>>>>
66 >>>>> Dale
67 >>>>>
68 >>>>> :-) :-)
69 >>>>>
70 >>>>
71 >>>> I wouldn't bet on that.
72 >>>>
73 >>>> But there is a detailed gentoo howto to create an iniramfs
74 >>>> that does just that: load /usr.
75 >>>> http://wiki.gentoo.org/wiki/Early_Userspace_Mounting
76 >>>> It works. You only need tell your bootloader that now you
77 >>>> have an initramfs.
78 >>>> There's also a more general introduction
79 >>>> http://en.gentoo-wiki.com/wiki/Initramfs
80 >>>> for a lot of other options
81 >>>>
82 >>>> michael
83 >>>>
84 >>>>
85 >>>
86 >>>
87 >>> I'm not betting on it but that is what the Gentoo council voted on and
88 >>> it said that /usr on a separate partition was going to be supported.
89 >>>
90 >>> You must have missed the HUGE thread where I was trying to get a init
91 >>> thingy to work huh?
92 >>>
93 >>> Dale
94 >>>
95 >>> :-) :-)
96 >>>
97 >>
98 >> Indeed, I missed all but one email, but there was no hint
99 >> at all that anything had been said before I came in.
100 >> Sorry for my unsolicited comments, and I hope you have
101 >> solved that problem in one or another way.
102 >>
103 >> michael
104 >>
105 >>
106 >>
107 >
108 >
109 > I meant to put a "LOL" after the comment about the huge thread. I'm not
110 > sure how I missed that. :/ I did get it to work finally. It took
111 > several peoples help and a hammer on my part. ;-)
112 >
113 > I'm just curious as to how they are going to support this in the future.
114 > I have read where some say it can be done but others say it can't, or
115 > not easily. Old saying, this is where the rubber meets the road. ^_^
116 >
117 >
118 > To the OP. I would use dracut. I ran into trouble but I found out
119 > later that a earlier attempt at a init thingy was causing the dracut
120 > init thingy to mess up. I strongly suspect that if I had known to get
121 > rid of the previous attempt, it would have worked the first time. My
122 > previous attempt was the one that was built into the kernel itself.
123 > Lets just say there was a huge fight and I missed it. Grub was telling
124 > one thing to load and the kernel was trying to load something else. I'm
125 > sure it was a nice fight.
126 >
127 > Dale
128 >
129 > :-) :-)
130 >
131 > --
132 > I am only responsible for what I said ... Not for what you understood or
133 > how you interpreted my words!
134 >
135 > Miss the compile output? Hint:
136 > EMERGE_DEFAULT_OPTS="--quiet-build=n"
137 >
138 >