Skip to content
Snippets Groups Projects
Commit d79f1c9d authored by Christopher Spinrath's avatar Christopher Spinrath
Browse files

Bugfix: revert initctl if it is already diverted (dirty rootfs)

parent 264bdcb4
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,7 @@ function install_debs()
function divert_initctl()
{
dpkg-divert --local --rename --add /sbin/initctl
ln -s /bin/true /sbin/initctl
ln -s /bin/true /sbin/initctl || ( echo "LIPCK: Failed to divert initcl!" && revert_initctl && exit 1 )
# Fix sysvinit legacy invoke-rc.d issue with nonexisting scripts
dpkg-divert --local --rename --add /usr/sbin/invoke-rc.d
ln -s /bin/true /usr/sbin/invoke-rc.d
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment