Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Disk full" error when building GPT, default diskpart config #3223

Open
bjackman opened this issue Nov 22, 2024 · 7 comments
Open

"Disk full" error when building GPT, default diskpart config #3223

bjackman opened this issue Nov 22, 2024 · 7 comments
Labels

Comments

@bjackman
Copy link
Contributor

mkosi commit the issue has been seen with

b2f818c

Used host distribution

Debian testing

Used target distribution

Debian testing

Linux kernel version used

6.12 (customized)

CPU architectures issue was seen on

x86_64

Unexpected behaviour you saw

‣  Formatting ESP/XBOOTLDR partitions
Automatically determined minimal disk image size as 1.8G, current image size is 1.8G.
File '/work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-z6klnurr/staging/image.raw' already is of requested size or larger, )
Applying changes to /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-z6klnurr/staging/image.raw.
Successfully wiped file system signatures from future partition 0.
Successfully discarded data from future partition 0.
Formatting future partition 0.
Populating vfat filesystem.
Successfully populated vfat filesystem.
mkfs.fat 4.2 (2021-01-31)
Disk full
(mcopy) failed with exit status 1.
‣ "systemd-repart --empty=allow --size=auto --dry-run=no --json=pretty --no-pager --offline=yes --seed f79ffb4b-5c72-404c-bf49-4d3ac99f543a .

Used mkosi config

[Host]
Incremental=true

[Output]
Format=disk
CacheDirectory=.mkosi.cache

[Distribution]
Release=testing

[Content]
Packages=
        apt
        apt-file
        apt-transport-https
        bpftool
        kmod
        linux-perf
        login
        lsb-release
        openssh-server
        openssh-server
        passwd
        procps
        systemd-boot
        systemd-resolved
        systemd-userdbd
        tzdata
        vim
        xxd
        xz-utils
Bootable=true
ExtraTrees=/tmp/kernel-6.12.0-00056-gc6639078fe31:/usr/lib/modules/6.12.0-00056-gc6639078fe31


### mkosi output

```sh
‣ Loading configuration file /usr/local/google/home/jackmanb/src/mkosi-exp/mkosi.conf
‣ /usr/local/google/home/jackmanb/src/mkosi-exp/mkosi.conf: Setting Incremental should be configured in [Build], not [Host].
‣ /usr/local/google/home/jackmanb/src/mkosi-exp/mkosi.conf: Setting CacheDirectory should be configured in [Build], not [Output].
‣ + /usr/bin/systemd-repart --version
‣ Validating certificates and keys
‣ Copying cached package manager metadata
‣ + cp --recursive --no-dereference --preserve=mode,links,timestamps,ownership,xattr --reflink=auto --copy-contents '/work/usr/local/google/home/jackmanb/src/mkosi-exp/.mkosi.cache/debian~testing~x86-64.metadata.cache' /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-metadata-qd84p0_1 --no-target-directory
‣ Building default image
‣  Copying cached trees
‣ + cp --recursive --no-dereference --preserve=mode,links,timestamps,ownership,xattr --reflink=auto --copy-contents '/work/usr/local/google/home/jackmanb/src/mkosi-exp/.mkosi.cache/debian~testing~x86-64.cache' /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/root --no-target-directory
‣  Copying in extra file trees…
‣ + cp --recursive --no-dereference --preserve=mode,links --reflink=auto --copy-contents /work/tmp/kernel-6.12.0-00056-gc6639078fe31 /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/root/usr/lib/modules/6.12.0-00056-gc6639078fe31 --no-target-directory
‣ + bootctl --version
‣ + bootctl kernel-identify /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/root/usr/lib/modules/6.12.0-00056-gc6639078fe31/vmlinux
‣ + bootctl --version
‣  Installing systemd-boot…
‣ + bootctl install --root=/buildroot --all-architectures --no-variables
Created "/buildroot/efi/EFI".
Created "/buildroot/efi/EFI/systemd".
Created "/buildroot/efi/EFI/BOOT".
Created "/buildroot/efi/loader".
Created "/buildroot/boot/loader/entries".
Created "/buildroot/boot/EFI".
Created "/buildroot/boot/EFI/Linux".
Copied "/buildroot/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/buildroot/efi/EFI/systemd/systemd-bootx64.efi".
Copied "/buildroot/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/buildroot/efi/EFI/BOOT/BOOTX64.EFI".
Random seed file /buildroot/efi/loader/random-seed successfully written (32 bytes).
‣  Generating system users
‣ + systemd-sysusers --root=/buildroot
/buildroot/usr/lib/sysusers.d/systemd-network.conf:8: Unknown modifier 'u!'.
/buildroot/usr/lib/sysusers.d/systemd-resolve.conf:8: Unknown modifier 'u!'.
‣  Generating volatile files
‣ + systemd-tmpfiles --root=/buildroot --boot --create --remove --exclude-prefix=/tmp --exclude-prefix=/var/tmp --exclude-prefix=/run --exclude-prefix=/proc --exclude-prefix=/sys --exclude-prefix=/dev --exclude-prefix=/var
/buildroot/usr/lib/tmpfiles.d/20-systemd-shell-extra.conf:10: Unknown modifiers in command 'L$'.
/buildroot/usr/lib/tmpfiles.d/20-systemd-ssh-generator.conf:10: Unknown modifiers in command 'L$'.
/buildroot/usr/lib/tmpfiles.d/legacy.conf:15: Unknown modifiers in command 'L$'.
/buildroot/usr/lib/tmpfiles.d/systemd-network.conf:10: Unknown modifiers in command 'd$'.
/buildroot/usr/lib/tmpfiles.d/systemd-network.conf:11: Unknown modifiers in command 'd$'.
/buildroot/usr/lib/tmpfiles.d/systemd-network.conf:12: Unknown modifiers in command 'd$'.
/buildroot/usr/lib/tmpfiles.d/systemd-network.conf:13: Unknown modifiers in command 'd$'.
/buildroot/usr/lib/tmpfiles.d/systemd.conf:13: Unknown modifiers in command 'd$'.
/buildroot/usr/lib/tmpfiles.d/systemd.conf:14: Unknown modifiers in command 'd$'.
/buildroot/usr/lib/tmpfiles.d/systemd.conf:15: Unknown modifiers in command 'd$'.
/buildroot/usr/lib/tmpfiles.d/systemd.conf:17: Unknown modifiers in command 'd$'.
‣  Applying presets…
‣ + systemctl --root=/buildroot preset-all
Failed to preset unit: Unit /buildroot/usr/lib/systemd/system/hwclock.service is masked
Failed to preset unit: Unit /buildroot/usr/lib/systemd/system/x11-common.service is masked
Failed to preset unit: Unit /buildroot/usr/lib/systemd/system/cryptdisks.service is masked
Failed to preset unit: Unit /buildroot/usr/lib/systemd/system/cryptdisks-early.service is masked
Created symlink '/buildroot/etc/systemd/system/sysinit.target.wants/systemd-sysext.service' → '/usr/lib/systemd/system/systemd-sysext.service'.
Created symlink '/buildroot/etc/systemd/system/sockets.target.wants/ssh.socket' → '/usr/lib/systemd/system/ssh.socket'.
Created symlink '/buildroot/etc/systemd/system/sockets.target.wants/systemd-journald-audit.socket' → '/usr/lib/systemd/system/systemd-journald-audit.socket'.
Created symlink '/buildroot/etc/systemd/system/systemd-journald.service.wants/systemd-journald-audit.socket' → '/usr/lib/systemd/system/systemd-journald-audit.socket'.
Created symlink '/buildroot/etc/systemd/system/network-online.target.wants/systemd-networkd-wait-online.service' → '/usr/lib/systemd/system/systemd-networkd-wait-online.service'.
Created symlink '/buildroot/etc/systemd/system/ctrl-alt-del.target' → '/usr/lib/systemd/system/reboot.target'.
Created symlink '/buildroot/etc/systemd/system/sysinit.target.wants/systemd-pcrlock-secureboot-authority.service' → '/usr/lib/systemd/system/systemd-pcrlock-secureboot-authority.service'.
Created symlink '/buildroot/etc/systemd/system/sysinit.target.wants/systemd-boot-update.service' → '/usr/lib/systemd/system/systemd-boot-update.service'.
Unit /buildroot/usr/lib/systemd/system/hwclock.service is masked, ignoring.
Created symlink '/buildroot/etc/systemd/system/local-fs.target.wants/run-lock.mount' → '/usr/lib/systemd/system/run-lock.mount'.
Created symlink '/buildroot/etc/systemd/system/sockets.target.wants/systemd-networkd.socket' → '/usr/lib/systemd/system/systemd-networkd.socket'.
Unit /buildroot/usr/lib/systemd/system/x11-common.service is masked, ignoring.
Created symlink '/buildroot/etc/systemd/system/sysinit.target.wants/systemd-pcrlock-secureboot-policy.service' → '/usr/lib/systemd/system/systemd-pcrlock-secureboot-policy.service'.
Created symlink '/buildroot/etc/systemd/system/sysinit.target.wants/systemd-pcrlock-make-policy.service' → '/usr/lib/systemd/system/systemd-pcrlock-make-policy.service'.
Unit /buildroot/usr/lib/systemd/system/cryptdisks.service is masked, ignoring.
Created symlink '/buildroot/etc/systemd/system/sysinit.target.wants/systemd-pcrlock-machine-id.service' → '/usr/lib/systemd/system/systemd-pcrlock-machine-id.service'.
Created symlink '/buildroot/etc/systemd/system/dbus-org.freedesktop.network1.service' → '/usr/lib/systemd/system/systemd-networkd.service'.
Created symlink '/buildroot/etc/systemd/system/multi-user.target.wants/systemd-networkd.service' → '/usr/lib/systemd/system/systemd-networkd.service'.
Created symlink '/buildroot/etc/systemd/system/sysinit.target.wants/systemd-network-generator.service' → '/usr/lib/systemd/system/systemd-network-generator.service'.
Created symlink '/buildroot/etc/systemd/system/sysinit.target.wants/systemd-pcrlock-file-system.service' → '/usr/lib/systemd/system/systemd-pcrlock-file-system.service'.
Unit /buildroot/usr/lib/systemd/system/cryptdisks-early.service is masked, ignoring.
Created symlink '/buildroot/etc/systemd/system/sysinit.target.wants/systemd-pcrlock-firmware-config.service' → '/usr/lib/systemd/system/systemd-pcrlock-firmware-config.service'.
Created symlink '/buildroot/etc/systemd/system/sockets.target.wants/systemd-pcrlock.socket' → '/usr/lib/systemd/system/systemd-pcrlock.socket'.
Created symlink '/buildroot/etc/systemd/system/sockets.target.wants/systemd-pcrextend.socket' → '/usr/lib/systemd/system/systemd-pcrextend.socket'.
Created symlink '/buildroot/etc/systemd/system/sockets.target.wants/systemd-sysext.socket' → '/usr/lib/systemd/system/systemd-sysext.socket'.
Created symlink '/buildroot/etc/systemd/system/sysinit.target.wants/systemd-confext.service' → '/usr/lib/systemd/system/systemd-confext.service'.
Created symlink '/buildroot/etc/systemd/system/sysinit.target.wants/systemd-pcrlock-firmware-code.service' → '/usr/lib/systemd/system/systemd-pcrlock-firmware-code.service'.
‣ + systemctl --root=/buildroot --global preset-all
Created symlink '/buildroot/etc/systemd/user/basic.target.wants/systemd-tmpfiles-setup.service' → '/usr/lib/systemd/user/systemd-tmpfiles-setup.service'.
Created symlink '/buildroot/etc/systemd/user/timers.target.wants/systemd-tmpfiles-clean.timer' → '/usr/lib/systemd/user/systemd-tmpfiles-clean.timer'.
‣ + bootctl --version
‣ + bootctl kernel-identify /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/root/usr/lib/modules/6.12.0-00056-gc6639078fe31/vmlinux
‣  Running depmod for 6.12.0-00056-gc6639078fe31
‣ + depmod --all 6.12.0-00056-gc6639078fe31
depmod: WARNING: could not open modules.order at /lib/modules/6.12.0-00056-gc6639078fe31: No such file or directory
depmod: WARNING: could not open modules.builtin at /lib/modules/6.12.0-00056-gc6639078fe31: No such file or directory
depmod: WARNING: could not open modules.builtin.modinfo at /lib/modules/6.12.0-00056-gc6639078fe31: No such file or directory
‣  Generating hardware database
‣ + systemd-hwdb --root=/buildroot --usr --strict update
No hwdb files found, skipping.
‣ + systemd-repart --version
‣  Generating disk image
‣ + systemd-repart --empty=allow --size=auto --dry-run=no --json=pretty --no-pager --offline=yes --seed 0dfdcd93-90a7-404a-8885-0bd231de6e01 /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/staging/image.raw --root=/buildroot --empty=create --defer-partitions esp,xbootldr --generate-fstab=/etc/fstab --generate-crypttab=/etc/crypttab --definitions /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/repart-definitions
MountPoint= is not specified for any eligible partitions, not generating /etc/fstab
EncryptedVolume= is not specified for any eligible partitions, not generating /etc/crypttab
Pre-populating ext4 filesystem of partition 10-root.conf twice to calculate minimal partition size
Populating ext4 filesystem.
Successfully populated ext4 filesystem.
mke2fs 1.47.1 (20-May-2024)
Discarding device blocks:         0/268435456�������������������                   �������������������done                            
Creating filesystem with 268435456 4k blocks and 67108864 inodes
Filesystem UUID: c8e9f014-c2c3-4a50-ac84-eb9334015ec8
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
	4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 
	102400000, 214990848

Allocating group tables:    0/8192���������         ���������done                            
Writing inode tables:    0/8192���������         ���������done                            
Creating journal (262144 blocks): done
Copying files into the device: done
Writing superblocks and filesystem accounting information:    0/8192���������         ���������done

/var/tmp/.#reparte7bff5c98ca69b04 successfully formatted as ext4 (label "root-x86-64", uuid c8e9f014-c2c3-4a50-ac84-eb9334015ec8)
Minimal partition size of ext4 filesystem of partition 10-root.conf is 1.3G
mke2fs 1.47.1 (20-May-2024)
Discarding device blocks:      0/366255�������������             �������������done                            
Creating filesystem with 366255 4k blocks and 91584 inodes
Filesystem UUID: ec1cf94c-0bcc-4e1e-939d-21d940ad6239
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912

Allocating group tables:  0/12�����     �����done                            
Writing inode tables:  0/12�����     �����done                            
Creating journal (8192 blocks): done
Copying files into the device: done
Writing superblocks and filesystem accounting information:  0/12�����     �����done

/var/tmp/.#reparte7bff5c98ca69b04 successfully formatted as ext4 (label "root-x86-64", uuid ec1cf94c-0bcc-4e1e-939d-21d940ad6239)
Automatically determined minimal disk image size as 1.8G.
Sized '/work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/staging/image.raw' to 1.8G.
Applying changes to /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/staging/image.raw.
Copying in '/var/tmp/.#reparte7bff5c98ca69b04' (1.3G) on block level into future partition 1.
Copying in of '/var/tmp/.#reparte7bff5c98ca69b04' on block level completed.
Block level copying and synchronization of partition 1 complete in 3.714514s (385.1M/s).
Adding new partition 1 to partition table.
Writing new partition table.
All done.
‣ [
    {
        "type": "esp",
        "label": "esp",
        "uuid": "b0cde5f2-b7fd-45a5-8bcf-03399194e564",
        "partno": 0,
        "file": "/work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/repart-definitions/00-esp.conf",
        "node": "/work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/staging/image.raw1",
        "offset": 1048576,
        "old_size": 0,
        "raw_size": 536870912,
        "old_padding": 0,
        "raw_padding": 0,
        "activity": "create"
    },
    {
        "type": "root-x86-64",
        "label": "root-x86-64",
        "uuid": "e41dc866-c95b-404b-8203-766046000789",
        "partno": 1,
        "file": "/work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/repart-definitions/10-root.conf",
        "node": "/work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/staging/image.raw2",
        "offset": 537919488,
        "old_size": 0,
        "raw_size": 1500180480,
        "old_padding": 0,
        "raw_padding": 0,
        "activity": "create"
    }
]
‣ + bootctl --version
‣ + bootctl kernel-identify /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/root/usr/lib/modules/6.12.0-00056-gc6639078fe31/vmlinux
‣ + kernel-install --help
‣ + kernel-install --version
‣ + kernel-install --root=/buildroot --json=pretty inspect
‣ {
    "MachineID": "281272ff579f4e5d8c7d355f33d02742",
    "KernelImageType": "unknown",
    "Layout": "bls",
    "BootRoot": "boot",
    "EntryTokenType": "literal",
    "EntryToken": "debian",
    "EntryDirectory": "boot/debian/KERNEL_VERSION",
    "KernelVersion": null,
    "Kernel": null,
    "Initrds": null,
    "InitrdGenerator": null,
    "UKIGenerator": null,
    "Plugins": [
        "usr/lib/kernel/install.d/50-depmod.install",
        "usr/lib/kernel/install.d/55-initrd.install",
        "usr/lib/kernel/install.d/90-loaderentry.install",
        "usr/lib/kernel/install.d/90-uki-copy.install"
    ],
    "PluginEnvironment": [
        "LC_COLLATE=C.UTF-8",
        "KERNEL_INSTALL_VERBOSE=0",
        "KERNEL_INSTALL_IMAGE_TYPE=unknown",
        "KERNEL_INSTALL_MACHINE_ID=281272ff579f4e5d8c7d355f33d02742",
        "KERNEL_INSTALL_ENTRY_TOKEN=debian",
        "KERNEL_INSTALL_BOOT_ROOT=boot",
        "KERNEL_INSTALL_LAYOUT=bls",
        "KERNEL_INSTALL_INITRD_GENERATOR=",
        "KERNEL_INSTALL_UKI_GENERATOR=",
        "KERNEL_INSTALL_STAGING_AREA=/tmp/kernel-install.staging.XXXXXX"
    ]
}
‣ + bootctl --version
‣ + bootctl kernel-identify /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/root/usr/lib/modules/6.12.0-00056-gc6639078fe31/vmlinux
‣  Running modinfo to fetch kernel module dependencies
‣  Calculating required kernel modules and firmware
‣  Creating cpio archive /usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/kernel-modules-6.12.0-00056-gc6639078fe31.initrd…
‣ + cpio --create --reproducible --renumber-inodes --null --format=newc --quiet --directory /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/root --owner=0:0
‣ /usr/lib/firmware/{amd-ucode,intel-ucode} not found, not adding microcode
‣ Loading configuration file /tmp/tmpksz_oor9/resources/mkosi-initrd/mkosi.conf
‣ Loading configuration file /tmp/tmpksz_oor9/resources/mkosi-initrd/mkosi.conf.d/10-debian-kali-ubuntu/mkosi.conf
‣ Loading configuration file /tmp/tmpksz_oor9/resources/mkosi-initrd/mkosi.conf.d/10-debian-kali-ubuntu/mkosi.conf.d/10-libtss.conf
‣ Loading configuration file /tmp/tmpksz_oor9/resources/mkosi-initrd/mkosi.conf
‣ Loading configuration file /tmp/tmpksz_oor9/resources/mkosi-initrd/mkosi.conf.d/10-debian-kali-ubuntu/mkosi.conf
‣ Loading configuration file /tmp/tmpksz_oor9/resources/mkosi-initrd/mkosi.conf.d/10-debian-kali-ubuntu/mkosi.conf.d/10-libtss.conf
‣  Building default initrd
‣   Copying cached trees
‣ + cp --recursive --no-dereference --preserve=mode,links,timestamps,ownership,xattr --reflink=auto --copy-contents '/work/usr/local/google/home/jackmanb/src/mkosi-exp/.mkosi.cache/debian~testing~x86-64~default-initrd.cache' /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root --no-target-directory
‣   Copying in extra file trees…
‣ + cp --version
‣ + cp --recursive --no-dereference --preserve=mode,links --reflink=auto --copy-contents /work/tmp/tmpksz_oor9/resources/mkosi-initrd/mkosi.extra /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root --keep-directory-symlink --no-target-directory
‣   Generating system users
‣ + systemd-sysusers --root=/buildroot
/buildroot/usr/lib/sysusers.d/systemd-network.conf:8: Unknown modifier 'u!'.
‣   Generating volatile files
‣ + systemd-tmpfiles --root=/buildroot --boot --create --remove --exclude-prefix=/tmp --exclude-prefix=/var/tmp --exclude-prefix=/run --exclude-prefix=/proc --exclude-prefix=/sys --exclude-prefix=/dev --exclude-prefix=/var
/buildroot/usr/lib/tmpfiles.d/20-systemd-shell-extra.conf:10: Unknown modifiers in command 'L$'.
/buildroot/usr/lib/tmpfiles.d/20-systemd-ssh-generator.conf:10: Unknown modifiers in command 'L$'.
/buildroot/usr/lib/tmpfiles.d/legacy.conf:15: Unknown modifiers in command 'L$'.
/buildroot/usr/lib/tmpfiles.d/systemd-network.conf:10: Unknown modifiers in command 'd$'.
/buildroot/usr/lib/tmpfiles.d/systemd-network.conf:11: Unknown modifiers in command 'd$'.
/buildroot/usr/lib/tmpfiles.d/systemd-network.conf:12: Unknown modifiers in command 'd$'.
/buildroot/usr/lib/tmpfiles.d/systemd-network.conf:13: Unknown modifiers in command 'd$'.
/buildroot/usr/lib/tmpfiles.d/systemd.conf:13: Unknown modifiers in command 'd$'.
/buildroot/usr/lib/tmpfiles.d/systemd.conf:14: Unknown modifiers in command 'd$'.
/buildroot/usr/lib/tmpfiles.d/systemd.conf:15: Unknown modifiers in command 'd$'.
/buildroot/usr/lib/tmpfiles.d/systemd.conf:17: Unknown modifiers in command 'd$'.
‣   Applying presets…
‣ + systemctl --root=/buildroot preset-all
Unit /buildroot/usr/lib/systemd/system/hwclock.service is masked, ignoring.
Unit /buildroot/usr/lib/systemd/system/x11-common.service is masked, ignoring.
Unit /buildroot/usr/lib/systemd/system/cryptdisks.service is masked, ignoring.
Unit /buildroot/usr/lib/systemd/system/cryptdisks-early.service is masked, ignoring.
Removed '/buildroot/etc/systemd/system/sockets.target.wants/dm-event.socket'.
Removed '/buildroot/etc/systemd/system/timers.target.wants/fstrim.timer'.
Removed '/buildroot/etc/systemd/system/timers.target.wants/e2scrub_all.timer'.
Removed '/buildroot/etc/systemd/system/timers.target.wants/dpkg-db-backup.timer'.
Removed '/buildroot/etc/systemd/system/sysinit.target.wants/blk-availability.service'.
Removed '/buildroot/etc/systemd/system/sysinit.target.wants/lvm2-monitor.service'.
Removed '/buildroot/etc/systemd/system/sysinit.target.wants/lvm2-lvmpolld.socket'.
Removed '/buildroot/etc/systemd/system/multi-user.target.wants/e2scrub_reap.service'.
Created symlink '/buildroot/etc/systemd/system/sysinit.target.wants/systemd-sysext.service' → '/usr/lib/systemd/system/systemd-sysext.service'.
Created symlink '/buildroot/etc/systemd/system/sockets.target.wants/systemd-journald-audit.socket' → '/usr/lib/systemd/system/systemd-journald-audit.socket'.
Created symlink '/buildroot/etc/systemd/system/systemd-journald.service.wants/systemd-journald-audit.socket' → '/usr/lib/systemd/system/systemd-journald-audit.socket'.
Created symlink '/buildroot/etc/systemd/system/network-online.target.wants/systemd-networkd-wait-online.service' → '/usr/lib/systemd/system/systemd-networkd-wait-online.service'.
Created symlink '/buildroot/etc/systemd/system/ctrl-alt-del.target' → '/usr/lib/systemd/system/reboot.target'.
Created symlink '/buildroot/etc/systemd/system/dbus-org.freedesktop.network1.service' → '/usr/lib/systemd/system/systemd-networkd.service'.
Created symlink '/buildroot/etc/systemd/system/multi-user.target.wants/systemd-networkd.service' → '/usr/lib/systemd/system/systemd-networkd.service'.
Created symlink '/buildroot/etc/systemd/system/sockets.target.wants/systemd-networkd.socket' → '/usr/lib/systemd/system/systemd-networkd.socket'.
Created symlink '/buildroot/etc/systemd/system/sysinit.target.wants/systemd-network-generator.service' → '/usr/lib/systemd/system/systemd-network-generator.service'.
Created symlink '/buildroot/etc/systemd/system/multi-user.target.wants/remote-cryptsetup.target' → '/usr/lib/systemd/system/remote-cryptsetup.target'.
Created symlink '/buildroot/etc/systemd/system/sysinit.target.wants/systemd-confext.service' → '/usr/lib/systemd/system/systemd-confext.service'.
‣ + systemctl --root=/buildroot --global preset-all
Created symlink '/buildroot/etc/systemd/user/basic.target.wants/systemd-tmpfiles-setup.service' → '/usr/lib/systemd/user/systemd-tmpfiles-setup.service'.
Created symlink '/buildroot/etc/systemd/user/timers.target.wants/systemd-tmpfiles-clean.timer' → '/usr/lib/systemd/user/systemd-tmpfiles-clean.timer'.
‣   Applying first boot settings
‣ + systemd-firstboot --root=/buildroot --force --locale C.UTF-8
/buildroot: /etc/locale.conf written.
‣   Generating hardware database
‣ + systemd-hwdb --root=/buildroot --usr --strict update
‣ + rm -rf -- /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/var/lib/dpkg
‣   Removing files…
‣ + rm -rf -- /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/etc/udev/hwdb.d /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/lib/systemd/catalog /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/lib/udev/hwdb.d /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/af /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/am /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/ar /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/as /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/ast /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/az /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/be /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/be@latin /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/bg /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/bn /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/bn_IN /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/bs /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/ca /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/ca@valencia /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/cs /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/cy /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/da /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/de /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/de_CH /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/dz /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/el /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/en@boldquot /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/en@quot /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/en_GB /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/eo /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/es /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/et /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/eu /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/fa /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/fi /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/fo /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/fr /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/fur /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/ga /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/gl /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/gu /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/he /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/hi /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/hr /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/hu /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/ia /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/id /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/is /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/it /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/ja /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/ka /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/kab /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/kk /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/km /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/kn /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/ko /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/ku /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/kw_GB /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/ky /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/lg /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/lt /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/lv /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/mk /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/ml /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/mn /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/mr /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/ms /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/my /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/nb /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/ne /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/nl /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/nn /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/oc /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/or /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/pa /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/pl /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/pt /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/pt_BR /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/ro /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/ru /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/si /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/sk /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/sl /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/sq /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/sr /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/sr@latin /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/sv /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/ta /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/te /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/tg /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/th /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/tl /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/tr /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/uk /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/ur /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/vi /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/wa /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/yo /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/zh_CN /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/zh_HK /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/zh_TW /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/usr/share/locale/zu /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root/var/cache/ldconfig/aux-cache
‣   Creating cpio archive /usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/staging/initrd.cpio…
‣ + cpio --create --reproducible --renumber-inodes --null --format=newc --quiet --directory /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root --owner=0:0
‣   Compressing /usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/staging/initrd.cpio with zstd
‣ + zstd -q -3 -T0 --stdout -
‣ + rm -rf -- /usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl/root
‣   /usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/initrd.cpio.zst size is 33.2M, consumes 33.2M.
‣ + rm -rf -- /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-_m3shoyl
‣  Formatting ESP/XBOOTLDR partitions
‣ + systemd-repart --empty=allow --size=auto --dry-run=no --json=pretty --no-pager --offline=yes --seed 0dfdcd93-90a7-404a-8885-0bd231de6e01 /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/staging/image.raw --root=/buildroot --definitions /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/repart-definitions
Automatically determined minimal disk image size as 1.8G, current image size is 1.8G.
File '/work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/staging/image.raw' already is of requested size or larger, not growing. (1.8G >= 1.8G)
Applying changes to /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/staging/image.raw.
Successfully wiped file system signatures from future partition 0.
Successfully discarded data from future partition 0.
Formatting future partition 0.
Populating vfat filesystem.
Successfully populated vfat filesystem.
mkfs.fat 4.2 (2021-01-31)
Disk full
(mcopy) failed with exit status 1.
‣ "/usr/bin/python3 -SI /usr/local/google/home/jackmanb/src/mkosi/mkosi/sandbox.py --proc /proc --unsetenv TMPDIR --setenv SYSTEMD_OFFLINE 0 --unshare-net --ro-bind /usr /usr --symlink usr/bin /bin --symlink usr/sbin /sbin --symlink usr/lib /lib --symlink usr/lib32 /lib32 --symlink usr/lib64 /lib64 --ro-bind /etc/alternatives /etc/alternatives --ro-bind /etc/ld.so.cache /etc/ld.so.cache --bind /nix/store /nix/store --dir /var/tmp --dir /var/log --unshare-ipc --ro-bind /usr/local/google/home/jackmanb/src/mkosi/mkosi/sandbox.py /sandbox.py --dev /dev --setenv PATH /usr/local/google/home/jackmanb/.cargo/bin:/usr/local/google/home/jackmanb/.cargo/bin:/usr/local/google/home/jackmanb/src/git-brisect/:/usr/local/google/home/jackmanb/src/depot_tools/:/usr/games:/usr/local/google/home/jackmanb/.cargo/bin:/usr/local/google/home/jackmanb/src/git-brisect/:/usr/local/google/home/jackmanb/src/depot_tools/:/usr/games:/usr/lib/google-golang/bin:/usr/local/buildtools/java/jdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/google/home/jackmanb/dotfiles/bin:/usr/local/google/home/jackmanb/.local/bin:.:/usr/local/google/home/jackmanb/dotfiles/bin:/usr/local/google/home/jackmanb/.local/bin:. --bind /usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/tmp/mkosi-var-tmp-6ed3a5b1cdf642c4 /var/tmp --dir /tmp --dir /run --become-root --bind /usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/staging /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/staging --bind /usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/root /buildroot --ro-bind /usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/repart-definitions /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/repart-definitions --ro-bind /etc/ssl/certs/ca-certificates.crt /proxy.cacert -- systemd-repart --empty=allow --size=auto --dry-run=no --json=pretty --no-pager --offline=yes --seed 0dfdcd93-90a7-404a-8885-0bd231de6e01 /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/staging/image.raw --root=/buildroot --definitions /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/repart-definitions" returned non-zero exit code 1.
‣ + rm -rf -- /work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl
Traceback (most recent call last):
  File "/usr/local/google/home/jackmanb/src/mkosi/mkosi/run.py", line 62, in uncaught_exception_handler
    yield
  File "/usr/local/google/home/jackmanb/src/mkosi/mkosi/run.py", line 103, in fork_and_wait
    target(*args, **kwargs)
  File "/usr/local/google/home/jackmanb/src/mkosi/mkosi/__init__.py", line 4528, in run_build
    build_image(
  File "/usr/local/google/home/jackmanb/src/mkosi/mkosi/__init__.py", line 3703, in build_image
    partitions = make_disk(context, msg="Formatting ESP/XBOOTLDR partitions")
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/google/home/jackmanb/src/mkosi/mkosi/__init__.py", line 3252, in make_disk
    return make_image(
           ^^^^^^^^^^^
  File "/usr/local/google/home/jackmanb/src/mkosi/mkosi/__init__.py", line 3141, in make_image
    run_systemd_sign_tool(
  File "/usr/local/google/home/jackmanb/src/mkosi/mkosi/bootloader.py", line 461, in run_systemd_sign_tool
    return run(
           ^^^^
  File "/usr/local/google/home/jackmanb/src/mkosi/mkosi/run.py", line 150, in run
    with spawn(
  File "/usr/lib/python3.11/contextlib.py", line 144, in __exit__
    next(self.gen)
  File "/usr/local/google/home/jackmanb/src/mkosi/mkosi/run.py", line 295, in spawn
    raise subprocess.CalledProcessError(returncode, cmdline)
subprocess.CalledProcessError: Command '['systemd-repart', '--empty=allow', '--size=auto', '--dry-run=no', '--json=pretty', '--no-pager', '--offline=yes', '--seed', '0dfdcd93-90a7-404a-8885-0bd231de6e01', '/work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/staging/image.raw', '--root=/buildroot', '--definitions', '/work/usr/local/google/home/jackmanb/.cache/mkosi/mkosi-workspace-5nra8jtl/repart-definitions']' returned non-zero exit status 1.
@bjackman bjackman added the bug label Nov 22, 2024
@bjackman
Copy link
Contributor Author

Based on the default diskpart configuration described in the manpage, I tried this:

diff --git a/mkosi.repart/00-esp.conf b/mkosi.repart/00-esp.conf                                                                             │❯❯  df -h
new file mode 100644                                                                                                                         │Filesystem                        Size  Used Avail Use% Mounted on
index 0000000..af8e165                                                                                                                       │udev                               89G     0   89G   0% /dev
--- /dev/null                                                                                                                                │tmpfs                              18G  6.7M   18G   1% /run
+++ b/mkosi.repart/00-esp.conf                                                                                                               │efivarfs                           56K   24K   27K  48% /sys/firmware/efi/efivars
@@ -0,0 +1,7 @@                                                                                                                              │/dev/mapper/glinux_20200923-root  979G  706G  233G  76% /
+[Partition]                                                                                                                                 │tmpfs                              89G  2.2M   89G   1% /dev/shm
+Type=esp                                                                                                                                    │tmpfs                             5.0M     0  5.0M   0% /run/lock
+Format=vfat                                                                                                                                 │tmpfs                             1.0M     0  1.0M   0% /run/credentials/systemd-udev-load-credentials.service
+CopyFiles=/boot:/                                                                                                                           │tmpfs                             1.0M     0  1.0M   0% /run/credentials/systemd-tmpfiles-setup-dev-early.service
+CopyFiles=/efi:/                                                                                                                            │tmpfs                             1.0M     0  1.0M   0% /run/credentials/systemd-tmpfiles-setup-dev.service
+SizeMinBytes=4G                                                                                                                             │tmpfs                             1.0M     0  1.0M   0% /run/credentials/systemd-sysctl.service
+SizeMaxBytes=4G                                                                                                                             │/dev/sda2                         1.9G  179M  1.6G  11% /boot
diff --git a/mkosi.repart/10-root.conf b/mkosi.repart/10-root.conf                                                                           │/dev/sda1                         1.9G  199M  1.7G  11% /boot/efi
new file mode 100644                                                                                                                         │tmpfs                              89G  1.1G   88G   2% /tmp
index 0000000..45c4011                                                                                                                       │tmpfs                             1.0M     0  1.0M   0% /run/credentials/systemd-tmpfiles-setup.service
--- /dev/null                                                                                                                                │tmpfs                              18G  7.0M   18G   1% /run/user/729974
+++ b/mkosi.repart/10-root.conf                                                                                                              │loasdtmpfs                        1.0M     0  1.0M   0% /var/google/session/loasd/tmpfs
@@ -0,0 +1,5 @@                                                                                                                              │tmpfs                             1.0M     0  1.0M   0% /run/credentials/[email protected]
+[Partition]                                                                                                                                 │tmpfs                             1.0M     0  1.0M   0% /run/credentials/[email protected]
+Type=root                                                                                                                                   │tmpfs                             1.0M     0  1.0M   0% /run/credentials/[email protected]
+Format=ext4                                                                                                                                 │srcfsd                            1.0T     0  1.0T   0% /google/src
+CopyFiles=/                                                                                                                                 │objfsd                            979G  219M  233G   1% /google/obj
+Minimize=guess       

This makes the "disk full" error go away and I end up with this:

❯❯  gdisk -l image.raw
GPT fdisk (gdisk) version 1.0.10

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk image.raw: 11320736 sectors, 5.4 GiB
Sector size (logical): 512 bytes
Disk identifier (GUID): C5C9183F-6B39-413A-9019-BF7AB12DC5DC
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 2048, last usable sector is 11320702
Partitions will be aligned on 2048-sector boundaries
Total free space is 7 sectors (3.5 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048         8390655   4.0 GiB     EF00  esp
   2         8390656        11320695   1.4 GiB     8304  root-x86-64

@DaanDeMeyer
Copy link
Contributor

Not sure what's special about your kernel but it's absolutely massive for some reason. I guess kernel modules aren't compressed?

Start with KernelModulesInitrdExclude=.* and KernelModulesInitrdInclude=default to reduce the number of modules included in the initramfs.

@bjackman
Copy link
Contributor Author

The kernel config came from using make localyesconfig to derive what drivers my HW needs, so yeah it's a huge kernel right now (I will need to work on shrinking it once I have a nicer workflow for booting quickly!). I am not using kernel modules, I don't think there's any reason for that since I'm anyway only building the minimal set of drivers I need.

But, I feel the answer here is to compress the whole kernel? Normally I deal with kernels as bzImage (my current one is 20M instead of 590M). I used a raw vmlinux here because the code that Nils K pointed me to seems to only handle "vmlinux" and "vmlinuz".

I have a vague memory that vmlinuz was just an old name for bzImage so maybe I just need to rename the bzImage to that and drop it into /usr/lib/modules.

@bjackman
Copy link
Contributor Author

OK yeah if I use bzImage (renamed to vmlinuz) the issue goes away. I think this should probably be left open though as I think it's a reality that uncompressed kernels are huge sometimes.

@septatrix
Copy link
Contributor

I have also encountered this. The problem is that systemd-repart postpones creating the boot partition and only reserves some space for it in the first run. If that space is not sufficient to hold the kernel afterwards, this error appears

@septatrix
Copy link
Contributor

C.f. #3014

bjackman added a commit to bjackman/asi-benchmarking that referenced this issue Nov 28, 2024
@matmaer
Copy link

matmaer commented Dec 14, 2024

Can confirm this was solved by adding the esp config from the @bjackman commit in the mkosi.repart dir. And feel free to play with the limits everybody.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

4 participants