Gentoo Archives: gentoo-user

From: covici@××××××××××.com
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] problems getting systemd to work
Date: Wed, 14 May 2014 15:05:46
Message-Id: 26238.1400079937@ccs.covici.com
In Reply to: Re: [gentoo-user] problems getting systemd to work by "Canek Peláez Valdés"
1 Canek Peláez Valdés <caneko@×××××.com> wrote:
2
3 > On Wed, May 14, 2014 at 4:43 AM, <covici@××××××××××.com> wrote:
4 > > Canek Peláez Valdés <caneko@×××××.com> wrote:
5 > >
6 > >> On Mon, May 12, 2014 at 11:52 AM, <covici@××××××××××.com> wrote:
7 > >> > Canek Peláez Valdés <caneko@×××××.com> wrote:
8 > >> >
9 > >> >> On Mon, May 12, 2014 at 11:31 AM, <covici@××××××××××.com> wrote:
10 > >> >> [snip]
11 > >> >> > OK, I will try dracut,
12 > >> >>
13 > >> >> I hope it works with dracut. This is my kernel command line and
14 > >> >> RAID/LVM related stuff from GRUB2:
15 > >> >>
16 > >> >> GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd quiet nosplash"
17 > >> >> GRUB_PRELOAD_MODULES="lvm mdraid1x"
18 > >> >>
19 > >> >> And this is my dracut.conf (minus comments):
20 > >> >>
21 > >> >> add_dracutmodules+="crypt lvm mdraid systemd"
22 > >> >> add_drivers+="autofs4 ipv6 dm-crypt aes sha256"
23 > >> >> fscks="umount mount /sbin/fsck* e2fsck"
24 > >> >>
25 > >> >> That's it. I didn't touched anything else to make dracut+systemd work
26 > >> >> with LVM and RAID (and LUKS, but that doesn't matter).
27 > >> >>
28 > >> >> Also, dracut comes with extensive and very clear documentation; check
29 > >> >> the man pages included.
30 > >> >>
31 > >> >> > but I still want to know what systemd is doing,
32 > >> >> > what processes its spawning, etc. -- how can I find this out -- I
33 > >> >> > thought to use the confirm_spawn, but it times out and keeps going, what
34 > >> >> > can I do instead?
35 > >> >>
36 > >> >> You can use bootchart:
37 > >> >>
38 > >> >> man 1 systemd-bootchart
39 > >> >>
40 > >> >> It will produce a chart with all the processes, and how long it takes
41 > >> >> for every one of them. But remember, the order depends on which one
42 > >> >> finishes before, and that can change from boot to boot.
43 > >> >>
44 > >> >> > Thanks people for all your responses, this is a great list.
45 > >> >>
46 > >> >> Regards.
47 > >> >> --
48 > >> >> Canek Peláez Valdés
49 > >> >> Profesor de asignatura, Facultad de Ciencias
50 > >> >
51 > >> > Well, since I am unable to see, the graph would not do me any good, any
52 > >> > way to get it in text form? What I want to see (and I know the order
53 > >> > may change) is which starts first and so on, to make sure targets,
54 > >> > etc. do what I want them to do.
55 > >>
56 > >> Try adding this to your kernel command line:
57 > >> systemd.log_target=console systemd.log_level=debug. It will add a lot
58 > >> of output, including what is being executed.
59 > >
60 > > I also in my kernel command line said rd.lvm=1 just to make sure.
61 >
62 > John, which version of dracut are you using? Also, what was the
63 > command line you used to generate it?
64
65 I am using version 037 and the command line was very simple
66 dracut --force -M
67 and here is its output:
68 Script started on Wed 14 May 2014 04:52:19 AM EDT
69 Executing: /usr/bin/dracut --force -M
70 00bootchart: Could not find command '/sbin/bootchartd'!
71 00dash: Could not find command '/bin/dash'!
72 50plymouth: Could not find command 'plymouthd'!
73 50plymouth: Could not find command 'plymouth'!
74 90btrfs: Could not find command 'btrfs'!
75 90dmraid: Could not find command 'dmraid'!
76 90mdraid: Could not find command 'mdadm'!
77 90multipath: Could not find command 'multipath'!
78 95fcoe-uefi: Could not find command 'dcbtool'!
79 95fcoe-uefi: Could not find command 'fipvlan'!
80 95fcoe-uefi: Could not find command 'lldpad'!
81 95iscsi: Could not find command 'iscsistart'!
82 95iscsi: Could not find command 'iscsi-iname'!
83 95nbd: Could not find command 'nbd-client'!
84 97biosdevname: Could not find command 'biosdevname'!
85 bash
86 caps
87 caps: does not work with systemd in the initramfs
88 modsign
89 dracut-install: ERROR: installing '/usr/bin/keyctl'
90 /usr/libexec/dracut-install -D /var/tmp/initramfs.dpEwDV /usr/bin/keyctl
91 i18n
92 network
93 crypt
94 dm
95 Skipping udev rule: 64-device-mapper.rules
96 Skipping udev rule: 60-persistent-storage-dm.rules
97 Skipping udev rule: 55-dm.rules
98 kernel-modules
99 Omitting driver i2o_scsi
100 lvm
101 Skipping udev rule: 64-device-mapper.rules
102 Skipping udev rule: 56-lvm.rules
103 Skipping udev rule: 60-persistent-storage-lvm.rules
104 cifs
105 nfs
106 resume
107 rootfs-block
108 terminfo
109 udev-rules
110 Skipping udev rule: 91-permissions.rules
111 Skipping udev rule: 80-drivers-modprobe.rules
112 systemd
113 usrmount
114 base
115 fs-lib
116 shutdown
117 *** Including modules done ***
118 *** Installing kernel module dependencies and firmware ***
119 *** Installing kernel module dependencies and firmware done ***
120 *** Resolving executable dependencies ***
121 *** Resolving executable dependencies done***
122 *** Stripping files ***
123 *** Stripping files done ***
124 *** Store current command line parameters ***
125 *** Creating image file ***
126 *** Creating image file done ***
127
128 Script done on Wed 14 May 2014 04:52:50 AM EDT
129
130
131
132 --
133 Your life is like a penny. You're going to lose it. The question is:
134 How do
135 you spend it?
136
137 John Covici
138 covici@××××××××××.com

Replies

Subject Author
Re: [gentoo-user] problems getting systemd to work "Canek Peláez Valdés" <caneko@×××××.com>