Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#29314 - init=systemd would cause no network

Attached to Project: Arch Linux
Opened by LBJ (indarkness) - Friday, 06 April 2012, 18:24 GMT
Last edited by Dave Reisner (falconindy) - Thursday, 12 April 2012, 19:32 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Dave Reisner (falconindy)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
If I use init=/bin/systemd, after boot up, I cannot see eth0 and wlan0 in ifconfig. No network can be used

Additional info:
* package version(s)
systemd 44-5
* config and/or log files etc.
default
Steps to reproduce:
[alex@alex-laptop ~]$ lspci|grep -i net
02:00.0 Ethernet controller: Atheros Communications Inc. AR8151 v1.0 Gigabit Ethernet (rev c0)
03:00.0 Network controller: Atheros Communications Inc. AR928X Wireless Network Adapter (PCI-Express) (rev 01)
use init=/bin/systemd in kernel command line.
This task depends upon

Closed by  Dave Reisner (falconindy)
Thursday, 12 April 2012, 19:32 GMT
Reason for closing:  Not a bug
Comment by Dave Reisner (falconindy) - Friday, 06 April 2012, 18:29 GMT
Please make sure your system is _fully_ updated. It sounds like you updated systemd without udev.
Comment by LBJ (indarkness) - Friday, 06 April 2012, 19:36 GMT
[alex@alex-laptop pacman.d]$ sudo pacman -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
:: Starting full system upgrade...
there is nothing to do
[alex@alex-laptop pacman.d]$ pacman -Ss ^udev
core/udev 181-9 (base) [installed]
The userspace dev tools (udev)
[alex@alex-laptop pacman.d]$ grep ^Server /etc/pacman.d/mirrorlist
Server = http://mirrors.kernel.org/archlinux/$repo/os/$arch
Comment by Dave Reisner (falconindy) - Friday, 06 April 2012, 19:39 GMT
And udev is running, systemctl reports no failed services...

Basic checks would be appreciated, along with rudimentary logging.
Comment by LBJ (indarkness) - Friday, 06 April 2012, 19:45 GMT
Hi, sorry for the inconvenience, because I'm a still a newbie...Let me check
Comment by LBJ (indarkness) - Friday, 06 April 2012, 19:51 GMT
I think udev is running
[alex@alex-laptop ~]$ sudo systemctl
UNIT LOAD ACTIVE SUB JOB DESCRIPTION
home.automount loaded active waiting home.automount
media-Storage.automount loaded active waiting media-Storage.automount
media-Windows.automount loaded active waiting media-Windows.automount
proc-sys...misc.automount loaded active waiting Arbitrary Executable File Formats File System Automount Point
sys-devi...d-card1.device loaded active plugged Redwood HDMI Audio [Radeon HD 5000 Series]
sys-devi...d-card0.device loaded active plugged 5 Series/3400 Series Chipset High Definition Audio
sys-devi...et-eth0.device loaded active plugged AR8151 v1.0 Gigabit Ethernet
sys-devi...t-wlan0.device loaded active plugged AR928X Wireless Network Adapter (PCI-Express)
sys-devi...da-sda1.device loaded active plugged INTEL_SSDSA2M080G2GC
sys-devi...da-sda2.device loaded active plugged INTEL_SSDSA2M080G2GC
sys-devi...da-sda3.device loaded active plugged INTEL_SSDSA2M080G2GC
sys-devi...ock-sda.device loaded active plugged INTEL_SSDSA2M080G2GC
sys-devi...db-sdb1.device loaded active plugged ST9320325AS
sys-devi...db-sdb2.device loaded active plugged ST9320325AS
sys-devi...db-sdb3.device loaded active plugged ST9320325AS
sys-devi...db-sdb4.device loaded active plugged ST9320325AS
sys-devi...ock-sdb.device loaded active plugged ST9320325AS
sys-devi...y-ttyS0.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS0
sys-devi...y-ttyS1.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS1
sys-devi...y-ttyS2.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS2
sys-devi...y-ttyS3.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS3
sys-devi...ty-tty0.device loaded active plugged /sys/devices/virtual/tty/tty0
sys-devi...ty-tty1.device loaded active plugged /sys/devices/virtual/tty/tty1
sys-devi...y-tty10.device loaded active plugged /sys/devices/virtual/tty/tty10
sys-devi...y-tty11.device loaded active plugged /sys/devices/virtual/tty/tty11
sys-devi...y-tty12.device loaded active plugged /sys/devices/virtual/tty/tty12
sys-devi...ty-tty2.device loaded active plugged /sys/devices/virtual/tty/tty2
sys-devi...ty-tty3.device loaded active plugged /sys/devices/virtual/tty/tty3
sys-devi...ty-tty4.device loaded active plugged /sys/devices/virtual/tty/tty4
sys-devi...ty-tty5.device loaded active plugged /sys/devices/virtual/tty/tty5
sys-devi...ty-tty6.device loaded active plugged /sys/devices/virtual/tty/tty6
sys-devi...ty-tty7.device loaded active plugged /sys/devices/virtual/tty/tty7
sys-devi...ty-tty8.device loaded active plugged /sys/devices/virtual/tty/tty8
sys-devi...ty-tty9.device loaded active plugged /sys/devices/virtual/tty/tty9
sys-module-fuse.device loaded active plugged /sys/module/fuse
-.mount loaded active mounted /
dev-hugepages.mount loaded active mounted Huge Pages File System
dev-mqueue.mount loaded active mounted POSIX Message Queue File System
home-alex-.gvfs.mount loaded active mounted /home/alex/.gvfs
home.mount loaded active mounted /home
media-Storage.mount loaded active mounted /media/Storage
media-Windows.mount loaded active mounted /media/Windows
media.mount loaded active mounted Media Directory
sys-fs-f...nections.mount loaded active mounted FUSE Control File System
sys-kernel-debug.mount loaded active mounted Debug File System
sys-kernel-security.mount loaded active mounted Security File System
systemd-...d-console.path loaded active waiting Dispatch Password Requests to Console Directory Watch
systemd-...word-wall.path loaded active waiting Forward Password Requests to Wall Directory Watch
accounts-daemon.service loaded active running Accounts Service
acpid.service loaded active running ACPI event daemon
colord.service loaded active running Daemon for managing, installing and generating color profiles
console-...daemon.service loaded active running Console Manager
console-...-start.service loaded active exited Console System Startup Logging
dbus.service loaded active running D-Bus System Message Bus
gdm-plymouth.service loaded active running GNOME Display Manager
plymouth-start.service loaded failed failed Show Plymouth Boot Screen
rc-local.service loaded active exited /etc/rc.local Compatibility
remount-rootfs.service loaded active exited Remount Root FS
rtkit-daemon.service loaded active running RealtimeKit Scheduling Policy Service
systemd-journald.service loaded active running Journal Service
systemd-logind.service loaded active running Login Service
systemd-...s-load.service loaded active exited Load Kernel Modules
systemd-...pi-vfs.service loaded active exited Remount API VFS
systemd-sysctl.service loaded active exited Apply Kernel Variables
systemd-...-setup.service loaded active exited Recreate Volatile Files and Directories
systemd-...ssions.service loaded active exited Permit User Sessions
systemd-...-setup.service loaded active exited Setup Virtual Console
udev-trigger.service loaded active exited udev Coldplug all Devices
udev.service loaded active running udev Kernel Device Manager
acpid.socket loaded active listening ACPID Listen Socket
dbus.socket loaded active running D-Bus System Message Bus Socket
systemd-initctl.socket loaded active listening /dev/initctl Compatibility Named Pipe
systemd-journald.socket loaded active running Journal Socket
systemd-shutdownd.socket loaded active listening Delayed Shutdown Socket
udev-control.socket loaded active listening udev Control Socket
udev-kernel.socket loaded active running udev Kernel Socket
arch-daemons.target loaded active active Legacy Arch Daemons
basic.target loaded active active Basic System
cryptsetup.target loaded active active Encrypted Volumes
getty.target loaded active active Login Prompts
graphical.target loaded active active Graphical Interface
local-fs-pre.target loaded active active Local File Systems (Pre)
local-fs.target loaded active active Local File Systems
multi-user.target loaded active active Multi-User
remote-fs.target loaded active active Remote File Systems
sockets.target loaded active active Sockets
sound.target loaded active active Sound Card
swap.target loaded active active Swap
sysinit.target loaded active active System Initialization
systemd-...es-clean.timer loaded active waiting Daily Cleanup of Temporary Directories

LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
JOB = Pending job for the unit.

90 units listed. Pass --all to see inactive units, too.

[alex@alex-laptop ~]$ sudo systemctl|grep failed
plymouth-start.service loaded failed failed Show Plymouth Boot Screen


Comment by Dave Reisner (falconindy) - Friday, 06 April 2012, 19:53 GMT
And lsmod shows what? What kernel modules are you expecting to have support your NIC? Does it exist? Can you modprobe it manually?
Comment by LBJ (indarkness) - Friday, 06 April 2012, 20:02 GMT
Hi, I tried modprobe ath9k, it didn't work when using systemd. The init works fine.
Let me try to reboot and get 2 `lsmod`

I tried the dmesg. When using init
[alex@alex-laptop Desktop]$ sudo dmesg|grep -i netdev
[ 10.389960] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 10.451911] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 13.366774] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

When using systemd, nothing is in dmesg.
Comment by LBJ (indarkness) - Friday, 06 April 2012, 20:09 GMT
I think the kernel modules are working

When using init
[alex@alex-laptop ~]$ sudo lsmod|sort>lm.is
When using systemd
[alex@alex-laptop ~]$ sudo lsmod|sort>lm.ds

[alex@alex-laptop Desktop]$ diff lm.is lm.ds
4,6c4
< aes_generic 26138 1 aes_x86_64
< aes_x86_64 7508 3
< ahci 20037 5
---
> ahci 20037 4
12a11
> autofs4 24044 5
14,15d12
< bluetooth 151999 7 bnep
< bnep 9181 2
18c15
< cpufreq_ondemand 6164 4
---
> cpufreq_ondemand 6164 0
20,21c17
< crc16 1359 2 ext4,bluetooth
< cryptd 8309 0
---
> crc16 1359 1 ext4
28c24
< fuse 66922 6
---
> fuse 66922 7
52c48
< rfkill 15498 5 cfg80211,acer_wmi,bluetooth
---
> rfkill 15498 3 cfg80211,acer_wmi
54c50
< sd_mod 28307 7
---
> sd_mod 28307 6
[alex@alex-laptop Desktop]$ grep ath lm.ds
ath 14802 3 ath9k_hw,ath9k_common,ath9k
ath9k 87439 0
ath9k_common 2096 1 ath9k
ath9k_hw 347154 2 ath9k_common,ath9k
cfg80211 172260 3 mac80211,ath,ath9k
mac80211 228527 1 ath9k

Comment by Dave Reisner (falconindy) - Friday, 06 April 2012, 20:24 GMT
That looks fine to me... you say 'ifconfig -a' is empty?
Comment by LBJ (indarkness) - Saturday, 07 April 2012, 00:10 GMT
I can see lo only
Comment by LBJ (indarkness) - Saturday, 07 April 2012, 00:14 GMT
So I think it may because my NIC. The VGA card or anything else seems ok, but NIC
Comment by Dave Reisner (falconindy) - Saturday, 07 April 2012, 23:49 GMT
Please stop truncating output or trying to be clever and providing diffs. What are you expecting to bring up your network with systemd? Attach your dmesg with systemd and sysvinit.
Comment by LBJ (indarkness) - Wednesday, 11 April 2012, 19:30 GMT
Here is the dmesg
Comment by Dave Reisner (falconindy) - Wednesday, 11 April 2012, 20:46 GMT
systemd dmesg quite clearly shows the ath9k module being probed. What are you expecting to bring up your network connection? Is the unit enabled? Is it started?
Comment by LBJ (indarkness) - Wednesday, 11 April 2012, 21:12 GMT
Hi, I know ath9k is probed, but when I start with systemd, I do not see networkmanager-applet, and if I run ifconfig, I cannot see eth0 or wlan, I can only see lo, therefore I cannot connect to the internet.
Comment by Dave Reisner (falconindy) - Wednesday, 11 April 2012, 21:29 GMT
And the answer to the remainder of my questions? You're not making this easy for me....


Output of...

tree /etc/systemd/system
ip l
Comment by LBJ (indarkness) - Thursday, 12 April 2012, 19:25 GMT
/etc/systemd/system
├── getty.target.wants
│   └── getty@tty1.service -> /usr/lib/systemd/system/getty@.service
├── graphical.target.wants
│   ├── console-kit-daemon.service -> /lib/systemd/system/console-kit-daemon.service
│   └── gdm-plymouth.service -> /lib/systemd/system/gdm-plymouth.service
├── local-fs.target.wants
├── multi-user.target.wants
│   ├── arch-daemons.target -> /lib/systemd/system/arch-daemons.target
│   ├── rc-local.service -> /lib/systemd/system/rc-local.service
│   └── remote-fs.target -> /usr/lib/systemd/system/remote-fs.target
├── shutdown.target.wants
│   └── arch-persistent-settings.service -> /lib/systemd/system/arch-persistent-settings.service
└── sysinit.target.wants

6 directories, 7 files









1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether c8:0a:a9:41:f1:55 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether f0:7b:cb:50:fa:e0 brd ff:ff:ff:ff:ff:ff
Comment by Dave Reisner (falconindy) - Thursday, 12 April 2012, 19:32 GMT
So when I asked for the output of 'ifconfig -a' and you said that eth0 and wlan0 weren't there, that was false. You haven't enabled or started the network-manager units. Please do that.

Loading...