1 |
On Fri, 03 Jan 2020 02:27:22 -0500, |
2 |
Dale wrote: |
3 |
> |
4 |
> John Covici wrote: |
5 |
> > On Thu, 02 Jan 2020 21:57:29 -0500, |
6 |
> > Dale wrote: |
7 |
> >> Howdy, |
8 |
> >> |
9 |
> >> I'm trying to rebuild a kernel to include new options, see other |
10 |
> >> thread. I got the kernel built but dracut is giving me grief. I hate |
11 |
> >> that thing and when a previous way that worked no longer works, it |
12 |
> >> doesn't help me like it any more. Still, it is what it is even if I |
13 |
> >> don't like it. I read the man page, the Gentoo wiki and tried different |
14 |
> >> methods but it just refuses to build a init thingy that I need. It |
15 |
> >> either fails right away or gets to the end and errors out without |
16 |
> >> completing. |
17 |
> >> |
18 |
> >> I name my kernels and such this way: |
19 |
> >> |
20 |
> >> root@fireball /usr/src/linux # ls -al /boot/kernel* |
21 |
> >> -rw-r--r-- 1 root root 7061552 Oct 14 2018 /boot/kernel-4.18.12-1 |
22 |
> >> -rw-r--r-- 1 root root 7082032 May 15 2019 /boot/kernel-4.19.40-1 |
23 |
> >> -rw-r--r-- 1 root root 7102512 Jan 2 19:46 /boot/kernel-4.19.40-2 |
24 |
> >> -rw-r--r-- 1 root root 5858496 Jun 17 2016 /boot/kernel-4.5.2-1 |
25 |
> >> root@fireball /usr/src/linux # |
26 |
> >> |
27 |
> >> I copy the kernels from the /usr/src/linux directory by hand as I've |
28 |
> >> always done. I name them starting with kernel and then add the kernel |
29 |
> >> version with a sequence number on the end. In the past, I've made it to |
30 |
> >> -4 before getting what I need. Right now, I'm working on 4.19.40-2 and |
31 |
> >> building a init thingy for it. This is how the init thingys end up, in |
32 |
> >> the past anyway: |
33 |
> >> |
34 |
> >> |
35 |
> >> root@fireball /usr/src/linux # ls -al /boot/initramfs* |
36 |
> >> -rw------- 1 root root 7752134 Oct 15 2018 /boot/initramfs-4.18.12-1.img |
37 |
> >> -rw------- 1 root root 8560993 May 15 2019 /boot/initramfs-4.19.40-1.img |
38 |
> >> -rw------- 1 root root 5377395 May 20 2016 /boot/initramfs-4.5.2-1.img |
39 |
> >> root@fireball /usr/src/linux # |
40 |
> >> |
41 |
> >> |
42 |
> >> What I need, the proper command with options to tell dracut I want to |
43 |
> >> build a init thingy for 4.19.40-2. I've tried many different ways but |
44 |
> >> none of them work. This includes commands I've used in the past that |
45 |
> >> did work. If I have to specify the init thingy name and the location of |
46 |
> >> the kernel modules directory, that's fine. I keep commands like this in |
47 |
> >> a file to refer back to because I do tend to forget specifics but in |
48 |
> >> this case, it seems dracut changed something. Previous commands are not |
49 |
> >> working. |
50 |
> >> |
51 |
> >> Does anyone know how to accomplish this task? Hopefully something that |
52 |
> >> will work even if dracut changes something with its defaults. I figure |
53 |
> >> if I tell it all it needs to know, then it should work even if dracut |
54 |
> >> changes the default method. I just can't seem to figure out what method |
55 |
> >> to use here. Maybe I'm missing a option or something. |
56 |
> >> |
57 |
> >> Thanks much. |
58 |
> > I think dracut uses the name of the /lib/modules directory, so just |
59 |
> > execute dracut "" <module directory name> such as in my case |
60 |
> > 4.19.85-gentoo . If that does not work post here, maybe you have |
61 |
> > spaces in your directory name, if so try using double quotes around |
62 |
> > it. |
63 |
> > |
64 |
> |
65 |
> |
66 |
> I decided to go back to a older version, just to see if it works. The |
67 |
> first example I had saved didn't work but the second did. First was |
68 |
> likely from a much older version of dracut. Do you know what changed |
69 |
> between dracut-046-r1 and dracut-048-r1? I ran into this once before |
70 |
> when a major version number changed. |
71 |
> |
72 |
> One reason I'd like to be able to specify everything is to avoid changes |
73 |
> in future versions. That way I can use the same command each time |
74 |
> unless they completely change everything which I'm sure I'd read about |
75 |
> long before I needed to use it. Just has a example: |
76 |
> |
77 |
> dracut /boot/<kernel name> <initramfs name> -k <path to kernel modules> |
78 |
> |
79 |
> With that, it knows where the kernel is, what to name the init thingy |
80 |
> and where to find the kernel modules. Thing is, I can't find a way to |
81 |
> do it that way with what I see in the man page or the wiki. I even |
82 |
> looked on non-Gentoo sites and didn't find anything like this. |
83 |
> |
84 |
> I did eventually help it find the modules. Then it ran into another |
85 |
> issue that even google couldn't find. I don't mean find a solution, it |
86 |
> couldn't find the problem either. It returned zero, 0, results. I was |
87 |
> floored. It's rare to see google return a stupid look. ROFL I also |
88 |
> tried renaming the kernel to see if that would help. No change. I know |
89 |
> it is picky on names but one would think it would stay the same. |
90 |
> Finding something with kernel on the front shouldn't be to hard. ;-) |
91 |
> |
92 |
> May have to just bang away until I get lucky then document the new way. |
93 |
> Whatever that way is. |
94 |
> |
95 |
> Thanks. |
96 |
|
97 |
I think you are over complicating things, when I use dracut, I don't |
98 |
specify any of those parameters, just the init thingy name which I |
99 |
usually leave blank and the name of the kernel I want to use, dracut |
100 |
finds everything fine. Why not do it that way and rename afterwards, |
101 |
if you don't like the name. |
102 |
|
103 |
-- |
104 |
Your life is like a penny. You're going to lose it. The question is: |
105 |
How do |
106 |
you spend it? |
107 |
|
108 |
John Covici wb2una |
109 |
covici@××××××××××.com |