pmem / run_qemu

A script to create bootable OS images, and run qemu with a locally built kernel.
Creative Commons Zero v1.0 Universal
59 stars 23 forks source link

run_qemu: extend the size of ESP partition #42

Closed irides closed 10 months ago

irides commented 10 months ago

In some cases, such as fedora37, 'insufficient disk space error' was occurred during building the root.img.

The root cause is that the ESPSize(256M by default) is not set in the mkosi.fedora.default.tmpl. If the ESP partition is larger than 256M, this error(shown as below) occurrs.

So, extend the ESPSize to 512M for all distroes to avoid the error.

Error log: $ run_qemu.sh --cxl ... ‣ Refreshed partition table. ‣ Attaching /home/linux-6.7/qbuild/.mkosi-ru0kjlr1 as loopback… ‣ Attached /dev/loop0 ‣ Refreshing file system /dev/loop0p2… tune2fs 1.46.5 (30-Dec-2021) ‣ Mounting image… ‣ Copying in extra file trees… ‣ Generating initramfs images… /usr/bin/dracut: line 1056: /sys/module/firmware_class/parameters/path: No such file or directory dracut: No '/dev/log' or 'logger' included for syslog logging /usr/bin/dracut: line 1056: /sys/module/firmware_class/parameters/path: No such file or directory dracut: No '/dev/log' or 'logger' included for syslog logging cp: error writing '/efi/fdc1f6a6cc9d49e9a7f1ead5f03d4fcb/6.7.0/initrd': No space left on device dracut: Creation of /efi/fdc1f6a6cc9d49e9a7f1ead5f03d4fcb/6.7.0/initrd failed ‣ Error: Workspace command kernel-install add 6.7.0 /lib/modules/6.7.0/vmlinuz returned non-zero exit code 1. ‣ (Unmounting image) ‣ (Detaching /dev/loop0)