[Kernel-packages] [Bug 1636701] Re: Removing kernel package triggers DKMS build

2016-12-28 Thread Aron Xu
The script is triggered but exit without doing anything.

** Changed in: dkms (Ubuntu)
   Status: New => Invalid

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to dkms in Ubuntu.
https://bugs.launchpad.net/bugs/1636701

Title:
  Removing kernel package triggers DKMS build

Status in dkms package in Ubuntu:
  Invalid

Bug description:
  I'm filing this against dkms 2.2.0.3-2ubuntu11.2 in Ubuntu Xenial,
  although the issue may come down to a different package.

  I issued an "apt-get --purge autoremove" command to clear out some old
  kernel packages, and the command took several minutes to complete due
  to kernel module builds taking place during the process. Obviously, no
  builds should be occurring, because the associated kernels are being
  removed!

  Here is the terminal log of the command. Note the "run-parts:
  executing /etc/kernel/postinst.d/dkms ..." lines:

  # apt-get --purge autoremove
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  The following packages will be REMOVED:
    linux-image-extra-4.4.0-21-generic* linux-image-extra-4.4.0-22-generic*
    linux-image-extra-4.4.0-24-generic* linux-image-extra-4.4.0-28-generic*
    snap-confine* ubuntu-core-launcher*
  0 upgraded, 0 newly installed, 6 to remove and 0 not upgraded.
  After this operation, 648 MB disk space will be freed.
  Do you want to continue? [Y/n]
  (Reading database ... 413863 files and directories currently installed.)
  Removing linux-image-extra-4.4.0-21-generic (4.4.0-21.37) ...
  run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-21-generic 
/boot/vmlinuz-4.4.0-21-generic
  run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-21-generic 
/boot/vmlinuz-4.4.0-21-generic
  run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-21-generic 
/boot/vmlinuz-4.4.0-21-generic
  update-initramfs: Generating /boot/initrd.img-4.4.0-21-generic
  W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
  run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-21-generic 
/boot/vmlinuz-4.4.0-21-generic
  run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 
4.4.0-21-generic /boot/vmlinuz-4.4.0-21-generic
  run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-21-generic 
/boot/vmlinuz-4.4.0-21-generic
  run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-21-generic 
/boot/vmlinuz-4.4.0-21-generic
  Generating grub configuration file ...
  Found linux image: /boot/vmlinuz-4.4.0-45-generic
  Found initrd image: /boot/initrd.img-4.4.0-45-generic
  Found linux image: /boot/vmlinuz-4.4.0-43-generic
  Found initrd image: /boot/initrd.img-4.4.0-43-generic
  Found linux image: /boot/vmlinuz-4.4.0-28-generic
  Found initrd image: /boot/initrd.img-4.4.0-28-generic
  Found linux image: /boot/vmlinuz-4.4.0-24-generic
  Found initrd image: /boot/initrd.img-4.4.0-24-generic
  Found linux image: /boot/vmlinuz-4.4.0-22-generic
  Found initrd image: /boot/initrd.img-4.4.0-22-generic
  Found linux image: /boot/vmlinuz-4.4.0-21-generic
  Found initrd image: /boot/initrd.img-4.4.0-21-generic
  Found memtest86+ image: /boot/memtest86+.elf
  Found memtest86+ image: /boot/memtest86+.bin
  Setting default keymap configuration:
    model   = pc104
    layout  = us
    variant = dvorak
    option  =
  Unknown keyboard scan code 0x54
  Unknown keyboard scan code 0x65
  Unknown keyboard scan code 0x7f
  Unknown keyboard scan code 0x54
  Unknown keyboard scan code 0x65
  Unknown keyboard scan code 0x7f
  Unknown keyboard scan code 0x54
  Unknown keyboard scan code 0x65
  Unknown keyboard scan code 0x7f
  done
  Purging configuration files for linux-image-extra-4.4.0-21-generic 
(4.4.0-21.37) ...
  Removing linux-image-extra-4.4.0-22-generic (4.4.0-22.40) ...
  run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-22-generic 
/boot/vmlinuz-4.4.0-22-generic
  run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-22-generic 
/boot/vmlinuz-4.4.0-22-generic
  run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-22-generic 
/boot/vmlinuz-4.4.0-22-generic
  update-initramfs: Generating /boot/initrd.img-4.4.0-22-generic
  W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
  run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-22-generic 
/boot/vmlinuz-4.4.0-22-generic
  run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 
4.4.0-22-generic /boot/vmlinuz-4.4.0-22-generic
  run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-22-generic 
/boot/vmlinuz-4.4.0-22-generic
  run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-22-generic 
/boot/vmlinuz-4.4.0-22-generic
  Generating grub configuration file ...
  Found linux image: /boot/vmlinuz-4.4.0-45-generic
  Found initrd image: /boot/initrd.img-4.4.0-45-generic
  Found linux image: /boot/vmlinuz-4.4.0-43-generic
  Found initrd image: /boot/initrd.img-4.4.0-43-generic
  Found linux image: 

[Kernel-packages] [Bug 1636701] Re: Removing kernel package triggers DKMS build

2016-10-25 Thread Daniel Richard G.
I should point out, the update-initramfs invocations should also not be
happening for kernel packages being removed.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to dkms in Ubuntu.
https://bugs.launchpad.net/bugs/1636701

Title:
  Removing kernel package triggers DKMS build

Status in dkms package in Ubuntu:
  New

Bug description:
  I'm filing this against dkms 2.2.0.3-2ubuntu11.2 in Ubuntu Xenial,
  although the issue may come down to a different package.

  I issued an "apt-get --purge autoremove" command to clear out some old
  kernel packages, and the command took several minutes to complete due
  to kernel module builds taking place during the process. Obviously, no
  builds should be occurring, because the associated kernels are being
  removed!

  Here is the terminal log of the command. Note the "run-parts:
  executing /etc/kernel/postinst.d/dkms ..." lines:

  # apt-get --purge autoremove
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  The following packages will be REMOVED:
    linux-image-extra-4.4.0-21-generic* linux-image-extra-4.4.0-22-generic*
    linux-image-extra-4.4.0-24-generic* linux-image-extra-4.4.0-28-generic*
    snap-confine* ubuntu-core-launcher*
  0 upgraded, 0 newly installed, 6 to remove and 0 not upgraded.
  After this operation, 648 MB disk space will be freed.
  Do you want to continue? [Y/n]
  (Reading database ... 413863 files and directories currently installed.)
  Removing linux-image-extra-4.4.0-21-generic (4.4.0-21.37) ...
  run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-21-generic 
/boot/vmlinuz-4.4.0-21-generic
  run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-21-generic 
/boot/vmlinuz-4.4.0-21-generic
  run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-21-generic 
/boot/vmlinuz-4.4.0-21-generic
  update-initramfs: Generating /boot/initrd.img-4.4.0-21-generic
  W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
  run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-21-generic 
/boot/vmlinuz-4.4.0-21-generic
  run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 
4.4.0-21-generic /boot/vmlinuz-4.4.0-21-generic
  run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-21-generic 
/boot/vmlinuz-4.4.0-21-generic
  run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-21-generic 
/boot/vmlinuz-4.4.0-21-generic
  Generating grub configuration file ...
  Found linux image: /boot/vmlinuz-4.4.0-45-generic
  Found initrd image: /boot/initrd.img-4.4.0-45-generic
  Found linux image: /boot/vmlinuz-4.4.0-43-generic
  Found initrd image: /boot/initrd.img-4.4.0-43-generic
  Found linux image: /boot/vmlinuz-4.4.0-28-generic
  Found initrd image: /boot/initrd.img-4.4.0-28-generic
  Found linux image: /boot/vmlinuz-4.4.0-24-generic
  Found initrd image: /boot/initrd.img-4.4.0-24-generic
  Found linux image: /boot/vmlinuz-4.4.0-22-generic
  Found initrd image: /boot/initrd.img-4.4.0-22-generic
  Found linux image: /boot/vmlinuz-4.4.0-21-generic
  Found initrd image: /boot/initrd.img-4.4.0-21-generic
  Found memtest86+ image: /boot/memtest86+.elf
  Found memtest86+ image: /boot/memtest86+.bin
  Setting default keymap configuration:
    model   = pc104
    layout  = us
    variant = dvorak
    option  =
  Unknown keyboard scan code 0x54
  Unknown keyboard scan code 0x65
  Unknown keyboard scan code 0x7f
  Unknown keyboard scan code 0x54
  Unknown keyboard scan code 0x65
  Unknown keyboard scan code 0x7f
  Unknown keyboard scan code 0x54
  Unknown keyboard scan code 0x65
  Unknown keyboard scan code 0x7f
  done
  Purging configuration files for linux-image-extra-4.4.0-21-generic 
(4.4.0-21.37) ...
  Removing linux-image-extra-4.4.0-22-generic (4.4.0-22.40) ...
  run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-22-generic 
/boot/vmlinuz-4.4.0-22-generic
  run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-22-generic 
/boot/vmlinuz-4.4.0-22-generic
  run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-22-generic 
/boot/vmlinuz-4.4.0-22-generic
  update-initramfs: Generating /boot/initrd.img-4.4.0-22-generic
  W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
  run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-22-generic 
/boot/vmlinuz-4.4.0-22-generic
  run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 
4.4.0-22-generic /boot/vmlinuz-4.4.0-22-generic
  run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-22-generic 
/boot/vmlinuz-4.4.0-22-generic
  run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-22-generic 
/boot/vmlinuz-4.4.0-22-generic
  Generating grub configuration file ...
  Found linux image: /boot/vmlinuz-4.4.0-45-generic
  Found initrd image: /boot/initrd.img-4.4.0-45-generic
  Found linux image: /boot/vmlinuz-4.4.0-43-generic
  Found initrd image: /boot/initrd.img-4.4.0-43-generic
  Found linux image: