The attached script now tries to detect, whether it is called in
conjunction with kernel installation or in conjunction with kernel
removal. It uses dpkg-query for that. Maybe it could be done more
easilly by giving the information to the script as a command-line
argument by apt-get? The script also contains minor improvements. Does
not use apt-mark anymore, unlike my previous script; apt-mark is a bit
slow and unnecessary IMO. BTW Isn't it excessive that the script checks
for kfreebsd and gnumach kernels?

** Attachment added: "Fixed again /etc/kernel/postinst.d/apt-auto-removal 
script"
   
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1440608/+attachment/4551164/+files/apt-auto-removal

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1440608

Title:
  /etc/kernel/postinst.d/apt-auto-removal wants to remove all kernels
  except the latest one

To manage notifications about this bug go to:
https://bugs.launchpad.net/hundredpapercuts/+bug/1440608/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to