Skip to content

Commit

Permalink
Add dbus system bus
Browse files Browse the repository at this point in the history
D-Bus system bus is needed by `systemd-run --wait`.
  • Loading branch information
valentindavid committed Jun 20, 2023
1 parent 4e5b81d commit 2b9df52
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Maintainer: Dimitri John Ledkov <[email protected]>
Build-Depends: debhelper-compat (= 12), dh-python, python3:any, dracut-core, quilt, busybox-initramfs,
util-linux,
e2fsprogs,
dbus,
dosfstools,
dmsetup,
mount,
Expand Down
6 changes: 5 additions & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ INSTALL_FILES_FROM_HOST= \
/lib/$(DEB_HOST_MULTIARCH)/libgcc_s.so.1 \
/lib/$(DEB_HOST_MULTIARCH)/libnss_compat.so.* \
/lib/$(DEB_HOST_MULTIARCH)/libnss_files.so.* \
/lib/systemd/system/dbus.service \
/lib/systemd/system/dbus.socket \
/lib/systemd/system/snapd.recovery-chooser-trigger.service \
/lib/systemd/systemd-bootchart \
/sbin/cryptsetup \
Expand All @@ -144,10 +146,12 @@ INSTALL_FILES_FROM_HOST= \
/sbin/mkfs.ext4 \
/sbin/mkfs.vfat \
/sbin/sfdisk \
/usr/bin/dbus-daemon \
/usr/bin/partx \
/usr/bin/unsquashfs \
/usr/lib/snapd/info \
/usr/lib/snapd/snap-bootstrap
/usr/lib/snapd/snap-bootstrap \
/usr/share/dbus-1/system.conf \

override_dh_auto_install: TEMPLIBDIR := $(shell mktemp -d)
override_dh_auto_install:
Expand Down
3 changes: 3 additions & 0 deletions factory/usr/lib/systemd/system/the-tool.service
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ Wants=systemd-modules-load.service
After=systemd-udev-settle.service
Wants=systemd-udev-settle.service

Wants=dbus.socket
After=dbus.socket

[Service]
Type=oneshot
RemainAfterExit=true
Expand Down

0 comments on commit 2b9df52

Please sign in to comment.