On Thu, Aug 07, 2014 at 03:02:04AM +0200, Michael Biebl wrote: > Am 07.08.2014 02:53, schrieb Michael Biebl: > > Once this patch has been applied to grub, I sysvinit would have to be > > updated to call update-grub in postinst on install|upgrade and postrm > > on remove to ensure the menu entry is up-to-date. > > Do you have any suggestions regarding the the usage of update-grub? > > Thinking about it, systemd-sysv would probably also have to call > update-grub on install/remove since it is the package providing the > /sbin/init → /lib/systemd/systemd symlink. > > So maybe it would be simpler, if grub-common just installs a file > trigger for /lib/systemd/systemd and /lib/sysvinit/init and calls > update-grub when triggered.
To be honest, I would be inclined to just omit the triggering entirely. update-grub is already called in plenty of situations and we probably don't need the complexity at this point; I certainly don't want to try to insert dpkg triggers at this stage. I've combined your patch with that from Didier in #773173 (though without the extra configuration variables in the latter) and pushed a gestalt version to git. I should manage to upload this today. Sorry for the delay! -- Colin Watson [cjwat...@debian.org] -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org