Bug#1061280: sysvinit crashes podman container on install

Mark Hindley mark at hindley.org.uk
Mon Jan 22 16:54:57 GMT 2024


Sam,

Thanks for this.

A quick look at sysvinit-core postinst reveals:

restart=yes

if ischroot --default-true ; then
	restart=no
fi
if [ -n "${DPKG_ROOT:-}" ]; then
	restart=no
fi

# If systemd is running, don't restart init or doing any initctl
# migration.
if [ -d "$DPKG_ROOT/run/systemd/system" ]; then
	restart=no
fi
if [ "$(uname -s)" = "GNU" ]; then
	restart=no
fi

if [ "$restart" = "yes" ]; then
	do_restart
else
	echo "Not restarting sysvinit"
fi

My initial thought is that restart should really be 'no' if it is a new
sysvinit-core installation. The attached patch fixes sysvinit-core installation
within a podman container for me. I need to do more testing to check that it
doesn't cause breakage elsewhere.

Can you confirm?

Thanks

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-d-sysvinit-core.postinst-don-t-do_restart-for-new-in.patch
Type: text/x-diff
Size: 664 bytes
Desc: not available
URL: <http://www.chiark.greenend.org.uk/pipermail/debian-init-diversity/attachments/20240122/6d7d235b/attachment.patch>


More information about the Debian-init-diversity mailing list