[Kernel-packages] [Bug 1462596] Re: apt-get autoremove takes quadratically long

2016-09-09 Thread Jarno Suni
The aforementioned `sudo chmod -x` command has the side-effect that update-grub will be left non-executable in case of power cut. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1462596

[Kernel-packages] [Bug 1462596] Re: apt-get autoremove takes quadratically long

2016-09-08 Thread Jarno Suni
Oh, this is the script that is used for updating grub in conjunction with kernel removal: /etc/kernel/postrm.d/zz-update-grub Anyway, OP meant regenerating the initrd, which is handled by initramfs-tools scripts. -- You received this bug notification because you are a member of Kernel

[Kernel-packages] [Bug 1462596] Re: apt-get autoremove takes quadratically long

2016-09-08 Thread Jarno Suni
Oh, you can do something now: you can set update-grub executable (found by command `which update-grub`) not executable by `sudo chmod -x` temporarily, and then remove the kernels, and then restore the state of the file by `sudo chmod +x` and finally run `sudo update-grub` manually. This is because

[Kernel-packages] [Bug 1462596] Re: apt-get autoremove takes quadratically long

2016-09-08 Thread Jarno Suni
I think this script runs update-grub after every remove of kernel: /etc/kernel/postinst.d/zz-update-grub. Would it be possible to use an environment variable that makes it possible to skip that post- installation script, and run update-grub manually after last removal, if wanted? -- You received

[Kernel-packages] [Bug 1462596] Re: apt-get autoremove takes quadratically long

2015-08-01 Thread Adam Conrad
** Package changed: apt (Ubuntu) = linux (Ubuntu) ** Changed in: linux (Ubuntu) Status: New = Confirmed ** Also affects: initramfs-tools (Ubuntu) Importance: Undecided Status: New ** Changed in: initramfs-tools (Ubuntu) Status: New = Confirmed -- You received this bug