-
I just managed to boot I noticed that the generated raw image ( $ sgdisk -p bottlerocket-metal-dev-x86_64-1.30.0-00000000.img
Disk bottlerocket-metal-dev-x86_64-1.30.0-00000000.img: 6291456 sectors, 3.0 GiB
Sector size (logical): 512 bytes
Disk identifier (GUID): C3110493-C15C-4CFB-8C64-464A5D1FF74A
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 6291422
Partitions will be aligned on 2048-sector boundaries
Total free space is 6077 sectors (3.0 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 10239 4.0 MiB EF02 BIOS-BOOT
2 10240 20479 5.0 MiB EF00 EFI-SYSTEM
3 20480 102399 40.0 MiB FFFF BOTTLEROCKET-BOOT-A
4 102400 1986559 920.0 MiB FFFF BOTTLEROCKET-ROOT-A
5 1986560 2007039 10.0 MiB FFFF BOTTLEROCKET-HASH-A
6 2007040 2058239 25.0 MiB FFFF BOTTLEROCKET-RESERV...
7 2058240 2068479 5.0 MiB FFFF EFI-BACKUP
8 2068480 2150399 40.0 MiB FFFF BOTTLEROCKET-BOOT-B
9 2150400 4034559 920.0 MiB FFFF BOTTLEROCKET-ROOT-B
10 4034560 4055039 10.0 MiB FFFF BOTTLEROCKET-HASH-B
11 4055040 4106239 25.0 MiB FFFF BOTTLEROCKET-RESERV...
12 4106240 4190207 41.0 MiB FFFF BOTTLEROCKET-PRIVATE
13 4190208 6287359 1024.0 MiB FFFF However, on AWS AMI (for example
I was wondering where/how the Bottlerocket OS disk image size is set? I looked at |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Metal and VMware images use the |
Beta Was this translation helpful? Give feedback.
Metal and VMware images use the
unified
partition layout. That last partition (13 4190208 6287359 1024.0 MiB FFFF
) is the BOTTLEROCKET-DATA partition that is a second volume with the AMIs. There is a tiny partition there that can be used in specific situations on AWS but the 13th partition will essentially not be touched and remain as small as possible for the AMIs. On theunified
disk images, that 1GB partition will be resized on first boot to fill the disk and be used for data. This link in rpm2img has a bit more info on how these work.