Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

systemctl set-default basic.target :(

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
maximus1978
Posts: 93
Joined: 2015-03-19 12:49

systemctl set-default basic.target :(

#1 Post by maximus1978 »

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.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: systemctl set-default basic.target :(

#2 Post by Head_on_a_Stick »

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.
deadbang

Post Reply