diff -Nru livecd-rootfs-2.525.18/debian/changelog livecd-rootfs-2.525.19/debian/changelog --- livecd-rootfs-2.525.18/debian/changelog 2019-02-12 18:35:48.000000000 +0000 +++ livecd-rootfs-2.525.19/debian/changelog 2019-02-18 16:03:46.000000000 +0000 @@ -1,3 +1,10 @@ +livecd-rootfs (2.525.19) bionic; urgency=medium + + * Make sure buildd images have a /usr/sbin/policy-rc.d symlink + (LP: #1815251). + + -- Colin Watson Mon, 18 Feb 2019 16:03:46 +0000 + livecd-rootfs (2.525.18) bionic; urgency=medium [ Michael Hudson-Doyle ] @@ -23,11 +30,11 @@ livecd-rootfs (2.525.17) bionic; urgency=medium - * Add a buildd subproject. + * Add a buildd subproject (LP: #1815251). * Add a LXD image to builds for the buildd subproject. * Move buildd image building to binary hooks. - -- Colin Watson Tue, 05 Feb 2019 14:55:06 +0000 + -- Colin Watson Fri, 08 Feb 2019 22:57:59 +0000 livecd-rootfs (2.525.16) bionic; urgency=medium diff -Nru livecd-rootfs-2.525.18/live-build/buildd/hooks/01-policy-rc-d.binary livecd-rootfs-2.525.19/live-build/buildd/hooks/01-policy-rc-d.binary --- livecd-rootfs-2.525.18/live-build/buildd/hooks/01-policy-rc-d.binary 1970-01-01 00:00:00.000000000 +0000 +++ livecd-rootfs-2.525.19/live-build/buildd/hooks/01-policy-rc-d.binary 2019-02-18 16:03:46.000000000 +0000 @@ -0,0 +1,13 @@ +#! /bin/sh +set -e + +# Put the /usr/sbin/policy-rc.d alternatives symlink in place. Ordinarily +# update-alternatives ought to create this when policyrcd-script-zg2 is +# installed, but that doesn't work because live-build has already installed +# a dummy one at that point. The simplest approach is to repair the +# situation by putting it in place here. +if [ -L binary/etc/alternatives/policy-rc.d ] && \ + [ ! -e binary/usr/sbin/policy-rc.d ] && \ + [ ! -L binary/usr/sbin/policy-rc.d ]; then + ln -s /etc/alternatives/policy-rc.d binary/usr/sbin/policy-rc.d +fi