Quoting Peter Maydell (2024-08-29 15:09:44) > Thanks. I tried this repro, but mkosi falls over almost > immediately: > > ‣ Detaching namespace > ‣ Setting up package cache… > ‣ Setting up package cache /home/linux1/s390-failure/.mkosi-htsau2ot complete > ‣ Setting up temporary workspace. > ‣ Temporary workspace set up in /var/tmp/mkosi-tjc0nror > ‣ Running second (final) stage… > ‣ Creating image with partition table… > Disk /home/linux1/s390-failure/.mkosi-ddkx5xpb: 3 GiB, 3221266432 > bytes, 6291536 sectors > Units: sectors of 1 * 512 = 512 bytes > Sector size (logical/physical): 512 bytes / 512 bytes > I/O size (minimum/optimal): 512 bytes / 512 bytes > > >>> Script header accepted. > >>> Script header accepted. > >>> Script header accepted. > >>> Created a new GPT disklabel (GUID: 14CF3B05-D072-0A45-8EE4-3219112ACB2E). > /home/linux1/s390-failure/.mkosi-ddkx5xpb1: Created a new partition 1 > of type 'unknown' and of size 3 GiB. > /home/linux1/s390-failure/.mkosi-ddkx5xpb2: Done. > > New situation: > Disklabel type: gpt > Disk identifier: 14CF3B05-D072-0A45-8EE4-3219112ACB2E > > Device Start End Sectors Size Type > /home/linux1/s390-failure/.mkosi-ddkx5xpb1 40 6291495 6291456 3G unknown > > The partition table has been altered. > ‣ Created image with partition table as > /home/linux1/s390-failure/.mkosi-ddkx5xpb > ‣ Attaching /home/linux1/s390-failure/.mkosi-ddkx5xpb as loopback… > ‣ Attached /dev/loop13 > ‣ Formatting root partition… > mke2fs 1.46.5 (30-Dec-2021) > The file /dev/loop13p1 does not exist and no size was specified. > ‣ (Detaching /dev/loop13) > Traceback (most recent call last): > File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main > return _run_code(code, main_globals, None, > File "/usr/lib/python3.10/runpy.py", line 86, in _run_code > exec(code, run_globals) > File "/usr/lib/python3/dist-packages/mkosi/__main__.py", line 32, in > <module> > main() > File "/usr/lib/python3/dist-packages/mkosi/__main__.py", line 26, in main > run_verb(a) > File "/usr/lib/python3/dist-packages/mkosi/__init__.py", line 7809, > in run_verb > manifest = build_stuff(args) > File "/usr/lib/python3/dist-packages/mkosi/__init__.py", line 7227, > in build_stuff > image = build_image(args, root, manifest=manifest, > do_run_build_script=False, cleanup=True) > File "/usr/lib/python3/dist-packages/mkosi/__init__.py", line 6941, > in build_image > prepare_root(args, encrypted.root, cached) > File "/usr/lib/python3/dist-packages/mkosi/__init__.py", line 1308, > in prepare_root > mkfs_generic(args, label, path, dev) > File "/usr/lib/python3/dist-packages/mkosi/__init__.py", line 1031, > in mkfs_generic > run([*cmdline, dev]) > File "/usr/lib/python3/dist-packages/mkosi/backend.py", line 699, in run > return subprocess.run(cmdline, check=check, stdout=stdout, > stderr=stderr, **kwargs) > File "/usr/lib/python3.10/subprocess.py", line 526, in run > raise CalledProcessError(retcode, process.args, > subprocess.CalledProcessError: Command '['mkfs.ext4', '-I', '256', > '-L', 'root', '-M', '/', '/dev/loop13p1']' returned non-zero exit > status 1. > > (My s390 box is running Ubuntu, in case that makes a difference.) > > Maybe you could put the kernel and initrd somewhere I can > get them from?
Sigh. Yeah, I'll try to find a way (may take a while). In the meantime, looks like mkosi is trying to create an block image, but that's not what it's configured to do; are you sure mkosi.conf is in the same directory you're calling it from?