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.

Transition from rc.conf to systemd

Postby jcha93 » Thu Nov 29, 2012 1:22 pm

Hi,

I'm trying to transition from rc.conf to systemd on my goFlexHome.

Current status is:
$this->bbcode_second_pass_code('', '[root@goflex boot]# cat /proc/1/comm
init
')

As per https://wiki.archlinux.org/index.php/Systemd, I should "append the following to your kernel line: init=/usr/lib/systemd/systemd"
But I'm not clear where I should act.

Could you guide me ?

For info:
$this->bbcode_second_pass_code('', '
[root@goflex ~]# pacman -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
alarm is up to date
aur is up to date
:: Starting full system upgrade...
there is nothing to do
[root@goflex ~]#

[root@goflex boot]# pwd
/boot
[root@goflex boot]# ls -l
total 5384
-rw-r--r-- 1 root root 2855240 Nov 24 21:37 uImage
-rw------- 1 root root 2643635 May 10 2012 uInitrd
')

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

Re: Transition from rc.conf to systemd

Postby pepedog » Thu Nov 29, 2012 1:38 pm

You don't need to do that, install systemd-sysvcompat and reboot
What does cat /proc/1/comm say now?
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Transition from rc.conf to systemd

Postby moonman » Thu Nov 29, 2012 1:41 pm

You need to modify u-boot environment as this is the bootloader used on arm. Depending on whether you boot from sata or usb you need to modify either usb_custom_params or sata_custom_params. If you can, do a complete reinstall instead of messing with U-boot/Ubit.
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 moonman » Thu Nov 29, 2012 1:48 pm

$this->bbcode_second_pass_quote('pepedog', 'Y')ou don't need to do that, install systemd-sysvcompat and reboot
What does cat /proc/1/comm say now?


I was under impression this would break something, so I never tried it and just followed the wiki. :|
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 pepedog » Thu Nov 29, 2012 2:07 pm

$this->bbcode_second_pass_quote('moonman', '')$this->bbcode_second_pass_quote('pepedog', 'Y')ou don't need to do that, install systemd-sysvcompat and reboot
What does cat /proc/1/comm say now?


I was under impression this would break something, so I never tried it and just followed the wiki. :|

It's getting harder for me to test, all mine are systemd now.
At one point you had to do init=, without that you couldn't remove initscripts.
Then it changed, and it might have changed again. Basically look at /sbin/init and see if it symlinks to systemd, because that's the place the default boot is to (without an init= entry in the boot params)
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK
Top

Re: Transition from rc.conf to systemd

Postby jcha93 » Thu Nov 29, 2012 2:17 pm

Hi,

So 3 options:
* fw_setenv usb_custom_params 'init=/usr/lib/systemd/systemd'
* fw_setenv sata_custom_params 'init=/usr/lib/systemd/systemd'
* re-install

I would try to avoid re-install as I'm not confident enough and procedure sounds not to have changed on http://archlinuxarm.org/platforms/armv5 ... oflex-home. So I don't see how it would fix my issue.

For the 2 first options, I highly suspect that I'm booting SATA as USB is connected to audio DAC. But is there any way to check (in case internally it is not boting where I expect) ?

Regards,
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 2:27 pm

The precedure hasn't changed bot the tarball with rootfs has, it contains the full systemd setup.

You boot from sata since you said you don't have any usb storage devices attached.

What pepedog said should work, but check this first:
$this->bbcode_second_pass_code('', 'ls -l /sbin/ | grep init')

should output:

$this->bbcode_second_pass_code('', 'lrwxrwxrwx 1 root root 26 Nov 27 23:54 init -> ../usr/lib/systemd/systemd')
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 2:35 pm

Not linked to systemd yet:
$this->bbcode_second_pass_code('', '[root@goflex sbin]# ls -l /sbin/ | grep init
-rwxr-xr-x 1 root root 29628 Oct 15 04:27 init
lrwxrwxrwx 1 root root 4 Oct 15 04:27 telinit -> init
')

Should I do the link manually ?
jcha93
 
Posts: 17
Joined: Thu Nov 29, 2012 1:19 pm

Re: Transition from rc.conf to systemd

Postby moonman » Thu Nov 29, 2012 2:37 pm

You should check after you pacman -Sy systemd-sysvcompat

If no link, you can pacman -Sy sysvinit and then do the u-boot trick

I do have that symlink so I would think you would have it as well.
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 2:54 pm

Hi,

I installed systemd-sysvcompat
$this->bbcode_second_pass_code('', '
[root@goflex sbin]# pacman -Sy systemd-sysvcompat
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
alarm is up to date
aur is up to date
resolving dependencies...
looking for inter-conflicts...
:: systemd-sysvcompat and sysvinit are in conflict. Remove sysvinit? [y/N] y

Targets (2): sysvinit-2.88-9 [removal] systemd-sysvcompat-196-2

Total Download Size: 0.01 MiB
Total Installed Size: 0.05 MiB
Net Upgrade Size: -0.09 MiB

Proceed with installation? [Y/n] y
:: Retrieving packages from core...
systemd-sysvcompat-196-2-arm 5.4 KiB 1045K/s 00:00 [###########################################################################] 100%
(1/1) checking package integrity [###########################################################################] 100%
(1/1) loading package files [###########################################################################] 100%
(1/1) checking for file conflicts [###########################################################################] 100%
(2/2) checking available disk space [###########################################################################] 100%
(1/1) removing sysvinit [###########################################################################] 100%
(1/1) installing systemd-sysvcompat [###########################################################################] 100%
')

Checked init:
$this->bbcode_second_pass_code('', '
[root@goflex sbin]# ls -l /sbin/ | grep init
lrwxrwxrwx 1 root root 26 Nov 28 07:54 init -> ../usr/lib/systemd/systemd
lrwxrwxrwx 1 root root 18 Nov 28 07:54 telinit -> /usr/bin/systemctl
')

Rebooted crossing fingers and now it should be OK:
$this->bbcode_second_pass_code('', '
[root@goflex ~]# cat /proc/1/comm
systemd
')

Unless you have any comments/recommendations, we can consider this solved.

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

Next

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 342 guests