Bug#924000: cdimage.debian.org: Live images /usr/sbin/policy-rc.d disables daemons
Package: cdimage.debian.org
Severity: normal
Tags: patch
Images Team,
Weekly Live Image:
https://cdimage.debian.org/cdimage/weekly-live-builds/amd64/iso-hybrid/
debian-live-testing-amd64-gnome.iso 2019-03-04
"apt update; apt upgrade" generates errors like those below.
I believe that the root cause is that live-setup
available/live-customise.sh is missing "remove_daemon_block".
vmdebootstrap/README.devel says:
> All scripts need to use remove_daemon_block after package
> installation is complete.
An *untested* patch is attached.
Thank you!
Dan
========================================
$ grep -B1 'rc\.d' apt-upgrade.log
Setting up apt (1.8.0~rc4) ...
/usr/sbin/policy-rc.d returned 101, not running 'restart
apt-daily-upgrade.timer apt-daily.timer'
--
Preparing to unpack .../00-cron_3.0pl1-132_amd64.deb ...
invoke-rc.d: policy-rc.d denied execution of stop.
--
Setting up cron (3.0pl1-132)
invoke-rc.d: policy-rc.d denied execution of restart.
/usr/sbin/policy-rc.d returned 101, not running 'restart cron.service'
--
Setting up udev (241-1)
invoke-rc.d: policy-rc.d denied execution of restart.
--
Setting up upower (0.99.10-1)
/usr/sbin/policy-rc.d returned 101, not running 'restart upower.service'
--
Setting up exim4-daemon-light (4.92-2) ...
invoke-rc.d: policy-rc.d denied execution of start.
========================================
diff -ru a/available/live-customise.sh b/available/live-customise.sh
--- a/available/live-customise.sh 2019-02-14 19:57:33.000000000 -0600
+++ b/available/live-customise.sh 2019-03-08 00:00:00.000000000 -0600
@@ -66,7 +66,7 @@
echo "blacklist bochs-drm" > $rootdir/etc/modprobe.d/qemu-blacklist.conf
+remove_daemon_block
replace_apt_source
mv ${rootdir}/etc/resolv.conf ${rootdir}/etc/resolv.conf.bak
-
Reply to: