Skip to content

Commit

Permalink
Remove extraneous files, enable dbus in base
Browse files Browse the repository at this point in the history
  • Loading branch information
JeWe37 committed Apr 30, 2024
1 parent c66f25a commit c036bb6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 37 deletions.
34 changes: 0 additions & 34 deletions build_library/sysext_mangle_flatcar-podman
Original file line number Diff line number Diff line change
Expand Up @@ -17,38 +17,4 @@ w /etc/subuid - - - - core:1065536:65536
w /etc/subgid - - - - core:1065536:65536
EOF

mkdir -p ./usr/lib/systemd/network

cat <<EOF >>./usr/lib/systemd/network/50-podman.network
[Match]
Type=bridge
Name=podman*
[Link]
Unmanaged=yes
EOF

cat <<EOF >>./usr/lib/systemd/user/dbus.service
[Unit]
Description=D-Bus User Message Bus
Documentation=man:dbus-daemon(1)
Requires=dbus.socket
[Service]
ExecStart=/usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
ExecReload=/usr/bin/dbus-send --print-reply --session --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig
EOF

cat <<EOF >>./usr/lib/systemd/user/dbus.socket
[Unit]
Description=D-Bus User Message Bus Socket
[Socket]
ListenStream=%t/bus
ExecStartPost=-/bin/systemctl --user set-environment DBUS_SESSION_BUS_ADDRESS=unix:path=%t/bus
EOF

mkdir -p ./usr/lib/systemd/user/sockets.target.wants
ln -s ../dbus.socket ./usr/lib/systemd/user/sockets.target.wants/dbus.socket

popd
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,7 @@ multilib_src_configure() {
--disable-kqueue
$(use_enable elogind)
$(use_enable systemd)
# Flatcar: disable user sessions
# $(use_enable systemd user-session)
--disable-user-session
$(use_enable systemd user-session)
--disable-embedded-tests
--disable-modular-tests
$(use_enable debug stats)
Expand Down

0 comments on commit c036bb6

Please sign in to comment.