]> 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:42:09 +0000 (07:42 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 26 Jun 2017 05:42:09 +0000 (07:42 +0200)
This reverts commit 0aa30d54c6d527ab0393cd8a0aa8cf9b90ab3a76.

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 739f5d737a71fa21853c91f0ccd0cefd4d15d284..61cf5ad8c77ef0a3620ccac8897ceed1a87086a5 100644 (file)
--- a/DAB.pm
+++ b/DAB.pm
@@ -1296,21 +1296,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'");