[pkg-go] Bug#1027787: debos: Unusable with recipes using bookworm suite (or newer)
Christopher Obbard
chris.obbard at collabora.com
Thu Jan 5 15:50:48 GMT 2023
Hi Andreas,
On Thu, 2023-01-05 at 00:31 +0100, Andreas Henriksson wrote:
> Control: tags -1 + upstream
> Control: forwarded -1 https://github.com/go-debos/debos/pull/390
>
> Hello,
>
> On Tue, Jan 03, 2023 at 11:34:27AM +0100, Andreas Henriksson wrote:
> > Package: debos
> > Version: 1.1.1-2
> > Severity: important
> >
> > Dear Maintainer,
> >
> > Using debos to build a recipe that uses bookworm or newer suite
> > gives a mysterious apt error that suggest running apt --fix-broken
> > install.
> >
> > This is a symptom of the workaround that was applied for
> > https://github.com/go-debos/debos/issues/361
> > "New debootstrap is unable to bootstrap pre-bookworm debian
> > derivatives"
> [...]
>
> For the record, this first problem was handled upstream at
> https://github.com/go-debos/debos/pull/390
>
> [...]
> > 2023/01/03 01:19:51 apt | Setting up linux-image-6.0.0-6-arm64
> > (6.0.12-1) ...
> > 2023/01/03 01:19:55 apt | I: /vmlinuz.old is now a symlink to
> > boot/vmlinuz-6.0.0-6-arm64
> > 2023/01/03 01:19:55 apt | I: /initrd.img.old is now a symlink to
> > boot/initrd.img-6.0.0-6-arm64
> > 2023/01/03 01:19:55 apt | I: /vmlinuz is now a symlink to
> > boot/vmlinuz-6.0.0-6-arm64
> > 2023/01/03 01:19:55 apt | I: /initrd.img is now a symlink to
> > boot/initrd.img-6.0.0-6-arm64
> > 2023/01/03 01:19:56 apt | /etc/kernel/postinst.d/initramfs-tools:
> > 2023/01/03 01:19:56 apt | update-initramfs: Generating
> > /boot/initrd.img-6.0.0-6-arm64
> > 2023/01/03 01:19:56 apt | W: No zstd in /usr/bin:/sbin:/bin, using
> > gzip
> > 2023/01/03 01:30:32 apt | Container root terminated by signal KILL.
> > Powering off.
> > open /tmp/fakemachine-194296958/result: no such file or directory
>
> This second problem turned out to be because the default 2Gb memory
> setting for fakemachine/qemu is apparently no longer enough to run
> update-initramfs against the bookworm arm64 kernel modules in
> linux-image-arm64.
>
> Using `debos --memory=4Gb ...` resolved this issue for me.
>From previous mails I take it you're building
https://github.com/go-debos/debos-recipes/blob/main/rpi64/debimage-rpi64.yaml#L50
with suite set to bookworm ?
Ideally we'd like to keep to 2gb by default since we try to use cloud
runners with small RAM to keep costs down. By default debos creates a
tmpfs to store the temporary rootfs. Once the filesystem has been
deployed to the image, Debos works on the image (stored on disk)
directly rather than a tmpfs. Perhaps you could open an issue upstream
to discuss changing the default memory to 4gb ?
I think the problem with that sample recipe is that it installs the
kernel (thus building the initramfs) _before_ it has been deployed to
an image using filesystem-deploy.
To fix this recipe, you should instead move the kernel install to after
the filesystem-deploy action. I'd happily accept a PR for that.
Also, those recipes are quite outdated and unmaintained so please take
them with a pinch of salt.
Thanks,
Chris
>
> Maybe it would be useful to consider bumping the default memory
> setting?
>
> Regards,
> Andreas Henriksson
>
More information about the Pkg-go-maintainers
mailing list