Hibinit-agent configures GRUB referring to root partition as resume=/dev/root
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ec2-hibinit-agent (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
Won't Fix
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Cosmic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* The kernel can't find /dev/root when booting initramfsless thus can't resume from hibernation
* The fix sets resume=... to the same identifier passed as root=... on the kernel command when the swap file is found to be on /dev/root.
[Test Case]
* (Install and) start hibinit-agent on an EC2 instance supporting hibernation, then when it started successfully verify the grub configuration:
$ grep -m 1 root= /boot/grub/grub.cfg
linux /boot/vmlinuz-
resume=... must not refer to /dev/root with the default configuration, but to a block device known to the kernel without using initramfs.
[Regression Potential]
* Hibinit-agent may parse the grub configuration file incorrectly and set a wrong partition to resume from. Since the fix is quite small and the number of variants of grub configurations is also small this regression is unlikely.
This bug was fixed in the package ec2-hibinit-agent - 1.0.0-0ubuntu3
---------------
ec2-hibinit-agent (1.0.0-0ubuntu3) disco; urgency=medium
* Refer to root partition in resume=... the same way as GRUB2 refers to it
(LP: #1818150)
-- Balint Reczey <email address hidden> Thu, 28 Feb 2019 23:25:57 +0100