Package: systemd Severity: wishlist Hi,
During debootstrap autopkgtest, it runs debootstap itself under systemd-nspawn environment. And salsa CI runner runs it under docker and it doesn't have full privilege. Then it causes error with systemd package setup with run systemd-machine-id-setup. docker + systemd-nspawn + debootstrap(chroot) = systemd-machine-id-setup fail. Attached patch would just ignore this error. -- Regards, Hideki Yamane henrich @ debian.org/iijmio-mail.jp
>From 957860aab5ae02885331219b49903e95c8023f7f Mon Sep 17 00:00:00 2001 From: Hideki Yamane <henr...@debian.org> Date: Sat, 26 May 2018 22:25:50 +0900 Subject: [PATCH] Ignore systemd-machine-id-setup error for in some environment In docker container, debootstraping (under chroot) is prevented because of systemd-machine-id-setup error. This change ignores it. (snip) > Setting up systemd (238-4) ... > Created symlink /etc/systemd/system/getty.target.wants/getty@tty1.service -> /lib/systemd/system/getty@.service. > Created symlink /etc/systemd/system/multi-user.target.wants/remote-fs.target -> /lib/systemd/system/remote-fs.target. > Created symlink /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service -> /lib/systemd/system/systemd-timesyncd.service. > Initializing machine ID from random generator. > Failed to mount /etc/machine-id: Operation not permitted > dpkg: error processing package systemd (--install): > installed systemd package post-installation script subprocess returned error exit status 1 > Processing triggers for libc-bin (2.27-3) ... > Errors were encountered while processing: > systemd --- debian/systemd.postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/systemd.postinst b/debian/systemd.postinst index e289ac517..ebaf9752f 100644 --- a/debian/systemd.postinst +++ b/debian/systemd.postinst @@ -91,7 +91,7 @@ if [ -z "$2" ]; then fi # Create /etc/machine-id -systemd-machine-id-setup +systemd-machine-id-setup || true # Setup system users and groups addgroup --quiet --system systemd-journal -- 2.17.0