systemctl set-default basic.target :(

Kernels & Hardware, configuring network, installing services

systemctl set-default basic.target :(

Postby maximus1978 » 2020-07-04 14:32

I am trying to learn systemd and changed the default target to basic.target

Code: Select all
systemctl set-default basic.target


I was not able to boot after this.

This happened on my raspberry pi 4.

I removed the sd card and plugged it into another system and was able to get the system working again

I had to delete from /etc/systemd/system/default.target (this was a symbolic link to basic.target unit file)

I am able to get back into my system now. I have a lot of reading to do to learn systemd properly arg

Posting this in case some one else does the same stupid thing.

This is also a reminder to myself to not do it again.
maximus1978
 
Posts: 92
Joined: 2015-03-19 12:49

Re: systemctl set-default basic.target :(

Postby Head_on_a_Stick » 2020-07-04 15:31

maximus1978 wrote:I am trying to learn systemd and changed the default target to basic.target

Code: Select all
systemctl set-default basic.target


I was not able to boot after this.

Why not? What actually happened when you tried to boot? It should provide a console login at least, see systemd.special(7) for a full description of basic.target.

Or use
Code: Select all
systemctl cat basic.target

maximus1978 wrote:This happened on my raspberry pi 4

You still haven't told us if you're using Debian or Raspbian. The latter is not supported here.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12770
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to System configuration

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable