Skip to content

bash -l emits constant /etc/machine-id: no such file or directory due to /etc/profile.d/80-systemd-osc-context.sh

e.g. with docker run --rm -it archlinux:base-devel bash -l.

Responsible function is:

__systemd_osc_context_common() {
    printf ";user=%s;hostname=%s;machineid=%s;bootid=%s;pid=%s" "$USER" "$HOSTNAME" "$(</etc/machine-id)" "$(</proc/sys/kernel/random/boot_id)" "$$"
}

in /etc/profile.d/80-systemd-osc-context.sh.

Perhaps the docker images should mark these files¹ as NoExtract, since they do not (cannot?) use systemd. Or include a dummy /etc/machine-id?

¹ /etc/profile.d/70-systemd-shell-extra.sh, /etc/profile.d/80-systemd-osc-context.sh

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information