[Piuparts-devel] /etc/systemd/system/
Holger Levsen
holger at layer-acht.org
Thu Feb 6 08:15:21 UTC 2014
Hi Michael,
On Mittwoch, 5. Februar 2014, Michael Stapelberg wrote:
> Holger Levsen <holger at layer-acht.org> writes:
> > shall we add /etc/systemd/system/ to ignored (by piuparts) directories?
> Sounds good to me.
why aint that cleaned up by removing $systemd-package when it's purged?
> For the record, there were some previous discussions about piuparts and
> init-system-helpers (which is what creates the directories). AFAIR they
> were hard to refer to because they were only happening on the mailing
> lists, not on the BTS. If necessary I might be able to dig them up.
thats something else, in jessie we treat the package init-system-helpers special (aka fake essential) and install it everywhere:
$ cat custom-scripts/scripts-leftovers/post_setup_fake-essential
#!/bin/sh
set -e
# for purging configuration from /var/lib/systemd/
INITSYSTEMHELPERS="init-system-helpers"
case ${PIUPARTS_DISTRIBUTION} in
lenny*|squeeze*|wheezy*)
# package does not exist
INITSYSTEMHELPERS=""
;;
esac
echo "*** Adding fake essential packages ***"
apt-get install -yf $DBCONFIG $INITSYSTEMHELPERS $OPENSSL
(Some here irrelevant code removed from that script...)
Plus there is this another script dealing with exception, and there is one systemd related package having one:
$ cat custom-scripts/scripts/pre_install_exceptions
#!/bin/sh
set -e
#
# deal with packages depending on exceptions:
#
case ${PIUPARTS_OBJECTS%%=*} in
live-config-upstart) log_debug
PIUPARTS_OBJECTS=upstart
;;
esac
#
# deal with exceptions:
#
case ${PIUPARTS_OBJECTS%%=*} in
upstart) log_debug
# force installation and removal of essential package sysvinit
yes 'Yes, do as I say!' | apt-get -y --force-yes install upstart
;;
file-rc) log_debug
# force installation and removal of essential package sysv-rc
yes 'Yes, do as I say!' | apt-get -y --force-yes install file-rc
;;
systemd-sysv) log_debug
# force installation and removal of essential package sysvinit
yes 'Yes, do as I say!' | apt-get -y --force-yes install systemd-sysv
;;
Again, quite some irrelevant code removed from this script :)
cheers,
Holger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/piuparts-devel/attachments/20140206/b6443559/attachment.sig>
More information about the Piuparts-devel
mailing list