You are not logged in.

#1 2012-11-14 09:53:39

chsims1
Member
From: Holderness, UK
Registered: 2008-11-25
Posts: 78

[DONE]Systemd: Failed to load default target: Unit name is not valid

Hi,

I'm getting the above error message in the journal, but

systemctl --failed 

doesn't show anything.  How do I track down the culprit?  Can I get a list of all units which systemd tries to load?

Last edited by chsims1 (2012-11-15 09:18:46)

Offline

#2 2012-11-14 10:25:14

denisfalqueto
Member
From: Belo Horizonte/MG/Brazil
Registered: 2006-03-24
Posts: 194

Re: [DONE]Systemd: Failed to load default target: Unit name is not valid

The default target is usualy a simlink to an actual target that should be loaded by default. In my case, it is located at /usr/lib/systemd/system/default.target and points to /usr/lib/systemd/system/graphical.target. Probably, you have a different target and you should look at /usr/lib/systemd/system or /etc/systemd/system to see where the symlink is pointing to.


Satisfied users don't rant, so you'll never know how many of us there are.

Offline

#3 2012-11-14 11:57:02

chsims1
Member
From: Holderness, UK
Registered: 2008-11-25
Posts: 78

Re: [DONE]Systemd: Failed to load default target: Unit name is not valid

My default.target is identical to yours

root@study /usr/lib/systemd/system #  ls -l default.target
lrwxrwxrwx 1 root root 16 Oct 25 01:37 default.target -> graphical.target
root@study /usr/lib/systemd/system #  ls -l graphical.target
-rw-r--r-- 1 root root 522 Oct 25 01:37 graphical.target
root@study /usr/lib/systemd/system #  cat graphical.target
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

[Unit]
Description=Graphical Interface
Documentation=man:systemd.special(7)
Requires=multi-user.target
After=multi-user.target
Conflicts=rescue.target
Wants=display-manager.service
AllowIsolate=yes

[Install]
Alias=default.target

Offline

#4 2012-11-14 18:18:55

NSB-fr
Member
Registered: 2010-01-23
Posts: 45

Re: [DONE]Systemd: Failed to load default target: Unit name is not valid

Hi,

Is there a default.target in /etc/systemd/system/ ?

Do you specify a default target unit with systemd.unit= in your kernel parameters ?

Last edited by NSB-fr (2012-11-14 18:19:18)


Carpe Diem

Offline

#5 2012-11-15 09:16:40

chsims1
Member
From: Holderness, UK
Registered: 2008-11-25
Posts: 78

Re: [DONE]Systemd: Failed to load default target: Unit name is not valid

Thank you, you sent me off in the correct direction smile.  I have just updated my motherboard to a uEFI one, and it's a bit fiddly to get working.  I had made a typo in one of the .conf files (indeeed, 'systemd.unit=' in kernel parameters) for rEFInd (boot manager).  Thanks again.

P.S. Can't mark as [SOLVED], since not enough space: the forum will have to accept [DONE] smile

Last edited by chsims1 (2012-11-15 09:19:52)

Offline

Board footer

Powered by FluxBB