why signed kernels call update-grub?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Won't Fix
|
Medium
|
Andy Whitcroft |
Bug Description
Looking at the postrm of linux-signed-
$ cat linux-signed-
#!/bin/sh -e
kernel=
case "$0-$1" in
*.postinst-
rm -f /boot/$
cp /boot/$kernel /boot/$
sbattach --attach /usr/lib/
if which update-grub >/dev/null 2>&1; then
update-grub || true
fi
;;
*.postrm-remove)
rm -f /boot/$
if which update-grub >/dev/null 2>&1; then
update-grub || true
fi
;;
esac
Why does it call update-grub direct instead of calling into /etc/kernel like the normal kernel packages do?
In essence on amd64 the amount of calls to update-grub is duplicated on both installation and removal of kernel packages, since -signed version is installed by default. Why can't we just install signed version and make it modify kernel image in-place?
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: linux-signed-
ProcVersionSign
Uname: Linux 3.16.0-25-generic x86_64
ApportVersion: 2.14.7-0ubuntu8
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
CurrentDesktop: Unity
Date: Tue Nov 25 23:08:41 2014
HibernationDevice: RESUME=
InstallationDate: Installed on 2012-01-12 (1048 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130318)
MachineType: Gigabyte Technology Co., Ltd. To be filled by O.E.M.
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
linux-firmware 1.138
RfKill:
SourcePackage: linux
SystemImageInfo:
current build number: 0
device name: ?
channel: daily
last update: Unknown
UpgradeStatus: No upgrade log present (probably fresh install)
WifiSyslog:
dmi.bios.date: 08/13/2013
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: F18g
dmi.board.
dmi.board.name: Z77X-D3H
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: To be filled by O.E.M.
dmi.product.
dmi.sys.vendor: Gigabyte Technology Co., Ltd.
Changed in linux (Ubuntu): | |
importance: | Undecided → Medium |
tags: | added: kernel-da-key |
tags: | added: kernel-key |
tags: | removed: kernel-key |
Changed in linux (Ubuntu): | |
milestone: | ubuntu-15.01 → ubuntu-15.02 |
Changed in linux (Ubuntu): | |
milestone: | ubuntu-15.02 → ubuntu-15.03 |
This change was made by a bot.