From: Dietmar Maurer Date: Mon, 26 Jun 2017 05:42:09 +0000 (+0200) Subject: Revert "trusty: add hack to avoid util-linux preinst bug" X-Git-Url: https://git.proxmox.com/?p=dab.git;a=commitdiff_plain;h=dfdfb6681c092e65f704bd880164278ec6e44c41 Revert "trusty: add hack to avoid util-linux preinst bug" This reverts commit 0aa30d54c6d527ab0393cd8a0aa8cf9b90ab3a76. Ubuntu fixed this upstream. Seems sysv-rc now generates /etc/init.d/.legacy-bootordering to avoid calling insserv. --- diff --git a/DAB.pm b/DAB.pm index 739f5d7..61cf5ad 100644 --- 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'");