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
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
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
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
** 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
5 matches
Mail list logo