mirror of
https://github.com/mikenye/docker-picard.git
synced 2026-04-18 10:54:02 +02:00
* Attempt to fix issue #29 * Add dbus-x11 (issue #29) * Add --disable-gpu to chrome * Generate /etc/machine-id * Fix /etc/machine-id * Add --disable-software-rasterizer to chrome * Implement dbus * Reduce chromium-browser log-level
This commit is contained in:
18
rootfs/etc/cont-init.d/90-dbus
Normal file
18
rootfs/etc/cont-init.d/90-dbus
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
# Generate machine-id
|
||||
rm /etc/machine-id > /dev/null 2>&1 || true
|
||||
dbus-uuidgen > /var/lib/dbus/machine-id
|
||||
ln -s /var/lib/dbus/machine-id /etc/machine-id
|
||||
|
||||
# Ensure pid file is removed
|
||||
rm /var/run/dbus/pid > /dev/null 2>&1 || true
|
||||
|
||||
# Ensure directory structure is present
|
||||
mkdir -p /var/run/dbus
|
||||
|
||||
# Ensure messagebus user exists
|
||||
if ! id "messagebus" &>/dev/null; then
|
||||
useradd -r --no-create-home -U messagebus
|
||||
fi
|
||||
Reference in New Issue
Block a user