sedunlocksrv-pba icon indicating copy to clipboard operation
sedunlocksrv-pba copied to clipboard

Building fails on Ubuntu 22.04 when SSH is enabled

Open kennethso168 opened this issue 3 months ago • 2 comments

I've created an Ubuntu VM for building the image as per #20 .

System:
  Kernel: 5.15.0-100-generic x86_64 bits: 64 compiler: gcc v: 11.4.0 Console: pty pts/0
    Distro: Ubuntu 22.04.4 LTS (Jammy Jellyfish)
Machine:
  Type: Kvm System: QEMU product: Standard PC (i440FX + PIIX, 1996) v: pc-i440fx-8.1
    serial: <superuser required>
  Mobo: N/A model: N/A serial: N/A BIOS: SeaBIOS
    v: rel-1.16.2-0-gea1b7a073390-prebuilt.qemu.org date: 04/01/2014

I've tested that building with sudo SEDUTIL_FORK="ChubbyAnt" ./build.sh works.

However, when I put my authorized_keys file in the repo and ran again with sudo SEDUTIL_FORK="ChubbyAnt" ./build.sh SSH, I came across the following not enough space error:

Installation finished. No error reported.
+ cat
+ cp -r /home/kenneth/sedunlocksrv-pba/img.dnbBJX/fs/boot /home/kenneth/sedunlocksrv-pba/img.dnbBJX/img/
cp: error writing '/home/kenneth/sedunlocksrv-pba/img.dnbBJX/img/boot/corepure64.gz': No space left on device
+ cleanup

Doing the same debugging steps as in #20 (setting GRUBSIZE=25 instead of 15, adding df -h before and after the cp). I think it was only short of a little bit space (maybe around ~0.1MB):

+ df -h
Filesystem      Size  Used Avail Use% Mounted on
tmpfs            96M 1004K   95M   2% /run
/dev/sda1       7.6G  2.7G  5.0G  35% /
tmpfs           479M     0  479M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
/dev/sda15      105M  6.1M   99M   6% /boot/efi
tmpfs            96M  4.0K   96M   1% /run/user/1000
/dev/loop3p1     50M   14M   36M  28% /home/kenneth/sedunlocksrv-pba/img.dKkLHd/img
+ cp -r /home/kenneth/sedunlocksrv-pba/img.dKkLHd/fs/boot /home/kenneth/sedunlocksrv-pba/img.dKkLHd/img/
+ df -h
Filesystem      Size  Used Avail Use% Mounted on
tmpfs            96M 1004K   95M   2% /run
/dev/sda1       7.6G  2.7G  5.0G  35% /
tmpfs           479M     0  479M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
/dev/sda15      105M  6.1M   99M   6% /boot/efi
tmpfs            96M  4.0K   96M   1% /run/user/1000
/dev/loop3p1     50M   40M  9.9M  81% /home/kenneth/sedunlocksrv-pba/img.dKkLHd/img
+ sync
+ umount /home/kenneth/sedunlocksrv-pba/img.dKkLHd/img

Maybe the GRUB packages recently got a little bit larger in Ubuntu? Should we increase the GRUBSIZE?

kennethso168 avatar Mar 14 '24 03:03 kennethso168