You are not logged in.

#1 2012-10-07 17:42:16

Morrad
Member
From: Washington State, USA
Registered: 2012-01-18
Posts: 54
Website

[Solved]With systemd on install media, systemctl works during install?

When I upgrading my current machine from sysvinit to systemd, in order to use systemctl to enable services, I first had to reboot the system.

With the new install media for October using systemd, is it possible to enable these services using systemctl during the install (ie, so I could add 'systemctl enable foo.service' to install scripts)?

I do realize that I could just manually symlink, but it feel much nicer to use systemctl.

Last edited by Morrad (2012-10-08 05:12:39)


To the optimist, the glass is half full.
To the pessimist, the glass if half empty.
To the engineer, the glass is twice as big as it needs to be.

Offline

#2 2012-10-08 02:22:05

KairiTech
Member
From: Toronto, Canada
Registered: 2011-06-04
Posts: 227

Re: [Solved]With systemd on install media, systemctl works during install?

I do exactly that in my install script...

systemctl enable cronie.service
systemctl enable dhcpcd@.service
systemctl enable UEFIstubMOVE.path
systemctl start  UEFIstubMOVE.path

...but see below for the message I get when I try to start one of the services...

ln -s '/usr/lib/systemd/system/cronie.service' '/etc/systemd/system/multi-user.target.wants/cronie.service'
ln -s '/usr/lib/systemd/system/dhcpcd@.service' '/etc/systemd/system/multi-user.target.wants/dhcpcd@eth0.service'
ln -s '/etc/systemd/system/UEFIstubMOVE.path' '/etc/systemd/system/multi-user.target.wants/UEFIstubMOVE.path'
Running in chroot, ignoring request.

-=[ LIVE enabled UEFI with redundant syslinux pure systemd detached LUKS header partitionless encrypted GPT SSDx3 RAID0 because I can.  ]=-

Backward compatibility is for the masses. There's no dual-boot here...

Offline

#3 2012-10-08 02:59:40

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 4,894

Re: [Solved]With systemd on install media, systemctl works during install?

systemd on the boot media means that it's running on the live CD. You can issue the systemctl commands, but they will only effect the live environment, not the installation you're trying to set up. Remember that even installing from the newest iso, the installed setup is still using initscripts, not systemd.

Last edited by Scimmia (2012-10-08 03:01:31)

Offline

#4 2012-10-08 03:01:49

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: [Solved]With systemd on install media, systemctl works during install?

I assume that you can still enable services in the chroot, as it should just apply the necessay symlinks.  But as exemplified above, the actual services would not be available to run.

Offline

#5 2012-10-08 05:11:07

Morrad
Member
From: Washington State, USA
Registered: 2012-01-18
Posts: 54
Website

Re: [Solved]With systemd on install media, systemctl works during install?

WonderWoofy wrote:

I assume that you can still enable services in the chroot, as it should just apply the necessay symlinks.  But as exemplified above, the actual services would not be available to run.

This is exactly what I'm hoping to be able to do.

Thanks everyone for the input.


To the optimist, the glass is half full.
To the pessimist, the glass if half empty.
To the engineer, the glass is twice as big as it needs to be.

Offline

Board footer

Powered by FluxBB