You are not logged in.
I thought this would likely end up being due to me missing something completely, so figured that this would be the best place for it.
I've just got Arch up and running on a new computer and figured I may as well go the whole hog and convert to systemd, namely following these steps:
A pure systemd installation
- Install systemd from the official repositories.
- Add init=/bin/systemd to the kernel parameters in your bootloader.
- Create systemd configuration files.
- Enable daemons formerly listed in /etc/rc.conf with systemctl enable daemonname.service . For a translation of the daemons from /etc/rc.conf to systemd services, see: List of Daemons and Services
- Reboot. Your system should now initialize with systemd. If you are satisfied, remove the init=... entry.
- Install systemd-sysvcompat. This conflicts with initscripts and sysvinit, and will prompt you to remove them.Seems easy enough.
I decide to remove the quiet option from the kernel params in order to see what's going on during the boot process, this gives me an /etc/default/grub of:
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="init=/bin/systemd"
GRUB_CMDLINE_LINUX=""
...Ran the mkconfig, no problems
Then I modified /etc/rc.conf:
#header of the file
#DAEMONS=(syslog-ng @dbus, network, @net-auto-wireless crond acpid @bumblebeed)
systemctl enable dbus.service
systemctl enable net-auto-wired.service
systemctl enable net-auto-wireless.service
systemctl enable cronie.service
systemctl enable acpid.service
systemctl enable bumblebeed.service
systemctl enable slim.serviceAs far as following the instructions goes i figured this would get me up and running, but it just hangs on boot after "Welcome to Arch Linux!" appears in the console.
.. I haven't missed something glaringly obvious or even misinterpreted the instructions have i?
I'm going to have a rummage around the logs via a live cd, maybe i'll find something in there. For the interim however, any ideas you may have would be more than welcome.
Many thanks ![]()
- Ataxia
Last edited by Ataxia (2012-10-01 23:13:51)
Offline
Thos systemctl commands are not *in* your rc.conf are they?
Offline
My ego doesn't like where this is going..
but.. yes i did.. ![]()
.. I've done something stupid haven't I?..
Edit:
Ok.. I think I get it.. (correct me if i'm wrong)
I've been looking all night for a place to put a list of commands to enable the various services.. I'm assuming however that rather than a list of services being read and enabled on startup, you use the "systemctl enable" command in your shell to set each service as enabled within systemd. systemd then remembers that setting for boot and loads up the services.
.. If the above isn't the case I'm stumped :S.
Last edited by Ataxia (2012-10-01 22:11:39)
Offline
I would do something like this. Using the live media, remove the systemctl commands from rc.conf and uncomment the daemons line but leave your kernel init line as it is. If I've understood you correctly, this should allow you to boot using systemd (with the init option in the kernel command line).
Now issue those commands at the command line. They do not go in a configuration file at all. You issue them and systemctl should set up links under /etc/systemd which are the equivalent of having the daemons in rc.conf. Recomment the daemons line in rc.conf and reboot to check everything is still working. If so, go ahead and install the compatibility package. When you are certain everything is working, you can remove the init option from your kernel command line if you wish. (But I'm not sure it eats anything if left there.)
EDIT: I posted while you edited, it seems. No, you are not stumped - you've got it
.
Last edited by cfr (2012-10-01 22:13:26)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
As cfr is telling you, you do indeed need to issue those commands in the shell (as root) to enable those services. They actually just symlink the service file into the appropriate target, which are like run levels. So if you, for instance, boot into the multi-user.target, anything that is symlinked into that target will be started. You need not worry about what service goes to what target, as it is already specified in the service file.
Offline
EDIT: I posted while you edited, it seems. No, you are not stumped - you've got it
.
It's funny how a well placed question can suddenly make you realise how badly you've missed something.
I do think that sometimes I shouldn't be let near a computer.. Thankfully it all seems to be up and running thanks to your advice
.. I'm sorry for being a bit dense, it's terribly embarrassing.
Thanks again!
Offline
Glad its working, don't forget to mark as solved!
Offline
All done ![]()
Christ this thing boots up to slim from cold in 6 seconds now.. ![]()
Offline
try
$ systemd-analyze && systemd-analyze blameto also see how long it takes the initramfs to load, add "timestamp" to the hooks in mkinitcpio.conf.
Offline
That's pretty cool.. In spite of using arch for a year or so without any problems (until the past couple of days), I still consider myself to be a bit of a newbie :S
There's lots to try and keep in my head, and I seem to forget the fundamental things as I learn other things.
6534ms network.service
528ms net-auto-wireless.service
407ms systemd-logind.service
293ms asus-screen-brightness.service
293ms console-kit-log-system-start.service
273ms asus-kbd-backlight.service
238ms rc-local.service
113ms systemd-remount-fs.service
113ms systemd-sysctl.service
99ms systemd-udev-trigger.service
87ms sys-kernel-debug.mount
79ms systemd-vconsole-setup.service
67ms dev-hugepages.mount
60ms dev-mqueue.mount
60ms console-kit-daemon.service
57ms systemd-udevd.service
46ms systemd-user-sessions.service
44ms dev-sda2.swap
33ms boot-efi.mount
26ms home.mount
17ms var.mount
3ms tmp.mount
1ms proc-sys-fs-binfmt_misc.mountI'm assuming that the network service is just sitting there looking for a connection before timing out as I currently use wifi. Still, fun and games! ![]()
I have a few more things to set up, but I feel like I'm getting there now!
Take care ![]()
Offline