Gentoo Archives: gentoo-user

From: "João Matos" <jaoneto@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Systemd reaches "target Emergency Mode" every boot
Date: Sun, 27 Jan 2013 22:14:39
Message-Id: CAP4tJZLH1YSxnbdHbPzjhV0bp3TVriMGPT-y3ip9MYUGGBQWdQ@mail.gmail.com
In Reply to: Re: [gentoo-user] Systemd reaches "target Emergency Mode" every boot by "João Matos"
1 Is there any way it is not in the "default mode"?
2
3 when it stoped, instead of hitting Ctrl D, I taped my password and
4 "systemctl default", so it could try to start again the default boot
5 process. And it worked.
6
7 I'll not try the downgrade right now bcz, after a emerge --sync, my portage
8 started do complain about compiling net-misc/networkmanager with support
9 for both systemd and consolekit, but I'm not able to disable consolekit
10 support. So I'll wait them to fix it.
11
12
13 2013/1/27 João Matos <jaoneto@×××××.com>
14
15 >
16 >
17 >
18 > 2013/1/27 Canek Peláez Valdés <caneko@×××××.com>
19 >
20 >> On Sun, Jan 27, 2013 at 12:31 PM, João Matos <jaoneto@×××××.com> wrote:
21 >> >
22 >> >
23 >> >
24 >> > 2013/1/26 Canek Peláez Valdés <caneko@×××××.com>
25 >> >>
26 >> >> On Sat, Jan 26, 2013 at 7:08 PM, João Matos <jaoneto@×××××.com> wrote:
27 >> >> > Hi list,
28 >> >> >
29 >> >> > I'm having this problem for a while, but I've decided to solve it
30 >> know.
31 >> >> > Every time I boot my system (couple times a day), I have to hid Ctrl
32 >> + D
33 >> >> > when the boot process is interrupted by the "emergency mode".
34 >> >> >
35 >> >> > I think it started when I was compiling the kernel myself, and
36 >> removing
37 >> >> > lot
38 >> >> > of stuff. Although, I checked and the mandatory options for systemd
39 >> are
40 >> >> > ok.
41 >> >> >
42 >> >> > When I run "journalctl -b -p err" the only information I get is:
43 >> >> >
44 >> >> > Jan 26 20:29:20 KONOHA NetworkManager[1497]: claim_connection:
45 >> assertion
46 >> >> > `nm_connection_get_path (NM_CONNECTION (connection)) == NULL' failed
47 >> >> > Jan 26 20:29:24 localhost dhcpcd[1557]: wlan0: sendmsg: Cannot assign
48 >> >> > requested address
49 >> >> > Jan 26 20:30:42 localhost pulseaudio[2073]: [pulseaudio] pid.c:
50 >> Daemon
51 >> >> > already running.
52 >> >> > Jan 26 20:30:42 localhost pulseaudio[2080]: [pulseaudio] pid.c:
53 >> Daemon
54 >> >> > already running.
55 >> >> >
56 >> >> > It give me no clue.
57 >> >> >
58 >> >> > Attached the .conf from my gentoo-3.7.1
59 >> >> >
60 >> >> > After I hit Ctrl + D, the system works normally.
61 >> >> >
62 >> >> > Any help will be appreciated :)
63 >> >>
64 >> >> Are you using udev-197 with systemd-197? mgorny masked it, and said
65 >> >> this in package.mask:
66 >> >
67 >> >
68 >> > I'm using them. Last time I updated my system there weren't any warning.
69 >> > Anyway, this problem is happening since the previous version.
70 >> >
71 >> >>
72 >> >> # Does not boot. Something with udev is probably broken. Feel free
73 >> >> # to unmask, debug and provide me with a patch.
74 >> >>
75 >> >> You need to be using the same version for udev and systemd (they are
76 >> >> the same package). If you are using the same version for udev and
77 >> >> systemd, are you using an initramfs? When was the last time you built
78 >> >> it, if you do?
79 >> >
80 >> >
81 >> > I don't have initramfs. Just the kernel. But it used to work normaly.
82 >> >>
83 >> >>
84 >> >> Could you boot with "systemd.log_target=kmsg" and
85 >> >> "systemd.log_level=debug", and post the whole output of "journalctl
86 >> >> -b"? It prints only the logs from the last boot.
87 >> >>
88 >> >
89 >> > journalctl -b attached.
90 >>
91 >> From your logs:
92 >>
93 >> Jan 27 15:16:27 KONOHA systemd[1]: Activating default unit:
94 >> emergency.target
95 >>
96 >> You have emergency.target as default unit. The default.target can be
97 >> set in different ways:
98 >>
99 >> - Check /usr/lib64/systemd/system/default.target
100 >>
101 >
102 > Nothing found here. The file is:
103 >
104 > [Unit]
105 > Description=Graphical Interface
106 > Documentation=man:systemd.special(7)
107 > Requires=multi-user.target
108 > After=multi-user.target
109 > Conflicts=rescue.target
110 > Wants=display-manager.service
111 > AllowIsolate=yes
112 >
113 > [Install]
114 > Alias=default.target
115 >
116 >
117 > - Check /etc/systemd/system/default.target
118 >>
119 >
120 > doesn't exist.
121 >
122 >
123 >> - Check if you use --unit=emergency.target in your grub config
124 >> - Check if you pass the "emergency" kernel parametr in your grub config
125 >>
126 >
127 > Nothing wrong with grub.
128 >
129 >
130 >> udev-197 in the tree installs everything to /; systemd-197 installs to
131 >> /usr. I'm pretty sure that is not going to end well; I haven't
132 >> upgraded to 197 in neither package.
133 >>
134 >> Check your default.target; for some reason is set to emergency.
135 >>
136 >> Regards.
137 >> --
138 >> Canek Peláez Valdés
139 >> Posgrado en Ciencia e Ingeniería de la Computación
140 >> Universidad Nacional Autónoma de México
141 >>
142 >>
143 > I've also tryed "systemctl disable emergency.service" and "systemctl
144 > disable emergency.target" before but got nothing.
145 >
146 > Anyway, thank you for your help :). I'll try to downgrade. But I still
147 > think it is about kernel config.
148 >
149 > --
150 > João de Matos
151 > Linux User #461527
152 > Graduando em Engenharia de Computação 2005.1
153 > UEFS - Universidade Estadual de Feira de Santana
154 >
155
156
157
158 --
159 João de Matos
160 Linux User #461527
161 Graduando em Engenharia de Computação 2005.1
162 UEFS - Universidade Estadual de Feira de Santana

Replies