1 |
Canek Peláez Valdés <caneko@×××××.com> wrote: |
2 |
|
3 |
> On Mon, May 12, 2014 at 11:52 AM, <covici@××××××××××.com> wrote: |
4 |
> > Canek Peláez Valdés <caneko@×××××.com> wrote: |
5 |
> > |
6 |
> >> On Mon, May 12, 2014 at 11:31 AM, <covici@××××××××××.com> wrote: |
7 |
> >> [snip] |
8 |
> >> > OK, I will try dracut, |
9 |
> >> |
10 |
> >> I hope it works with dracut. This is my kernel command line and |
11 |
> >> RAID/LVM related stuff from GRUB2: |
12 |
> >> |
13 |
> >> GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd quiet nosplash" |
14 |
> >> GRUB_PRELOAD_MODULES="lvm mdraid1x" |
15 |
> >> |
16 |
> >> And this is my dracut.conf (minus comments): |
17 |
> >> |
18 |
> >> add_dracutmodules+="crypt lvm mdraid systemd" |
19 |
> >> add_drivers+="autofs4 ipv6 dm-crypt aes sha256" |
20 |
> >> fscks="umount mount /sbin/fsck* e2fsck" |
21 |
> >> |
22 |
> >> That's it. I didn't touched anything else to make dracut+systemd work |
23 |
> >> with LVM and RAID (and LUKS, but that doesn't matter). |
24 |
> >> |
25 |
> >> Also, dracut comes with extensive and very clear documentation; check |
26 |
> >> the man pages included. |
27 |
> >> |
28 |
> >> > but I still want to know what systemd is doing, |
29 |
> >> > what processes its spawning, etc. -- how can I find this out -- I |
30 |
> >> > thought to use the confirm_spawn, but it times out and keeps going, what |
31 |
> >> > can I do instead? |
32 |
> >> |
33 |
> >> You can use bootchart: |
34 |
> >> |
35 |
> >> man 1 systemd-bootchart |
36 |
> >> |
37 |
> >> It will produce a chart with all the processes, and how long it takes |
38 |
> >> for every one of them. But remember, the order depends on which one |
39 |
> >> finishes before, and that can change from boot to boot. |
40 |
> >> |
41 |
> >> > Thanks people for all your responses, this is a great list. |
42 |
> >> |
43 |
> >> Regards. |
44 |
> >> -- |
45 |
> >> Canek Peláez Valdés |
46 |
> >> Profesor de asignatura, Facultad de Ciencias |
47 |
> > |
48 |
> > Well, since I am unable to see, the graph would not do me any good, any |
49 |
> > way to get it in text form? What I want to see (and I know the order |
50 |
> > may change) is which starts first and so on, to make sure targets, |
51 |
> > etc. do what I want them to do. |
52 |
> |
53 |
> Try adding this to your kernel command line: |
54 |
> systemd.log_target=console systemd.log_level=debug. It will add a lot |
55 |
> of output, including what is being executed. |
56 |
> |
57 |
> Everything is documented in the man page: man 1 systemd. |
58 |
|
59 |
Well, I rebooted under dracut, but it did not do the lvmscan and so the |
60 |
job trying to find the root file system timed out after 90 seconds. It |
61 |
took me to the emergency shell which I had specified, and I was able to |
62 |
do the lvm_scan and them magically root got mounted under sysroot, but I |
63 |
had no idea what to do next to maybe get things going. |
64 |
|
65 |
So how can I get dracut to do its lvm_scan -- I even added the line |
66 |
add_dracutmodules+="lvm" |
67 |
but no joy. |
68 |
I saved the rdsosreport.txt and if that is of any use, I can post it. |
69 |
|
70 |
-- |
71 |
Your life is like a penny. You're going to lose it. The question is: |
72 |
How do |
73 |
you spend it? |
74 |
|
75 |
John Covici |
76 |
covici@××××××××××.com |