View Issue Details

IDProjectCategoryView StatusLast Update
0007409CentOS-7systemdpublic2014-07-21 19:32
ReporterPryMar56 Assigned To 
PrioritynormalSeveritytweakReproducibilityalways
Status newResolutionopen 
PlatformallOSCentosOS Version7
Product Version7.0-1406 
Summary0007409: systemd-nspawn dies looking for a *.socket file
Descriptionsystemd-nspawn is similar to a chroot tool and depends on dbus.

When launched it should read/write a *.socket file. It looks here
/run/dbus/system_bus_socket

The actual file is in /var/run/, so solution is this tweak:

--------------- in /etc/rc.local ------------
if [ ! -f /run/dbus/system_bus_socket ]; then
mkdir -p /run/dbus
LST=`pwd`
cd /run/dbus
ln -s /var/run/dbus/system_bus_socket system_bus_socket
cd $LST
fi
---------------- snip --------
Steps To Reproducemount an LVM or partion with a complete OS (/mnt/chroot), then launch

systemd-nspawn -D /mnt/chroot

it will die without the symlink tweak
Additional Informationnone
TagsNo tags attached.
abrt_hash
URL

Activities

PryMar56

PryMar56

2014-07-21 19:32

reporter   ~0020492

better fix:

------------ rc.local ---------
if [ ! -d /run/dbus/ ]; then
/bin/ln -s /var/run/dbus/ /run/dbus
fi
----------- snip ----------

Issue History

Date Modified Username Field Change
2014-07-21 03:17 PryMar56 New Issue
2014-07-21 19:32 PryMar56 Note Added: 0020492