--remove didn't disable

Bug #516274 reported by Loïc Minier
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qemu-kvm (Ubuntu)
Fix Released
Undecided
Loïc Minier

Bug Description

Binary package hint: binfmt-support

Hi

I just renamed qemu-arm-static to qemu-kvm-extras-static and the binfmt-support files from "arm" to "qemu-arm" to match Debian; the former package had in debian/qemu-arm-static.prerm:
if [ "$1" = remove ] && which update-binfmts >/dev/null; then
    update-binfmts --package qemu-arm-static \
        --remove arm /usr/bin/qemu-arm-static
fi

and the new package has in debian/qemu-kvm-extras-static.postinst:
if [ "$1" = configure ] && which update-binfmts >/dev/null; then
    update-binfmts --import qemu-arm
fi

after upgrade, I had only /proc/sys/fs/binfmt_misc/arm in /proc/sys/fs/binfmt_misc/.

After invoke-rc.d binfmt-support restart, I could see both arm and qemu-arm.

It seems to me:
a) binfmt-support didn't disable the arm module when --removing it (but I thought it would)
b) binfmt-support didn't notice that the arm module was gone on restart; not sure whether this could be done though

Is this a bug in binfmt-support, or did the qemu-kvm package get it wrong to start with?

Thanks,

ProblemType: Bug
Architecture: amd64
Date: Tue Feb 2 22:48:02 2010
DistroRelease: Ubuntu 10.04
Package: binfmt-support 1.2.15
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=fr_FR.UTF-8
 PATH=(custom, user)
 LANG=fr_FR.UTF-8
 SHELL=/bin/zsh
ProcVersionSignature: Ubuntu 2.6.32-12.16-generic
SourcePackage: binfmt-support
Uname: Linux 2.6.32-12-generic x86_64

Revision history for this message
Loïc Minier (lool) wrote :
Revision history for this message
Loïc Minier (lool) wrote :

Sorry, that was actually a bug in the maintainer scripts, not in binfmt-support. --remove does work as documented.

affects: binfmt-support (Ubuntu) → qemu-kvm (Ubuntu)
Changed in qemu-kvm (Ubuntu):
assignee: nobody → Loïc Minier (lool)
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.