File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,10 +8,11 @@ ARCH=$(uname -m)
88# Context check
99[[ -z " ${AMPUSERID} " ]] && { echo " [Error] This docker image cannot be used directly by itself - it must be started by ampinstmgr" ; exit 100; }
1010
11- # Create /etc/machine-id (addresses Proton/dbus issues)
11+ # Create static /etc/machine-id based on AMP instance UUID (addresses Proton/dbus issues)
1212mkdir -p /var/lib/dbus
1313rm -f /etc/machine-id /var/lib/dbus/machine-id
14- dbus-uuidgen --ensure=/etc/machine-id
14+ MachineID=$( grep ' ^AMP.InstanceID=' /AMP/AMPConfig.conf | sed ' s/.*=//' | tr -d ' -' )
15+ echo " $MachineID " > /etc/machine-id
1516ln -s /etc/machine-id /var/lib/dbus/machine-id
1617
1718# Create /tmp/.X11-unix (for Xvfb etc)
Original file line number Diff line number Diff line change @@ -8,10 +8,11 @@ ARCH=$(uname -m)
88# Context check
99[[ -z " ${AMPUSERID} " ]] && { echo " [Error] This docker image cannot be used directly by itself - it must be started by ampinstmgr" ; exit 100; }
1010
11- # Create /etc/machine-id (addresses Proton/dbus issues)
11+ # Create static /etc/machine-id based on AMP instance UUID (addresses Proton/dbus issues)
1212mkdir -p /var/lib/dbus
1313rm -f /etc/machine-id /var/lib/dbus/machine-id
14- dbus-uuidgen --ensure=/etc/machine-id
14+ MachineID=$( grep ' ^AMP.InstanceID=' /AMP/AMPConfig.conf | sed ' s/.*=//' | tr -d ' -' )
15+ echo " $MachineID " > /etc/machine-id
1516ln -s /etc/machine-id /var/lib/dbus/machine-id
1617
1718# Create /tmp/.X11-unix (for Xvfb etc)
Original file line number Diff line number Diff line change @@ -8,10 +8,11 @@ ARCH=$(uname -m)
88# Context check
99[[ -z " ${AMPUSERID} " ]] && { echo " [Error] This docker image cannot be used directly by itself - it must be started by ampinstmgr" ; exit 100; }
1010
11- # Create /etc/machine-id (addresses Proton/dbus issues)
11+ # Create static /etc/machine-id based on AMP instance UUID (addresses Proton/dbus issues)
1212mkdir -p /var/lib/dbus
1313rm -f /etc/machine-id /var/lib/dbus/machine-id
14- dbus-uuidgen --ensure=/etc/machine-id
14+ MachineID=$( grep ' ^AMP.InstanceID=' /AMP/AMPConfig.conf | sed ' s/.*=//' | tr -d ' -' )
15+ echo " $MachineID " > /etc/machine-id
1516ln -s /etc/machine-id /var/lib/dbus/machine-id
1617
1718# Create /tmp/.X11-unix (for Xvfb etc)
You can’t perform that action at this time.
0 commit comments