From 8075b3f8fc4ef5aa545ba27b3066f302aeb1ecea Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Fri, 25 Nov 2016 16:39:20 +0100 Subject: [PATCH 1/1] instsoft.GRMLBASE: ensure that file-rc can be installed If we request installation of file-rc but don't add hint to remove systemd-sysv package then aptitude fails with: | The following NEW packages will be installed: | file-rc initscripts{a} insserv{a} sysvinit-core{ab} | The following packages are RECOMMENDED but will NOT be installed: | psmisc | 0 packages upgraded, 4 newly installed, 0 to remove and 0 not upgraded. | Need to get 316 kB of archives. After unpacking 686 kB will be used. | The following packages have unmet dependencies: | systemd-sysv : Conflicts: file-rc but 0.8.18 is to be installed | Conflicts: sysvinit-core but 2.88dsf-59.8 is to be installed | sysvinit-core : Conflicts: systemd-sysv but 232-3 is installed | The following actions will resolve these dependencies: | | Install the following packages: | 1) startpar [0.59-3.1 (testing)] | 2) sysv-rc [2.88dsf-59.8 (testing)] | | Keep the following packages at their current version: | 3) file-rc [Not Installed] | 4) sysvinit-core [Not Installed] | | | | No packages will be installed, upgraded, or removed. | 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. --- etc/grml/fai/config/hooks/instsoft.GRMLBASE | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/grml/fai/config/hooks/instsoft.GRMLBASE b/etc/grml/fai/config/hooks/instsoft.GRMLBASE index f5c22d8..620c101 100755 --- a/etc/grml/fai/config/hooks/instsoft.GRMLBASE +++ b/etc/grml/fai/config/hooks/instsoft.GRMLBASE @@ -65,7 +65,7 @@ EOF # newer aptitude versions won't remove essential packages using # 'aptitude -f -y install file-rc' anymore, therefore force it: - $ROOTCMD aptitude -o Aptitude::ProblemResolver::Keep-All-Tier=60000 -f -y install file-rc + $ROOTCMD aptitude -o Aptitude::ProblemResolver::Keep-All-Tier=60000 -f -y install file-rc systemd-sysv- # make sure we can upgrade automatically, # even with unsigned repos, but only if user wants it @@ -120,7 +120,7 @@ fi # newer aptitude versions won't remove essential packages using # 'aptitude -f -y install file-rc' anymore, therefore force it via: -$ROOTCMD aptitude -o Aptitude::ProblemResolver::Keep-All-Tier=60000 -f -y install file-rc +$ROOTCMD aptitude -o Aptitude::ProblemResolver::Keep-All-Tier=60000 -f -y install file-rc systemd-sysv- # }}} # we definitely don't want to fail running fai dirinstall just -- 2.1.4