Closed kennethso168 closed 6 months ago
The 4th way out would be to build using docker on any host (VM or otherwise), right? Building with docker is my preferred build method. It works on my Mac and should work on your Debian host too.
Yes sure that will be. But I still prefer to build directly on the VM as the docker image could be quite large.
I'll take it more like the 3rd way out and build again with an Ubuntu VM instead
I'll close the issue for now. Maybe consider adding this info to the README?
Hi there. I tried to build the image on a Debian Bookworm VM (as I prefer using Debian instead of Ubuntu). However, there was an error during the build process and the final image could not be successfully booted.
The full build log is attached here: build_log.txt
I noticed that there was an error saying "No space left on device"
I tested the outputted
*.img
image in a VM on Proxmox. It resulted in a kernel panic:I tried building with previous commits. 93143b3c316658cb5bb981b20d7e0a8b2be757a5 worked. The 'No space left on device' error appeared with 5d91408db3b731bfbe408aa9e07941a8bd5cce76.
I also increased
GRUBSIZE
to 25 and addeddf -h
commands before and after the copy command inbuild.sh
on master to diagnose the issue. The image was built successfully and bootable. Here are thedf -h
outputs:The GRUB image occupies around 26M. Without increasing GRUBSIZE, the whole loop device is only around 41M in size which is too small.
I saw that in 5d91408db3b731bfbe408aa9e07941a8bd5cce76, you've changed from downloading Ubuntu's deb to a direct install (should be from system GRUB package). I also believed that you should have built successfully on Ubuntu with this change and tested that the image built with Ubuntu works. Therefore, I believe that this should be a Debian-specific problem. Maybe Debian's GRUB is somehow larger than Ubuntu's
I think that there are three ways out:
GRUBSIZE
from 15 to 25. The final image will increase from around 41MB to 51MB in size. I believe that this should work as the size limit of the PBA image should be 128MB, according to https://github.com/Drive-Trust-Alliance/sedutil/issues/293.@Jip-Hop What do you think?