[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2021-02-15 Thread Michael Vogt
This is fixed now. ** Changed in: snapd Status: In Progress => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1878541 Title: Grub fails to load kernel from squashfs if mem < 1500

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-10-14 Thread Matthieu Clemenceau
** Tags added: fr-167 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1878541 Title: Grub fails to load kernel from squashfs if mem < 1500mb To manage notifications about this bug go to: https://bugs

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-08-31 Thread Launchpad Bug Tracker
This bug was fixed in the package grub2 - 2.04-1ubuntu26.3 --- grub2 (2.04-1ubuntu26.3) focal; urgency=medium * 2.04-1ubuntu27 and 2.04-1ubuntu28 folded together for focal * debian/patches/ubuntu-flavour-order.patch: - Add a (hidden) GRUB_FLAVOUR_ORDER setting that can mark ce

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-08-27 Thread Dimitri John Ledkov
Booted existing core20 vm with old grub2. rss went up from 128264 to 422636, after executing loopback loop1 (hd0,gpt2)/snaps/pc-kernel_565.snap. Replacing grubx64.efi with the one from grub-efi- amd64-signed_1.142.5+2.04-1ubuntu26.3_amd64.deb. loopback command was very quick, and rss went up fro

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-08-18 Thread Łukasz Zemczak
Hello Michael, or anyone else affected, Accepted grub2 into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/grub2/2.04-1ubuntu26.3 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wik

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-08-12 Thread Launchpad Bug Tracker
This bug was fixed in the package grub2 - 2.04-1ubuntu28 --- grub2 (2.04-1ubuntu28) groovy; urgency=medium * Ensure that grub-multi-install can always find templates (LP: #1879948) * Fix changelog entries for security update -- Julian Andres Klode Mon, 10 Aug 2020 15:07:29 +02

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-08-06 Thread Launchpad Bug Tracker
** Merge proposal linked: https://code.launchpad.net/~juliank/grub/+git/ubuntu/+merge/388791 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1878541 Title: Grub fails to load kernel from squashfs i

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-07-30 Thread Launchpad Bug Tracker
** Merge proposal linked: https://code.launchpad.net/~ubuntu-core-dev/grub/+git/ubuntu/+merge/388381 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1878541 Title: Grub fails to load kernel from sq

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-06-22 Thread Julian Andres Klode
groovy bileto: https://bileto.ubuntu.com/#/ticket/4093 focal bileto: https://bileto.ubuntu.com/#/ticket/4109 ** Changed in: grub2 (Ubuntu Focal) Status: New => In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https:/

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-06-22 Thread Samuele Pedroni
** Changed in: snapd Status: New => In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1878541 Title: Grub fails to load kernel from squashfs if mem < 1500mb To manage notifications a

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-06-15 Thread Dimitri John Ledkov
** Description changed: + [Impact] + + * loopback command uses too much ram, resulting in OOM on small + machines + + [Test Case] + + * Download & Copy kernel.snap from amd64 pc image onto ESP partitition + + * Boot VM with secureboot, uefi and tpm and drop into grub recovery + shell + +

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-06-10 Thread Julian Andres Klode
An easy minimal test case would be appreciated. I guess I could just put grub into a directory and then tftp boot that inside qemu, and add a large file in there or something? (or use -vfat on a dir) ** Changed in: grub2 (Ubuntu Groovy) Status: In Progress => Fix Committed -- You received

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-06-10 Thread Julian Andres Klode
Groovy testing in https://launchpad.net/~ci-train-ppa- service/+archive/ubuntu/4093 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1878541 Title: Grub fails to load kernel from squashfs if mem < 1500

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-06-10 Thread Launchpad Bug Tracker
** Merge proposal linked: https://code.launchpad.net/~juliank/grub/+git/ubuntu/+merge/385521 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1878541 Title: Grub fails to load kernel from squashfs i

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-06-10 Thread Launchpad Bug Tracker
** Merge proposal linked: https://code.launchpad.net/~juliank/grub/+git/ubuntu/+merge/385358 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1878541 Title: Grub fails to load kernel from squashfs i

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-06-10 Thread Julian Andres Klode
** Changed in: grub2 (Ubuntu Groovy) Status: Triaged => In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1878541 Title: Grub fails to load kernel from squashfs if mem < 1500mb To ma

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-06-01 Thread Claudio Matsuoka
Chris Coulson's patch should also solve the problem that breaks install on the Thinkcentre m920s with TPM enabled. The last printed message when booting with grub debug enabled is the type of the loopback file, and nothing happens after that. It finishes installing if you rmmod tpm. -- You receiv

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-05-22 Thread Julian Andres Klode
The patch looks right to me. ** Changed in: grub2 (Ubuntu Groovy) Status: Confirmed => Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1878541 Title: Grub fails to load kernel from squ

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-05-21 Thread Brian Murray
** Tags removed: rls-gg-incoming -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1878541 Title: Grub fails to load kernel from squashfs if mem < 1500mb To manage notifications about this bug go to: h

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-05-21 Thread Francis Ginther
** Tags added: id-5ec540751c801c607c3d8c33 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1878541 Title: Grub fails to load kernel from squashfs if mem < 1500mb To manage notifications about this bu

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-05-20 Thread Ubuntu Foundations Team Bug Bot
** Tags added: patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1878541 Title: Grub fails to load kernel from squashfs if mem < 1500mb To manage notifications about this bug go to: https://bugs.

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-05-20 Thread Chris Coulson
Hi Colin, I wouldn't mind hearing your thoughts on the previous comment. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1878541 Title: Grub fails to load kernel from squashfs if mem < 1500mb To mana

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-05-20 Thread Chris Coulson
I did a bit of digging on this, and it seems to happen because the grub verifier module reads in to memory the entire contents of any file that is opened via grub_file_open without the GRUB_FILE_TYPE_SKIP_SIGNATURE flag or any file which doesn't have a type of GRUB_FILE_TYPE_SIGNATURE or GRUB_FILE_

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-05-20 Thread Julian Andres Klode
** Also affects: grub2 (Ubuntu Focal) Importance: Undecided Status: New ** Also affects: grub2 (Ubuntu Groovy) Importance: High Status: Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchp

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-05-18 Thread Dimitri John Ledkov
seems to work fine under BIOS, loopback loop does not appear to be using up any more data. It feels like a bug in EFI memory page allocation, which never get released. And/or max_agglomerate implementation under EFI. -- You received this bug notification because you are a member of Ubuntu Bugs,

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-05-18 Thread Dimitri John Ledkov
The minimum reproducer i have is this: 1) Fetch UC20 image from http://cdimage.ubuntu.com/ubuntu-core/20/edge/pending/ 2) boot to grub cmdline prompt 2) execute loopback loop (hd0,gpt3)/pc-kernel_502.snap (or use tabcompletion for the right kernel snap) Equivalent command on UC18 image (with bi

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-05-18 Thread Dimitri John Ledkov
the kernel snap sizes, are roughly similar. 204M for uc18 284M for uc20 1.4x larger -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1878541 Title: Grub fails to load kernel from squashfs if mem < 15

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-05-18 Thread Dimitri John Ledkov
UC18 size: 8100kernel.img 3808initrd.img ~12MB, loaded from .snap, on ext4 UC20 size: 48196 kernel.efi ~50MB, loaded from .snap, on fat More than 4x larger -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.laun

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-05-18 Thread Dimitri John Ledkov
With unpacked kernel.efi boot to rdinit=/bin/sh res usage is 456756 so it feels as if (loop) device is not freed by grub / shim / firmware. Next up is to try to play with things interactively in grub shell, to try to figure out which commands cause memory to baloon. Or like see if it can be free

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-05-18 Thread Dimitri John Ledkov
lzo compression ended up being more 797568 Also, it feels like we try to read the _whole_ of the snap prior to loading it. As if, measurement of the whole squashfs / partition is taken. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-05-18 Thread Dimitri John Ledkov
Using sorting didn't change peak rss much, it's at 742524 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1878541 Title: Grub fails to load kernel from squashfs if mem < 1500mb To manage notification

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-05-18 Thread Dimitri John Ledkov
Starting uc20 in a virsh domain, whilst controlling for peak memory usage, and modifying command line to boot to "rdinit=/bin/sh" => meaning boot to unpacked initrd and start busybox shell without doing anything else. The rss memory achieved to get to that point was 744684, out of 2033104 availabl

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-05-18 Thread Dimitri John Ledkov
Note, the Testscript specifies 512MB which is quite small. Previously, we wanted to ensure that amd64 reference target is "a typical NUC with TPMv2.0 and secureboot", at the time typical NUC models had 2GB of ram. What is the target minimum ram usage we must achieve? -- You received this bug no

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-05-18 Thread Łukasz Zemczak
** Changed in: snapd Importance: Undecided => High -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1878541 Title: Grub fails to load kernel from squashfs if mem < 1500mb To manage notifications ab

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-05-18 Thread Michael Vogt
** Changed in: grub2 (Ubuntu) Importance: Undecided => High -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1878541 Title: Grub fails to load kernel from squashfs if mem < 1500mb To manage notific

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-05-15 Thread Brian Murray
** Tags added: uc20 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1878541 Title: Grub fails to load kernel from squashfs if mem < 1500mb To manage notifications about this bug go to: https://bugs.l

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-05-14 Thread Michael Vogt
Dimitri suggested to sort the squashfs with the "-sort" option. I created the attached test for this but it has no effect for me. ** Attachment added: "Testscript" https://bugs.launchpad.net/snapd/+bug/1878541/+attachment/5371585/+files/lp1878541-test.sh -- You received this bug notification

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-05-14 Thread Dimitri John Ledkov
** Description changed: Booting a uc20 system fails early currently. The image used was: http://cdimage.ubuntu.com/ubuntu-core/20/beta/20200513.2/ Attached is a screenshot of the debug output. This appears to be some sort of regression with grub in 20.04 or with UEFI grub - this us

[Bug 1878541] Re: Grub fails to load kernel from squashfs if mem < 1500mb

2020-05-14 Thread Michael Vogt
** Also affects: grub2 (Ubuntu) Importance: Undecided Status: New ** Tags added: rls-gg-incoming -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1878541 Title: Grub fails to load kernel fro