[systemd-devel] dev-root.device is not active, results in an umount spree

Dimitri John Ledkov dimitri.j.ledkov at intel.com
Wed May 13 04:48:14 PDT 2015

I am booting without initramfs, using a plan9 filesystem as rootfs in a kvm.

Thus my /proc/cmdline has:
root=/dev/root rootflags=rw,trans=virtio,version=9p2000.L rootfstype=9p

# mount
/dev/root on / type 9p

Yet, dev-root.device is dead:
# systemctl status dev-root.device
‚óŹ dev-root.device
   Loaded: loaded
   Active: inactive (dead)

This is very bad. As a harmless action like following:

# mount --bind /opt /opt

Results in opt.mount unit to be generated which BindsTo
dev-root.device, which is inactive, thus systemd tries to stop that
unit straight away, and umount fails and is retried infinitely...
effectively DoSing init.

What am I missing and/or how can I force make dev-root.device to be
considered active?

I am planning to locally patch mount_add_device_links to skip if what
is "/dev/root", to avoid a call to unit_add_node_link... But I'm not
sure if this is the right thing to do or not.


Pura Vida!

Open Source Technology Center
Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3 1RJ.

More information about the systemd-devel mailing list