Pogoplug V2 - Guide to migrating over to systemd?

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

Pogoplug V2 - Guide to migrating over to systemd?

Postby huntrm » Tue Jan 29, 2013 3:31 pm

Need some help. Did a pacman -Syu yesterday and appears I've lost my ability to start up samba.

Is there a step-by-step guide or can someone help me migrate over to using systemd?

Here's what I've done thus far:
Version: $this->bbcode_second_pass_code('', 'uname -a
Linux webserver 3.1.10-15-ARCH #1 PREEMPT Wed Dec 12 15:25:18 UTC 2012 armv5tel GNU/Linux')
Shows what I believe is used as part of the startup sequence$this->bbcode_second_pass_code('', 'ps -p 1 -o comm=
init
')
Added systemd-sysvompat (it removed sysvinit) $this->bbcode_second_pass_code('', 'pacman -Sy systemd-sysvcompat')

Now, I'm afraid to reboot the pogoplug for fear that it won't connect to my lan. I tried this command to see if I can get ethernet started:
$this->bbcode_second_pass_code('', 'systemctl enable dhcpcd@eth0.service
Failed to get D-Bus connection: Failed to connect to socket /run/systemd/private: No such file or directory
')

Then, tried this:
$this->bbcode_second_pass_code('', 'systemctl enable netcfg
Failed to get D-Bus connection: Failed to connect to socket /run/systemd/private: No such file or directory')

What steps did I miss, or what would you recommend I follow/read to solve this? I've been reading the posts on the forum, and am somewhat lost on the necessary steps.

Thank you.
huntrm
 
Posts: 32
Joined: Wed Aug 29, 2012 2:45 pm

Re: Pogoplug V2 - Guide to migrating over to systemd?

Postby WarheadsSE » Tue Jan 29, 2013 3:37 pm

$this->bbcode_second_pass_code('', '
ln -s /usr/lib/systemd/system/sshd.service \
/etc/systemd/system/multi-user.target.wants/sshd.service
ln -s /usr/lib/systemd/system/dhcpcd@.service \
/etc/systemd/system/multi-user.target.wants/dhcpcd@eth0.service
')
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Pogoplug V2 - Guide to migrating over to systemd?

Postby huntrm » Tue Jan 29, 2013 3:49 pm

Thanks for quick response. I entered those commands, but have not yet rebooted. When I tried the following, for example, got this error:

$this->bbcode_second_pass_code('', 'systemctl enable dhcpcd@eth0.service
Failed to get D-Bus connection: Failed to connect to socket /run/systemd/private: No such file or directory
')

Should I reboot?
huntrm
 
Posts: 32
Joined: Wed Aug 29, 2012 2:45 pm

Re: Pogoplug V2 - Guide to migrating over to systemd?

Postby WarheadsSE » Tue Jan 29, 2013 4:40 pm

The commands I provided you essentially are what that systemctl command does.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Pogoplug V2 - Guide to migrating over to systemd?

Postby huntrm » Tue Jan 29, 2013 9:33 pm

Thanks for the help. Got it working.

$this->bbcode_second_pass_code('', 'ps -p 1 -o comm=')

Result is systemd.

Thanks for the help.
huntrm
 
Posts: 32
Joined: Wed Aug 29, 2012 2:45 pm

Re: Pogoplug V2 - Guide to migrating over to systemd?

Postby xtreme571 » Sat Feb 02, 2013 5:31 am

I have a PogoPlug B01 and reinstalled system due to hard drive failure. I had samba configured and worked flawlessly via internal SATA.

So I reinstalled and samba no longer works like it did previously. I updated to systemd as described and now all I'm getting is blinking light. I followed the two commands provided by WarheadsSE, what am I doing wrong?

$this->bbcode_second_pass_code('', '[root@alarm ~]# rc.d start samba
:: Daemon script samba does not exist or is not executable.
[root@alarm ~]# uname -a
Linux alarm 2.6.31.6_SMP_820 #6 SMP Thu Jun 14 19:49:57 CDT 2012 armv6l GNU/Linux
[root@alarm ~]# ps -p 1 -o comm=
init
[root@alarm ~]# 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-197-4

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-197-4-arm 5.3 KiB 188K/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%
[root@alarm ~]# systemctl enable dhcpcd@eth0.service
ln -s '/usr/lib/systemd/system/dhcpcd@.service' '/etc/systemd/system/multi-user.target.wants/dhcpcd@eth0.service'
[root@alarm ~]# systemctl enable netcfg
Operation failed: Invalid argument
[root@alarm ~]# ln -s /usr/lib/systemd/system/sshd.service \
> /etc/systemd/system/multi-user.target.wants/sshd.service
')

__________________________________________________
Pogoplug Pink B01 (PLX - 7820)
Drive: 2TB connected via Internal SATA
/dev/sda1 - rootfs - 2GB
/dev/sda2 - share1 - 250GB
/dev/sda3 - share2 - 250GB
/dev/sda4 - share3 - 1.3TB
xtreme571
 
Posts: 3
Joined: Sat Feb 02, 2013 5:21 am

Re: Pogoplug V2 - Guide to migrating over to systemd?

Postby moonman » Sat Feb 02, 2013 6:02 am

You have Pogoplug V3 (oxnas, not kirkwood) which AFAIK doesn't support systemd yet (old kernel? don't know exactly what the problem is). I don't think you can recover unless you have another PP v3 from which you can chroot and clean things up.
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: Pogoplug V2 - Guide to migrating over to systemd?

Postby WarheadsSE » Sat Feb 02, 2013 12:48 pm

Or a spare usb stick to fix it with.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Pogoplug V2 - Guide to migrating over to systemd?

Postby xtreme571 » Sat Feb 02, 2013 3:08 pm

So is there any way to get samba working without systemd? Even if I were to start all over?

Thanks!

EDIT: I followed http://archlinuxarm.org/forum/viewtopic.php?f=29&t=4970 thread. I was able to install samba and start it.
xtreme571
 
Posts: 3
Joined: Sat Feb 02, 2013 5:21 am


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 73 guests