[Bug 1949102] Re: Preinstalled amd64 images cannot upgrade grub.cfg on boot partition
Ćukasz Zemczak
1949102 at bugs.launchpad.net
Thu Oct 28 16:19:38 UTC 2021
** Description changed:
- This is a design flaw that needs to be fixed. More detailed description
- coming soon.
+ [Impact]
+
+ This is a design flaw that needs to be fixed. Basically we inherited the
+ design from old Ubuntu Core devices that the boot configuration is
+ prepared in the gadget and - therefore - is quite static. Newer Core
+ devices have mechanisms for updating boot assets, while classic
+ images... well, we never actually thought about it.
+
+ Now that we have a valid use-case for preinstalled amd64 images, we
+ actually need to make sure we can update at least the grub config
+ somehow. To do this, we introduce the hook from preinstalled desktop
+ images from groovy+ with an additional change to generate the grub.cfg
+ by using `update-grub2`. We switch the design to now only shipping a
+ blanket grub.cfg on the boot partition, pointing to the rootfs one -
+ which can be freely updated via existing mechanisms.
+
+ While adding the hook, we also fix a few other technical dept - like
+ adding a swap file and making the rootfs resizable. Everything that we
+ already had for our Pi images in groovy+.
+
+ [Test Case]
+
+ Build an image with -proposed enabled, make sure that it still boots as
+ before on Intel IOT platforms. Try booting the image on an USB when
+ there are other USB drives present on the device.
+
+ [Regression Potential]
+
+ This can basically only regress intel-iotg desktop images, which is what
+ we want to fix right now. But it requires for the images to go through
+ the whole testing cycle again, to make sure that everything still works
+ - since we're basically switching to a completely new grub.cfg. The test
+ case should be sufficient to make sure there are no regressions.
** Also affects: livecd-rootfs (Ubuntu Focal)
Importance: Undecided
Status: New
** Changed in: livecd-rootfs (Ubuntu Focal)
Importance: Undecided => Critical
** Changed in: livecd-rootfs (Ubuntu Focal)
Status: New => In Progress
** Summary changed:
- Preinstalled amd64 images cannot upgrade grub.cfg on boot partition
+ Preinstalled amd64 images cannot upgrade grub.cfg on boot partition + technical dept
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to livecd-rootfs in Ubuntu.
https://bugs.launchpad.net/bugs/1949102
Title:
Preinstalled amd64 images cannot upgrade grub.cfg on boot partition +
technical dept
Status in livecd-rootfs package in Ubuntu:
New
Status in livecd-rootfs source package in Focal:
In Progress
Bug description:
[Impact]
This is a design flaw that needs to be fixed. Basically we inherited
the design from old Ubuntu Core devices that the boot configuration is
prepared in the gadget and - therefore - is quite static. Newer Core
devices have mechanisms for updating boot assets, while classic
images... well, we never actually thought about it.
Now that we have a valid use-case for preinstalled amd64 images, we
actually need to make sure we can update at least the grub config
somehow. To do this, we introduce the hook from preinstalled desktop
images from groovy+ with an additional change to generate the grub.cfg
by using `update-grub2`. We switch the design to now only shipping a
blanket grub.cfg on the boot partition, pointing to the rootfs one -
which can be freely updated via existing mechanisms.
While adding the hook, we also fix a few other technical dept - like
adding a swap file and making the rootfs resizable. Everything that we
already had for our Pi images in groovy+.
[Test Case]
Build an image with -proposed enabled, make sure that it still boots
as before on Intel IOT platforms. Try booting the image on an USB when
there are other USB drives present on the device.
[Regression Potential]
This can basically only regress intel-iotg desktop images, which is
what we want to fix right now. But it requires for the images to go
through the whole testing cycle again, to make sure that everything
still works - since we're basically switching to a completely new
grub.cfg. The test case should be sufficient to make sure there are no
regressions.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1949102/+subscriptions
More information about the foundations-bugs
mailing list