leifliddy/asahi-fedora-usb

bug with build.sh

Closed this issue · 1 comments

 
### Preparing USB device
GPT fdisk (gdisk) version 1.0.9

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

Found valid GPT with protective MBR; using GPT.

Command (? for help): This option deletes all partitions and creates a new protective MBR.
Proceed? (Y/N):
Command (? for help): Partition number (1-128, default 1): First sector (34-3907029134, default = 2048) or {+-}size{KMGTP}: Last sector (2048-3907029134, default = 3907028991) or {+-}size{KMGTP}: Current type is 8300 (Linux filesystem)
Hex code or GUID (L to show codes, Enter = 8300): Changed type of partition to 'EFI system partition'

Command (? for help): Partition number (2-128, default 2): First sector (34-3907029134, default = 1230848) or {+-}size{KMGTP}: Last sector (1230848-3907029134, default = 3907028991) or {+-}size{KMGTP}: Current type is 8300 (Linux filesystem)
Hex code or GUID (L to show codes, Enter = 8300): Changed type of partition to 'Linux filesystem'

Command (? for help): Partition number (3-128, default 3): First sector (34-3907029134, default = 3328000) or {+-}size{KMGTP}: Last sector (3328000-3907029134, default = 3907028991) or {+-}size{KMGTP}: Current type is 8300 (Linux filesystem)
Hex code or GUID (L to show codes, Enter = 8300): Changed type of partition to 'Linux filesystem'

Command (? for help):
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N): OK; writing new GUID partition table (GPT) to /dev/sda.
The operation has completed successfully.
mkfs.fat 4.2 (2021-01-31)
mke2fs 1.46.5 (30-Dec-2021)
/dev/sda2 contains a ext4 file system labelled 'fedora-usb-boot'
        created on Mon Dec 18 22:07:34 2023
Discarding device blocks: done
Creating filesystem with 262144 4k blocks and 65536 inodes
Filesystem UUID: a1492762-3fe2-4908-a8b9-118439becd26
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376
Allocating group tables: done
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

mke2fs 1.46.5 (30-Dec-2021)
/dev/sda3 contains a ext4 file system labelled 'fedora-usb-root'
        created on Mon Dec 18 22:07:35 2023
Discarding device blocks: done
Creating filesystem with 487962624 4k blocks and 121995264 inodes
Filesystem UUID: d747cb2a-aff1-4e47-8a33-c4d9b7475df9
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: done
Writing inode tables: done
Creating journal (262144 blocks): 262143
done
Writing superblocks and filesystem accounting information: done

mkosi: error: unrecognized arguments: --root-password=fedora

I just pushed out an update that will check the version of mkosi before attempting an install
can you do a git pull and trying running the script again?
It'll now show you the path and version of mkosi you're using. Only mkosi version 19 is supported at this time.
Every version of mkosi is so different -- that you need to build a project around a specific version.
If you're on F38, you'll need to install mkosi version 19 via pip.
If you're on F39, just install mkosi via dnf.

Let me know if you need additional help.