Transition from rc.conf to systemd

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Re: Transition from rc.conf to systemd

Postby pepedog » Thu Nov 29, 2012 3:02 pm

I feel smug.
Test by finishing off by setting up as per wiki, then rename of rc.conf and reboot
If it fails, all you have to do is rename rc.conf back
If it suceeds remove initscripts

This is not for people running 2.6 kernels, ie Pogoplug Pro/Video/V3/B0x
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Transition from rc.conf to systemd

Postby jcha93 » Thu Nov 29, 2012 3:16 pm

Hi,

For info, 'systemctl list-units' is replying back "correctly" (one failure but I should disable it I think):
$this->bbcode_second_pass_code('', '
...
crond.service loaded failed failed LEGACY unit for "crond" rc script
cronie.service loaded active running Periodic Command Scheduler
...
network.service loaded active exited LEGACY unit for "network" rc script
...
sshd.service loaded active running OpenSSH Daemon
...
76 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
')

As per the wiki at https://wiki.archlinux.org/index.php/Systemd:
$this->bbcode_second_pass_quote('', '
')1.Install systemd and append the following to your kernel line: init=/usr/lib/systemd/systemd
2. Once completed you may enable any desired services via the use of systemctl enable <service_name> (this roughly equates to what you included in the DAEMONS array, with different names.).
3. Reboot your system and verify that systemd is currently active by using the following command: $ cat /proc/1/comm. This should return the string systemd.
4. Proceed to remove initscripts and sysvinit from your system and install systemd-sysvcompat.
5. Optionally, remove the init=/usr/lib/systemd/systemd parameter as it is no longer needed. systemd-sysvcompat provides the default init.

I did 2 before starting this thread.
1 & 3 should be covered.
sysvinit was removed by installing systemd-sysvcompat: "systemd-sysvcompat and sysvinit are in conflict. Remove sysvinit? [y/N] y"

So I should rename rc.conf, reboot, remove initscripts and should be OK.

I would do in some hours as I must move away from goflex in a few.
I would let you know.

Thanks,
Jérôme
jcha93
 
Posts: 17
Joined: Thu Nov 29, 2012 1:19 pm

Re: Transition from rc.conf to systemd

Postby moonman » Thu Nov 29, 2012 3:49 pm

Be sure to systemctl enable dhcpcd@eth0.service before you reboot or you will be stuck with an unaccessible goflex.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Transition from rc.conf to systemd

Postby jcha93 » Thu Nov 29, 2012 3:50 pm

Hi,

$this->bbcode_second_pass_code('', '
[root@goflex etc]# pacman -R initscripts
checking dependencies...

Targets (1): initscripts-2012.10.1-1

Total Removed Size: 0.21 MiB

Do you want to remove these packages? [Y/n] y
(1/1) removing initscripts [###########################################################################] 100%
')

All done and everything working after reboot


Thanks very much,
Jérôme
jcha93
 
Posts: 17
Joined: Thu Nov 29, 2012 1:19 pm

Re: Transition from rc.conf to systemd

Postby jcha93 » Thu Nov 29, 2012 4:02 pm

To reply moonman, I enabled all thos services:
jcha93
 
Posts: 17
Joined: Thu Nov 29, 2012 1:19 pm

Re: Transition from rc.conf to systemd

Postby WarheadsSE » Thu Nov 29, 2012 4:23 pm

There may also be a getty@ttyS0 to add to that.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Transition from rc.conf to systemd

Postby jcha93 » Thu Nov 29, 2012 4:29 pm

I got this by default:
$this->bbcode_second_pass_code('', '
getty@tty1.service loaded active running Getty on tty1
serial-getty@ttyS0.service loaded active running Serial Getty on ttyS0
getty.target loaded active active Login Prompts
')

As everything sounds OK, I hope it's correct
jcha93
 
Posts: 17
Joined: Thu Nov 29, 2012 1:19 pm

Re: Transition from rc.conf to systemd

Postby WarheadsSE » Thu Nov 29, 2012 4:38 pm

Looks good :)
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Transition from rc.conf to systemd

Postby jcha93 » Thu Nov 29, 2012 4:51 pm

Thanks
jcha93
 
Posts: 17
Joined: Thu Nov 29, 2012 1:19 pm

Re: Transition from rc.conf to systemd

Postby pepedog » Thu Nov 29, 2012 6:35 pm

Cronie is the service, not crond
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

PreviousNext

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 14 guests