qemu-kvm-extras-static sysctl.d settings remain active when package is removed but not purged

Bug #515706 reported by Loïc Minier on 2010-02-01
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qemu-linaro (Ubuntu)

Bug Description

Binary package hint: qemu-kvm


This is a reminder that the qemu-arm-static/qemu-kvm-extras-static ship /etc/sysctl.d settings which will remain active while the packages aren't purged.


Dustin Kirkland  (kirkland) wrote :

Hi Loic-

Just doing some house cleaning here. Assigning you this bug, marking it triaged/low, and targeting it at Lucid Beta1. Feel free to adjust as necessary.


Changed in qemu-kvm (Ubuntu):
status: New → Triaged
importance: Undecided → Low
assignee: nobody → Loïc Minier (lool)
milestone: none → ubuntu-10.04-beta-1
Loïc Minier (lool) wrote :

Ideas on how to resolve the bug are welcome BTW

Dustin Kirkland  (kirkland) wrote :

I'll have a look. In the meantime, I've dropped the milestone target, since we don't yet have an agreed up approach.

Subscribing Steve Langasek, as he might have some advice.

Steve, any best practices here, on removing sysctl.d settings on package removal?

Changed in qemu-kvm (Ubuntu Lucid):
milestone: ubuntu-10.04-beta-1 → none
Loïc Minier (lool) wrote :

To be clear, in postinst I have:
start procps

and in postrm, on purge, I have:
start procps

This means that the /etc/sysctl.d tree gets applied after install (that's probably ok) and reapplied after purge which is a problem in two ways:
- settings are still applied while the package isn't purged (but only removed); I think that's acceptable, even if not perfect
- settings which were overriden by qemu-kvm-extra-static's /etc/sysctl.d/ config will only be reset if another file in /etc/sysctl.d also sets them; this is true for mmap minaddr for instance, but perhaps not for other settings such as vm.vdso_enabled on i386.

Steve Langasek (vorlon) wrote :

Sorry, I can't really see any good solutions for this with the present design. The best I can conceive of is to have the sysctl file stored in /lib somewhere (for which a standard directory should be defined), and have the maintainer scripts manage a symlink to /etc/sysctl.d.

Loïc Minier (lool) on 2010-03-13
Changed in qemu-kvm (Ubuntu Lucid):
assignee: Loïc Minier (lool) → nobody
Thierry Carrez (ttx) on 2010-04-09
Changed in qemu-kvm (Ubuntu Lucid):
assignee: nobody → Dustin Kirkland (kirkland)
Dustin Kirkland  (kirkland) wrote :

Unassigning myself, won't-fix for Lucid. This isn't release critical, and no one yet has an approved, suggested approach. Triaged/Wishlist for Maverick.

Changed in qemu-kvm (Ubuntu Lucid):
assignee: Dustin Kirkland (kirkland) → nobody
status: Triaged → Won't Fix
Dustin Kirkland  (kirkland) wrote :

Moving this bug over to the qemu-linaro package, which now provides qemu-extras

affects: qemu-kvm (Ubuntu) → qemu-linaro (Ubuntu)
Steve Langasek (vorlon) wrote :

Working on solving this by getting rid of the sysctl.d entirely for this package. We've already dropped the mmap_min_addr setting, and just have one outstanding sysctl setting for disabling vdso on !amd64. Looking for confirmation that this setting can be dropped.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers