Skip to content

Instantly share code, notes, and snippets.

@pvalena
Created November 19, 2024 17:32
Show Gist options
  • Save pvalena/092557d10d6f0bfc4d42477dc4f6e02a to your computer and use it in GitHub Desktop.
Save pvalena/092557d10d6f0bfc4d42477dc4f6e02a to your computer and use it in GitHub Desktop.
Executing `bootc install to-disk` from container image quay.io/cgwalters/run-image-mode:multi to create disk image
Installing image: docker://quay.io/cgwalters/run-image-mode:multi
Digest: sha256:731711824fdacd2d9db1fec6265b21f2f78d8509a970c88b87720e6693ba118a
ignoring: --direct-io=off
Block setup: direct
Size: 10737418240
Serial: <unknown>
Model: <unknown>
Checking that no-one is using this disk right now ... OK
Disk /dev/loop0: 10 GiB, 10737418240 bytes, 20971520 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.
>>> Created a new GPT disklabel (GUID: 6DB92DC4-8E66-4077-9ADD-E319A8C612ED).
/dev/loop0p1: Created a new partition 1 of type 'EFI System' and of size 512 MiB.
/dev/loop0p2: Created a new partition 2 of type 'Linux filesystem' and of size 9.5 GiB.
/dev/loop0p3: Done.
New situation:
Disklabel type: gpt
Disk identifier: 6DB92DC4-8E66-4077-9ADD-E319A8C612ED
Device Start End Sectors Size Type
/dev/loop0p1 2048 1050623 1048576 512M EFI System
/dev/loop0p2 1050624 20971486 19920863 9.5G Linux filesystem
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
Creating root filesystem (xfs) on device /dev/loop0p2 (size=10.2 GB)
> mkfs.xfs -m uuid=459ce978-edf8-4665-b386-d7b9e518ee75 -L root /dev/loop0p2
Mounting /run/bootc/mounts/rootfs
Creating ESP filesystem
> mkfs.fat /dev/loop0p1 -n EFI-SYSTEM
Mounting /run/bootc/mounts/rootfs/boot/efi
Initializing ostree layout
layers already present: 0; layers needed: 67 (874.3 MB)
Fetching layers ██████████████░░░░░░ 48/67
└ Fetching ████████████████████ 3.34 MiB/1.95 MiB (44.85 MiB/s) ostree chunk 7696a2213e90d70fe0c5e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment