Skip to content

Commit dda8b67

Browse files
committed
rhel-10: reintroduce minimal-raw-xz
Reintroduces the minimal image type to all EL-variants. This is a useful image type for hardware enablement and other quick testing things. Previously I tried to reintroduce it in [1] but there's a bunch of missing packages. After some discussion with Peter Robinson we've decided to just drop `initial-setup` for the initial implementation and then go from there. We can tell users that they must pass a blueprint to set up users and/or root passwords. Enables only the empty blueprint for testing to reduce the drag; I don't think it's super useful to test all customizations? [1]: #2241 Signed-off-by: Simon de Vlieger <cmdr@supakeen.com>
1 parent 0d3cb38 commit dda8b67

11 files changed

Lines changed: 78 additions & 0 deletions

‎data/distrodefs/rhel-10/imagetypes.yaml‎

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2601,6 +2601,61 @@ image_types:
26012601
- "customizations.fips"
26022602
- "customizations.locale"
26032603

2604+
"minimal-raw-xz":
2605+
filename: "image.raw.xz"
2606+
compression: "xz"
2607+
mime_type: "application/xz"
2608+
image_func: "disk"
2609+
exports: ["xz"]
2610+
bootable: true
2611+
required_partition_sizes: *default_required_dir_sizes
2612+
platforms:
2613+
- <<: *x86_64_uefi_platform
2614+
image_format: "raw"
2615+
- <<: *aarch64_platform
2616+
image_format: "raw"
2617+
package_sets:
2618+
os:
2619+
- include:
2620+
- "@core"
2621+
- "bash-completion"
2622+
- "grubby"
2623+
- "fwupd-efi"
2624+
- "libxkbcommon"
2625+
- "NetworkManager-wifi"
2626+
- "linux-firmware"
2627+
- "brcmfmac-firmware"
2628+
- "iwlwifi-mvm-firmware"
2629+
- "realtek-firmware"
2630+
exclude:
2631+
- "dracut-config-rescue"
2632+
partition_table:
2633+
x86_64: &partition_table_minimal_raw_x86_64
2634+
type: "gpt"
2635+
partitions:
2636+
- &minimal_raw_partition_table_part_efi
2637+
size: "200 MiB"
2638+
type: *efi_system_partition_guid
2639+
payload_type: "filesystem"
2640+
payload:
2641+
type: vfat
2642+
mountpoint: "/boot/efi"
2643+
label: "ESP"
2644+
fstab_options: "defaults,uid=0,gid=0,umask=077,shortname=winnt"
2645+
fstab_freq: 0
2646+
fstab_passno: 2
2647+
- &minimal_raw_partition_table_part_root
2648+
size: "2 GiB"
2649+
type: *filesystem_data_guid
2650+
payload_type: "filesystem"
2651+
payload:
2652+
<<: *default_partition_table_part_root_payload
2653+
aarch64:
2654+
start_offset: "16 MiB"
2655+
<<: *partition_table_minimal_raw_x86_64
2656+
blueprint:
2657+
supported_options: *supported_options_disk
2658+
26042659
"pxe-tar-xz":
26052660
filename: "pxe.tar.xz"
26062661
compression: "xz"

‎pkg/distro/generic/rhel10_test.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ func TestRH10Architecture_ListImageTypes(t *testing.T) {
268268
"vagrant-libvirt",
269269
"vagrant-virtualbox",
270270
"pxe-tar-xz",
271+
"minimal-raw-xz",
271272
},
272273
},
273274
{
@@ -284,6 +285,7 @@ func TestRH10Architecture_ListImageTypes(t *testing.T) {
284285
"vagrant-libvirt",
285286
"vhd",
286287
"wsl",
288+
"minimal-raw-xz",
287289
},
288290
},
289291
{

‎test/config-list.json‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -848,5 +848,18 @@
848848
"server-network-installer"
849849
]
850850
}
851+
},
852+
{
853+
"path": "./configs/empty.json",
854+
"filters": {
855+
"distros": [
856+
"rhel-10*",
857+
"centos-10"
858+
],
859+
"arches": [],
860+
"image-types": [
861+
"minimal-raw-xz"
862+
]
863+
}
851864
}
852865
]

‎test/data/manifest-checksums/centos_10-aarch64-minimal_raw_xz-empty‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎test/data/manifest-checksums/centos_10-x86_64-minimal_raw_xz-empty‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎test/data/manifest-checksums/rhel_10.0-aarch64-minimal_raw_xz-empty‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎test/data/manifest-checksums/rhel_10.0-x86_64-minimal_raw_xz-empty‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎test/data/manifest-checksums/rhel_10.2-aarch64-minimal_raw_xz-empty‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎test/data/manifest-checksums/rhel_10.2-x86_64-minimal_raw_xz-empty‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎test/data/manifest-checksums/rhel_10.3-aarch64-minimal_raw_xz-empty‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)