]> git.proxmox.com Git - dab.git/commitdiff
Revert "trusty: add hack to avoid util-linux preinst bug"
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 26 Jun 2017 05:38:38 +0000 (07:38 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 26 Jun 2017 05:38:38 +0000 (07:38 +0200)
This reverts commit 8a9c66c3874af99af4642fa915c8fe1162553369.

Ubuntu fixed this upstream. Seems sysv-rc now generates
/etc/init.d/.legacy-bootordering to avoid calling insserv.

DAB.pm

diff --git a/DAB.pm b/DAB.pm
index 989854accc533bbcf665f820ee3871761397e180..1525f1e4aa46748beaf0f89873d958e3b77691c5 100644 (file)
--- a/DAB.pm
+++ b/DAB.pm
@@ -1284,21 +1284,12 @@ sub bootstrap {
 
     $self->ve_dpkg ('install', 'mawk');
     $self->ve_dpkg ('install', 'debconf');
-
-    if ($suite eq 'trusty') {
-       # hack: util-linux preinst calls update-rc.d, which calls /sbin/insserv
-       $self->run_command ("ln -s /usr/lib/insserv/insserv '$rootdir/sbin/insserv'");
-    }
-
+    
     # unpack required packages
     foreach my $p (@$required) {
        $self->ve_dpkg ('unpack', $p);
     }
 
-    if ($suite eq 'trusty') {
-       $self->run_command ("rm '$rootdir/sbin/insserv'");
-    }
-
     rename ("$rootdir/sbin/init.org", "$rootdir/sbin/init");
     $self->ve_divert_add ("/sbin/init");
     $self->run_command ("cp '$fake_init' '$rootdir/sbin/init'");