Comment 14 for bug 799858

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 799858] Re: package qemu-kvm-extras-static 0.12.3+noroms-0ubuntu9.9 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Quoting indymaynard (<email address hidden>):
> Glad to see that I'm not the only one baffled. This has kicked my butt.
>
>
> # procps - set sysctls from /etc/sysctl.conf
> #
> # This task sets kernel sysctl variables from /etc/sysctl.conf and
> # /etc/sysctl.d
>
> description "set sysctls from /etc/sysctl.conf"
>
> start on virtual-filesystems
>
> task
> script
> cat /etc/sysctl.d/*.conf /etc/sysctl.conf | sysctl -p -
> end script

If you add '-e' to the sysctl command, does that stop the error? So
it would look like this:

===================================================================
# procps - set sysctls from /etc/sysctl.conf
#
# This task sets kernel sysctl variables from /etc/sysctl.conf and
# /etc/sysctl.d

description "set sysctls from /etc/sysctl.conf"

start on virtual-filesystems

task
script
    cat /etc/sysctl.d/*.conf /etc/sysctl.conf | sysctl -e -p -
end script
===================================================================