You are not logged in.

#26 2014-09-01 01:13:59

jeff story
Member
Registered: 2009-05-31
Posts: 237
Website

Re: [solved] Large number of services enabled during first boot

ANOKNUSA wrote:

Instructing people to go through some unsupported and convoluted install-downgrade-upgrade process to avoid a "problem" that (apparently) lasts all of ten seconds before resolving itself is just dumb.

LOL

I won't devolve this into name calling, but I think we may be discussing a different problem than what you commented on. If this was a one time, ten second, fix itself problem, do you really think it would get 1,475 views over the short time it's been up, not to mention all the comments.

Sorry, I know you're super smart, no doubt way smarter than me, but just sayin.


Check out my website for info on the Arch Linux Installer

Offline

#27 2014-09-01 01:26:55

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,740

Re: [solved] Large number of services enabled during first boot

And, we are done here.  Jeff, I thought we were done with your trolling.  This may be a problem.  It has been reported up stream.
Your FU Arch installer indicates you may be less than objective.

Closed.
https://wiki.archlinux.org/index.php/Fo … ther_Users
https://wiki.archlinux.org/index.php/Fo … o_Trolling

Binned

Last edited by ewaller (2014-09-01 01:27:52)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#28 2014-09-01 03:34:11

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: [solved] Large number of services enabled during first boot

On request, the mod team have discussed and decided re-opening this thread is valid -- we do not want to punish all the thread participants based on the bad behaviour of one.

Having said that, jeff story -> your sarcastic and belitting contribution (preserved below to avoid you editing it out) is unwelcome and clearly falls in violation of the "Respect Other Users" value in our forum etiquette. You can disagree with another member without the sarcastic undertones. You have been warned for behaving outside the Forum Etiquette previously; this is your second warning. A third violation will lead to a temporary suspension to give you time to review our community values in detail.

Now, back onto the original discussion; it seems the issue has been resolved, and a fix is available for those affected.

jeff story wrote:

LOL

I won't devolve this into name calling, but I think we may be discussing a different problem than what you commented on. If this was a one time, ten second, fix itself problem, do you really think it would get 1,475 views over the short time it's been up, not to mention all the comments.

Sorry, I know you're super smart, no doubt way smarter than me, but just sayin.

Offline

#29 2014-09-01 03:52:31

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,740

Re: [solved] Large number of services enabled during first boot

I believe this topic had been in Installation.  Restoring it there....


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#30 2014-09-01 04:45:23

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: [solved] Large number of services enabled during first boot

Thanks ewaller, fukawi2 and the other mods!

Recap, and hopefully this thread can continue on more constructive ways now:

1) if you pacstrap before systemd 216-2 has hit [core], you should run the following inside the chroot before rebooting:

uuidgen | { read; echo "${REPLY//-}">/etc/machine-id; }

This was added to post_install in 216-2 and will prevent systemd to run "preset-all" on the next boot, which would enable everything and the kitchen-sink-serviced. More background on why this happened is in the comments in the bug report.

Alternatively, create the file "usr/lib/systemd/system-preset/99-default.preset" with content of "disable *'":

echo 'disable *' >"$pkgdir"/usr/lib/systemd/system-preset/99-default.preset

This will prevent systemd from enabling any services when it runs "preset-all" due to missing machine-id.

2) if you already rebooted once, you will need to get rid of the unnecessarily enabled services manually. This might seem a daunting task, because they are so many and it might not be clear to you what they are from their name alone.

But, if you look at the first post in this thread, tazmanian listed what was enabled before the first boot on his system - not a lot. The bare essentials you should always have enabled, I believe, are just getty@tty1.service and remote-fs.target. Everything else, you should keep only if you know what it is, and that you need it. This should not be a problem, because the default in Arch is to enable everything manually aynways, and the wiki will mention it when you need to enable a systemd unit.

If you installed just the base system before rebooting, removing all the units listed under "Stuff additionally enabled and started during first boot" in the first post might be enough to "undo" the bug. If you installed other packages before rebooting, there may be more (for example, I was surprised to see not only ftpd, but also apache humming away happily, pulled in by gnome).

General Tips
- run "ls /etc/systemd/system/*.wants/" to get an overview of enabled services
- because there are likely more units you want to disable than to keep, you can move all the symlinks from the listed directories to backup dirs, and move back the ones you want. Alternatively, manually delete them or "disable" the units one by one with systemctl (which also just removes the symlink)
- if unsure what a unit does, systemctl cat <unit> prints it for you. if the description is not enough, google the name or command it executes
-  don't be too shy to remove stuff: if you don't know it, you likely didn't enable it, and you propably don't want stuff like rlogin or telnet running by accident

Last edited by hokasch (2014-09-02 10:27:27)

Offline

#31 2014-09-01 12:23:11

archoriano
Member
Registered: 2009-03-28
Posts: 20

Re: [solved] Large number of services enabled during first boot

Is there any way that my kernel panics are related to this issue? Kernel panic doesnt happen every time i boot, but like 75% of the time i get kernel panic.

Its a fresh install but i alredy have DE and programs, i used Helmuth script to install all the stuff, just so i didnt forget to install stuff.

Last edited by archoriano (2014-09-01 12:36:18)

Offline

#32 2014-09-01 12:48:51

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [solved] Large number of services enabled during first boot

Please open your own thread archoriano, your issue is most likely unrelated to this one.

Offline

#33 2014-09-01 21:33:22

Grabbe
Member
Registered: 2014-01-19
Posts: 13

Re: [solved] Large number of services enabled during first boot

And this is what I get for choosing to migrate back to Arch, forever, this Saturday. kthxbai.

No, but seriously, what are the odds of this happening now? I've been away and tried Xubuntu, Debian, Fedora, CentOS and my heart stays with Arch. Thanks to hokasch for the explanation post.

Offline

#34 2014-09-01 22:04:18

bch24
Member
Registered: 2011-11-20
Posts: 27

Re: [solved] Large number of services enabled during first boot

hokasch wrote:

Thanks ewaller, fukawi2 and the other mods!

Recap, and hopefully this thread can continue on more constructive ways now:

1) if you pacstrap before systemd 216-2 has hit [core], you should run the following inside the chroot before rebooting:

uuidgen | { read; echo "${REPLY//-}">/etc/machine-id; }

This was added to post_install in 216-2 and will prevent systemd to run "preset-all" on the next boot, which would enable everything and the kitchen-sink-serviced. More background on why this happened is in the comments in the bug report.

Awesome.

This was the fix I needed.

Thank You

Offline

#35 2014-09-02 00:06:35

lmm5247
Member
Registered: 2014-09-01
Posts: 5

Re: [solved] Large number of services enabled during first boot

Hey all, Fedora user here.

Just installed Arch for the first time ever this weekend and was wondering why FTP server was running at startup...

From what I understand, I can disable everything except the services below, right? Or would I be better off waiting until this is fixed and then re-installing? It's only a VM, so not a big deal.

tazmanian wrote:

Things enabled before first boot (based on contents of /etc/system/systemd/*.wants):

getty.target.wants:
  * getty@tty1.service

multi-user.target.wants:
  * dhcpcd@lan0.service
  * iptables.service
  * remote-fs.target
  * sshd.service

sysinit.target.wants:
  (none)

Thanks in advance!

Offline

#36 2014-09-02 00:48:07

midixinga
Member
Registered: 2014-01-18
Posts: 193

Re: [solved] Large number of services enabled during first boot

you can also disable sshd and iptables, if you don't need them.

Offline

#37 2014-09-02 05:58:10

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: [solved] Large number of services enabled during first boot

If a feature creeps in too any package then a fix should be posted on main arch page. This problem is not arch or devs fault simply something upstream that has caused issue.

Mr Green


Mr Green

Offline

#38 2014-09-02 06:29:39

CarlD
Member
From: London
Registered: 2013-11-23
Posts: 128

Re: [solved] Large number of services enabled during first boot

Thank you hokasch, for the fix. Great stuff.

Looks like systemd 216-2 has already been replaced by 216-3 in the testing repos.

Also agreed that this issue should be mentioned on the Arch main page. It could spare a lot of panic and networking problems for newer users.

Offline

#39 2014-09-02 07:00:36

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [solved] Large number of services enabled during first boot

A little bit of panic never hurt a new user...

If there was a news item for every little glitch like this, even fewer people would pay attention to those announcements. It's a rolling release, not debian stable: what do you expect?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#40 2014-09-02 07:38:02

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: [solved] Large number of services enabled during first boot

After reading article in Linux Format you are going to get a lot more new users. Once they install then you wil get a lot more posts. Then you will have a lot more posts to move,close,bin.

Issue will be resolved very soon I am sure.


Mr Green

Offline

#41 2014-09-02 07:42:00

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [solved] Large number of services enabled during first boot

The issue has been resolved.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#42 2014-09-02 11:04:29

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: [solved] Large number of services enabled during first boot

The issue has been resolved.

In testing, but all new installs are still affected until systemd 216-3 has hit [core], and they will not "fix themself" on update/reboot.
Pretty noticeable though (services failing at boot), so I trust people who are puzzled by it will find their way to this thread.

Offline

#43 2014-09-02 20:54:32

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] Large number of services enabled during first boot

Offline

#44 2014-09-03 16:15:50

czubek
Banned
Registered: 2012-03-08
Posts: 141

Re: [solved] Large number of services enabled during first boot

Sadly, I had gotten pretty far into my installation before realizing there was a problem. The repair looked daunting and not very reassuring from a security standpoint. Fortunatly re-installation solved the problem and all is working as it should.

Offline

#45 2014-09-04 12:07:05

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [solved] Large number of services enabled during first boot

As systemd v. 216-3 is in core now the issue is fixed for new installations.
For those who have installed in the short time when this issue appeared, see the post by hokasch.
https://bbs.archlinux.org/viewtopic.php … 1#p1452481
I think you can mark this thread as solved.

Offline

Board footer

Powered by FluxBB