Page 1 of 2

systemd-sysvinit

PostPosted: Oct 29th, '11, 21:01
by isadora
Today there was a bunch of updates for the Cauldron-release including systemd-sysvinit.
Where i expected things could go really wrong, when something is drastically changing like in boot/init, i made some documentation in case of.
But i can tell, that i am impressed by the swift change to systemd-sysvinit, and the resulting quick boot and shutdown of Cauldron.

Following packages where installed during this update:

The following package has to be removed for others to be upgraded:
sysvinit-2.87-10.mga1.i586
(due to conflicts with systemd-sysvinit-37-6.mga2.i586)


The following 19 packages are going to be installed:

- initscripts-9.25-1.mga2.i586
- iptables-1.4.12.1-4.mga2.i586
- libip4tc0-1.4.12.1-4.mga2.i586
- libip6tc0-1.4.12.1-4.mga2.i586
- libiptables7-1.4.12.1-4.mga2.i586
- libnfnetlink0-1.0.0-5.mga2.i586
- libpolkit1_0-0.102-2.mga2.i586
- libsystemd-daemon0-37-6.mga2.i586
- libsystemd-login0-37-6.mga2.i586
- libupower-glib1-0.9.14-7.mga2.i586
- mageia-release-common-2-0.3.mga2.i586
- mageia-release-Default-2-0.3.mga2.i586
- polkit-0.102-2.mga2.i586
- polkit-desktop-policy-0.102-2.mga2.noarch
- systemd-37-6.mga2.i586
- systemd-sysvinit-37-6.mga2.i586
- systemd-units-37-6.mga2.i586
- udisks-1.0.4-2.mga2.i586
- upower-0.9.14-7.mga2.i586


Thumbs up for development!!!!

Re: systemd-sysvinit

PostPosted: Oct 30th, '11, 00:15
by Ken-Bergen
I'm glad it worked for you but my experience was different. :shock:
After the latest updates I'm left with a system that will only boot to a recovery console.

As the system doesn't have a working optical drive and won't boot from USB it looks like I'm in for some new and interesting experiences. :lol:

Re: systemd-sysvinit

PostPosted: Oct 30th, '11, 06:58
by wobo
My system boots into KDE ok but networking is gone completely, same is reported by another user in the German forum.

Re: systemd-sysvinit

PostPosted: Oct 30th, '11, 08:40
by isadora
For those having problems, maybe some good news through the very latest updates?

The following 17 packages are going to be installed:

- gdm-3.2.1-5.mga2.i586
- gstreamer0.10-plugins-bad-0.10.22-6.mga2.tainted.i586
- gstreamer0.10-voip-0.10.22-6.mga2.tainted.i586
- iptables-1.4.12.1-5.mga2.i586
- libgdmsimplegreeter1-3.2.1-5.mga2.i586
- libgstphotography0.10_0-0.10.22-6.mga2.tainted.i586
- libip4tc0-1.4.12.1-5.mga2.i586
- libip6tc0-1.4.12.1-5.mga2.i586
- libiptables7-1.4.12.1-5.mga2.i586
- libsystemd-daemon0-37-7.mga2.i586
- libsystemd-login0-37-7.mga2.i586
- libupower-glib1-0.9.14-8.mga2.i586
- rsyslog-5.8.5-6.mga2.i586
- systemd-37-7.mga2.i586
- systemd-sysvinit-37-7.mga2.i586
- systemd-units-37-7.mga2.i586
- upower-0.9.14-8.mga2.i586

Re: systemd-sysvinit

PostPosted: Oct 30th, '11, 09:50
by magnus
isadora wrote:For those having problems, maybe some good news through the very latest updates?

Without network connection?

Re: systemd-sysvinit

PostPosted: Oct 30th, '11, 10:07
by isadora
magnus wrote:
isadora wrote:For those having problems, maybe some good news through the very latest updates?

Without network connection?

Yes, that is quite something. ;)

But i assume, those using Cauldron know their way around.
Most Cauldron-users for sure use any official kind of distribution, from which they can have networking.
First thing i could think of, downloading the latest packages to some storage-medium, and install them from local location.

Re: systemd-sysvinit

PostPosted: Oct 30th, '11, 11:43
by magnus
Installation of these packages done,
but no net connection

Re: systemd-sysvinit

PostPosted: Oct 30th, '11, 13:17
by s106660
Try:
# systemctl disable network.service
# systemctl enable network.service
and if you're using Networkmanager then
# systemctl disable NetworkManager.service
# systemctl enable NetworkManager.service
I had this problem once and these helped.

Re: systemd-sysvinit

PostPosted: Oct 30th, '11, 14:16
by magnus
No success :(

Code: Select all
# systemctl disable network.service
[root@edge cauldron]systemctl disable network.service
network.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig network off
[root@edge cauldron]systemctl enable network.service
network.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig network on
Warning: unit files do not carry install information. No operation executed
[root@edge cauldron]systemctl disable NetworkManager.service
Failed to issue method call: No such file or directory
[root@edge cauldron]systemctl enable NetworkManager.service
Failed to issue method call: No such file or directory


The output of the systemctl command:

Re: systemd-sysvinit

PostPosted: Oct 30th, '11, 15:28
by s106660
My output "systemctl |grep -i network" brings out
=> network.target loaded active active Network
=> NetworkManager.service loaded active running Network Manager
Well, for quite some time I've wanted to see some "fix-systemd.sh" script which would set all these to some meaningful settings - no such luck yet :(

Re: systemd-sysvinit

PostPosted: Oct 31st, '11, 14:51
by magnus
It seems there is no solution approach for my problem.
Si I'm waiting for Mageia 2.

Re: systemd-sysvinit

PostPosted: Oct 31st, '11, 15:21
by isadora
Although i can not find any directions in the accompanied change-logs,
a fresh bunch of updates reached the repo's.

For me Cauldron has become a somehow sluggish behavior.
Shutting down is much slower then this was a few updates ago.

Rpmdrake or one of its priority dependencies needs to be updated first. Rpmdrake will then restart.

The following package is going to be installed:

- meta-task-2-11.mga2.noarch



The following 31 packages are going to be installed:

- initscripts-9.25-2.mga2.i586
- lftp-4.3.3-1.mga2.i586
- libdrm-common-2.4.27-1.mga2.i586
- libdrm2-2.4.27-1.mga2.i586
- libdrm_intel1-2.4.27-1.mga2.i586
- libdrm_nouveau1-2.4.27-1.mga2.i586
- libdrm_radeon1-2.4.27-1.mga2.i586
- liblftp0-4.3.3-1.mga2.i586
- libpixman1_0-0.23.8-1.mga2.i586
- libsystemd-daemon0-37-8.mga2.i586
- libsystemd-login0-37-8.mga2.i586
- python-qt4-4.8.6-1.mga2.i586
- python-qt4-core-4.8.6-1.mga2.i586
- python-qt4-declarative-4.8.6-1.mga2.i586
- python-qt4-designer-4.8.6-1.mga2.i586
- python-qt4-gui-4.8.6-1.mga2.i586
- python-qt4-multimedia-4.8.6-1.mga2.i586
- python-qt4-network-4.8.6-1.mga2.i586
- python-qt4-opengl-4.8.6-1.mga2.i586
- python-qt4-script-4.8.6-1.mga2.i586
- python-qt4-sql-4.8.6-1.mga2.i586
- python-qt4-svg-4.8.6-1.mga2.i586
- python-qt4-test-4.8.6-1.mga2.i586
- python-qt4-webkit-4.8.6-1.mga2.i586
- python-qt4-xml-4.8.6-1.mga2.i586
- python-qt4-xmlpatterns-4.8.6-1.mga2.i586
- python-sip-4.13-1.mga2.i586
- rpm-helper-0.24.2-1.mga2.noarch
- systemd-37-8.mga2.i586
- systemd-sysvinit-37-8.mga2.i586
- systemd-units-37-8.mga2.i586

Re: systemd-sysvinit

PostPosted: Oct 31st, '11, 15:31
by magnus
Ok, I will fetch these packages and will try to install in the evening.

But I think, the meta-package will make some problems during offline mode.

Re: systemd-sysvinit

PostPosted: Oct 31st, '11, 15:45
by wobo
Same here.

I tried:
Code: Select all
# systemctl disable network.service
Failed to issue method call: Invalid argument
and
Code: Select all
# systemctl |grep -i network
sys-devi---t-wlan0.device loaded active plugged   AR9285 Wireless...
network-up.service   loaded active exited   LSB: Wait for the hotplugged network to be up
network.service   loaded active running   LSB: Bring up/down networking
network.target   Loaded active active   Network


New situation consists of :
- sound not working
- no networking possible. The wifi management shows the available networks but I do not get any connection. Previously I had to disable usage of NM to get a connection. Now NM is shown as enabled and whenever I remove the mark it comes back - changing "NM_CONTROLLED= yes" to "no" in /etc/sysconfig/network-scripts/ifcfg-wlan0 does not work
- system name vanished (the prompt shows "[wobo@(none) ~]$ ")

Waiting for magnus to report after he installed the new packages...

Re: systemd-sysvinit

PostPosted: Oct 31st, '11, 16:59
by isadora
Code: Select all
# systemctl disable network.service
network.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig network off

Code: Select all
# systemctl |grep -i network
mandi.service             loaded active running       LSB: Network monitoring daemon
netfs.service             loaded active exited        LSB: Mount network filesystems.
network-up.service        loaded active exited        LSB: Wait for the hotplugged network to be up
network.service           loaded active running       LSB: Bring up/down networking
network.target            loaded active active        Network


No sound, and systemname changed to "none".

Re: systemd-sysvinit

PostPosted: Oct 31st, '11, 17:53
by magnus
No success, all the same.

Like wobo the wifi management shows me the available networks, but no connection is possible.

Re: systemd-sysvinit

PostPosted: Oct 31st, '11, 18:16
by magnus
Ha, "last" try:

I use drakconnect and disable the Option "Give Networkmanger the control"
(Or something like that, because I use a german installation)

and the lan is there :D

Re: systemd-sysvinit

PostPosted: Oct 31st, '11, 18:20
by magnus
Same attempt with wlan, no success, but a lot of message in the terminal.

Re: systemd-sysvinit

PostPosted: Oct 31st, '11, 20:49
by colin
OK, so there are a number of very loosely related problems here. As you can imagine, most of the are quire different, and, as you can guess, unrelated, so dealing with them all in one thread will be difficult.

Also as I do not use forums and generally find them a very clumsy interface for such discussions (I much prefer my mail client with it's proper quoting and threading support) I'll try my best to cover a few things here and hope that it helps you out.

Sound: This is just where the problem is most obviously manifest, it's not actually anything to do with sound per-se, just device permissions and user session registration. It's been covered approximately 30 times (OK, a slight exaggeration!) on different mediums (mailing list, bug reports etc.) It's is almost certainly this problem: https://bugs.mageia.org/show_bug.cgi?id=2982 see the instructions therein to fix it. The command "systemd-loginctl" is your friend (just as ck-list-sessions was on Mageia 1).

Slow shutdowns: Have you installed dracut before the latest kernel update? Dracut is a new system for generating (the initial ramdisk used to boot your system) that replaces mkinitrd. It will become the default eventually but at the moment you can use both but with varying degrees of success. See below for recreating your initrd with dracut.

Emergency Console: If you have any file systems in your fstab that are on LVM or RAID volumes you pretty much NEED a dracut generated initrd (see above) as the information used by systemd to detect when disks are ready is all coming from udev (it can inform us of the disk availability without us having to probe and check and try, so it's a much cleaner solution). Sadly with an mkinitrd system, such systems (lvm/raid) are initialised before udev starts and the information normally injected into udev is never made available to systemd and thus it cannot start the "local-fs.target" unit. This unit times out after a while of waiting and dumps you into the emergency console. You can see if this is the issue by typing "systemctl status local-fs.target". You can test further by typing: "systemctl start local-fs.target". It should wait a while then time out. (note if you have /usr on a separate, LVM partiion, then you will not be able to run systemctl, but read on!). So, systemd cannot "see" the disks it wants to mount, but that doesn't stop you doing it manually. You can simply look at the filesystems mounted (cat /proc/mounts) and try and spot the missing ones (compare to /etc/fstab) and then type "mount /foo" (where foo is is the non-mounted file system). This should work in most cases. When you have mounted all the file systems you should be able to type "systemctl start local-fs.target" again and it should be happy and complete successfully almost instantly. If this is the case you should be able to do: systemctl start graphical.target" and you will get to your normal boot.

No network: It seems the initscript for network doesn't carry proper information about runlevels (It looks like it's there to me but go figure). So it cannot be started. You can easily enough run it (after getting to a graphical system) by running "/etc/init.d/network start" as root. This should work (not tried). However, I recommend using NetworkManager these days unless you have an exotic networking setup that will only work with old system. If you can get networking working with the above approach, then you should be able to install network manager. I think you then have to mark each interface defined as being under the control of network manager. This is achieved by adding a line with "NM_CONTROLLED=yes" to /etc/sysconfig/network-scripts/ifcfg-eth* and ifcfg-wlan* files. Make sure you do "systemctl enable NetworkManager.service" to ensure it's started at boot.

I think that covers all the problems I read here, tho there will no doubt be more. If you need to regenerate your initrd with dracut (typically needed if you get the emergency console), please see this mail: http://www.mail-archive.com/mageia-dev@ ... 08826.html

Re: systemd-sysvinit

PostPosted: Oct 31st, '11, 20:50
by colin
Oh and one final thing, if you get a lot of logging info in the terminal, make sure you start the rsyslog service (systemctl start rsyslog.service). You should ensure it is enabled for next boot (systemctl enable rsyslog.service)

Re: systemd-sysvinit

PostPosted: Oct 31st, '11, 21:47
by isadora
Thanks Colin for your extensive information.
It helped out my issues concerning sound and slow shutdown.
Change to dracut went without issues.

Re: systemd-sysvinit

PostPosted: Oct 31st, '11, 22:32
by wobo
colin wrote:No network: It seems the initscript for network doesn't carry proper information about runlevels (It looks like it's there to me but go figure). So it cannot be started. You can easily enough run it (after getting to a graphical system) by running "/etc/init.d/network start" as root. This should work (not tried). However, I recommend using NetworkManager these days unless you have an exotic networking setup that will only work with old system. If you can get networking working with the above approach, then you should be able to install network manager. I think you then have to mark each interface defined as being under the control of network manager. This is achieved by adding a line with "NM_CONTROLLED=yes" to /etc/sysconfig/network-scripts/ifcfg-eth* and ifcfg-wlan* files. Make sure you do "systemctl enable NetworkManager.service" to ensure it's started at boot.

Thx for the summup, Colin. But sorry, does not work here.
1. NM is installed and "NM_CONTROLLED=yes is present in ifcfg-wlan0
2. networking via cable is working (no need to do an extra "/etc/init.d/network start")
3. Starting "Managing wifi connections" (or whatever it is called in English) from the context menue of the network icon shows the available access points.
4. No connection possible.
It is nothing exotic, a very normal connection to a very normal router/AP, automatic IP by DHCP, etc.

As I pointed out before using networkmanager is a no-go with this wifi connection. Before Oct 29 I de-installed NM and wifi came up after boot - this changed after the changes as described in post #1 of this thread. Now I disabled networkmanager with the systemctl command and even de-installed networkmanager (thus going back to the situation of NM before the changes described in post #1) - still can't connect (eth0 is connected, obviously it does not depend on networkmanager). So I do not think it is a problem with NM this time. Must be something else which broke by those updates.

I installed all updates as of tonight, no change.

Confirmation: the workaround for sound (merging system-auth with the .rpmnew file) works here, found it just before you posted this summup of the issues.

Re: systemd-sysvinit

PostPosted: Oct 31st, '11, 23:04
by Ken-Bergen
colin wrote:Emergency Console: If you have any file systems in your fstab that are on LVM or RAID volumes you pretty much NEED a dracut generated initrd (see above) as the information used by systemd to detect when disks are ready is all coming from udev (it can inform us of the disk availability without us having to probe and check and try, so it's a much cleaner solution). Sadly with an mkinitrd system, such systems (lvm/raid) are initialised before udev starts and the information normally injected into udev is never made available to systemd and thus it cannot start the "local-fs.target" unit. This unit times out after a while of waiting and dumps you into the emergency console. You can see if this is the issue by typing "systemctl status local-fs.target".
Thanks for the information Colin.
As I'm the only one that reported an Emergency Console on this thread I'll relate my experience.
I do not have LVM or RAID volumes but the latest kernel was dumping me to an Emergency Console.
Earlier kernels were stalling at "Started Restore Sound Card State" but I found that the Magic Keys "Alt+SysRq+e" would resume the boot process and I was able to update the system.
After the update the latest kernel would stall at "Checking for New Hardware" and the same Magic Keys would resume the boot.
After reading your post I used urpme to remove the running kernel :shock: then installed dracut and re-installed the running kernel.
Other than unrelated problems my system is now booting and working as expected.

Re: systemd-sysvinit

PostPosted: Nov 2nd, '11, 13:28
by wobo
wobo wrote:Now I disabled networkmanager with the systemctl command and even de-installed networkmanager (thus going back to the situation of NM before the changes described in post #1) - still can't connect (eth0 is connected, obviously it does not depend on networkmanager). So I do not think it is a problem with NM this time. Must be something else which broke by those updates.

Todays updates (including kernel) seem to confirm this. After reboot wifi came up as it has been the case before updates of Oct 29.

Now other possible reasons out of the way I checked NM once again:
1. installed networkmanager and enabled it (by sytemctl and by putting NM_CONTROLLED=yes into the config files) - rebooted - no wifi.
2. Disabled and de-installed networkmanager - rebooted - wifi works

So, apart from other reasons the fact still stands: on this machine using NM prohibits wifi here. Related hardware: Atheros AR9285, module: ath9k

Re: systemd-sysvinit

PostPosted: Nov 20th, '11, 12:20
by pulsa
Confirmation of Wobo's observation: some weeks ago, during one of the updates, I lost wifi connection in Mageia Cauldron. After removing network manager today wifi works again. It is the same hardware: Atheros AR9285 and module ath9k