zram-config runs even after uninstalled, needs purge
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zram-config (Ubuntu) |
Confirmed
|
High
|
Unassigned |
Bug Description
zram-config, even after uninstalled, leaves behind the /etc/init/
This file, being the only actual functional file in zram-config, and the only thing needed by Upstart to configure zram swaps, doesn't check whether the zram-config package is installed before merrily continuing as if zram-config were actually in the system.
I suggest to move some of the /etc/init/
If they're absent, this means package is uninstalled and zram-config should exit silently.
It'd be nice if, in the process, some configuration moved into /etc/default/
Steps to reproduce:
$ sudo apt-get install zram-config
$ cat /proc/swaps
(see zram swap(s))
$ sudo apt-get remove zram-config
$ sudo reboot
(wait for reboot and open terminal again)
$ cat /proc/swaps
(see zram swap(s) still there when they shouldn't)
The workaround is to type
dpkg --purge zram-config
Which finally removes the upstart script and stops zram swaps from being configured at boot.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: zram-config 0.1
ProcVersionSign
Uname: Linux 3.2.0-29-
ApportVersion: 2.0.1-0ubuntu12
Architecture: amd64
Date: Mon Aug 13 20:06:46 2012
Dependencies:
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
PackageArchitec
ProcEnviron:
LANGUAGE=
TERM=xterm
PATH=(custom, no user)
LANG=pt_BR.UTF-8
SHELL=/bin/bash
SourcePackage: zram-config
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in zram-config (Ubuntu): | |
importance: | Undecided → High |
Confirmed on Quantal