Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
202 changes: 22 additions & 180 deletions data/distrodefs/fedora/imagetypes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,6 @@
- dmidecode

cloud_init_services: &cloud_init_services
- "cloud-init.service"
- "cloud-config.service"
- "cloud-final.service"
- "cloud-init-local.service"

cloud_init_services_f43plus: &cloud_init_services_f43plus
- "cloud-init-network.service"
- "cloud-config.service"
- "cloud-final.service"
Expand Down Expand Up @@ -597,25 +591,8 @@
- "NetworkManager.service"
- "firewalld.service"
- "sshd.service"
- "greenboot-grub2-set-counter"
- "greenboot-grub2-set-success"
- "greenboot-healthcheck"
- "greenboot-rpm-ostree-grub2-check-fallback"
- "greenboot-status"
- "greenboot-task-runner"
- "redboot-auto-reboot"
- "redboot-task-runner"
kernel_options: *ostree_deployment_kernel_options
conditions:
"f43 uses new greenboot":
when:
version_greater_or_equal: "43"
shallow_merge:
enabled_services:
- "NetworkManager.service"
- "firewalld.service"
- "sshd.service"
- "greenboot-healthcheck"

iot: &image_config_iot
<<: *image_config_iot_enabled_services
Expand Down Expand Up @@ -1183,6 +1160,8 @@
- "console=tty1"
- "console=ttyS0,115200n8"
- "systemd.firstboot=off"
enabled_services:
*cloud_init_services
blueprint:
supported_options: *supported_options_disk
platforms:
Expand Down Expand Up @@ -1282,19 +1261,8 @@ image_types:
exports: ["archive"]
required_partition_sizes: *default_required_dir_sizes
image_config: &image_config_vagrant
conditions:
"f42 and below cloud init service names":
when:
version_less_than: "43"
shallow_merge:
enabled_services:
*cloud_init_services
"f43 and above new cloud init service names":
when:
version_greater_or_equal: "43"
shallow_merge:
enabled_services:
*cloud_init_services_f43plus
enabled_services:
*cloud_init_services
default_target: "multi-user.target"
kernel_options: *generic_kernel_options
users:
Expand Down Expand Up @@ -1346,19 +1314,8 @@ image_types:
image_config: &image_config_qcow2
default_target: "multi-user.target"
kernel_options: *generic_kernel_options
conditions:
"f42 and below cloud init service names":
when:
version_less_than: "43"
shallow_merge:
enabled_services:
*cloud_init_services
"f43 and above new cloud init service names":
when:
version_greater_or_equal: "43"
shallow_merge:
enabled_services:
*cloud_init_services_f43plus
enabled_services:
*cloud_init_services
partition_table:
<<: *default_partition_tables
package_sets:
Expand Down Expand Up @@ -1449,19 +1406,8 @@ image_types:
image_format: "vmdk"
image_config:
locale: "en_US.UTF-8"
conditions:
"f42 and below cloud init service names":
when:
version_less_than: "43"
shallow_merge:
enabled_services:
*cloud_init_services
"f43 and above new cloud init service names":
when:
version_greater_or_equal: "43"
shallow_merge:
enabled_services:
*cloud_init_services_f43plus
enabled_services:
*cloud_init_services
kernel_options: *generic_kernel_options
partition_table:
<<: *default_partition_tables
Expand Down Expand Up @@ -1561,6 +1507,7 @@ image_types:
- "dracut-network"
- "e2fsprogs"
- "efibootmgr"
- "filesystem"
- "fdo-client"
- "fdo-owner-cli"
- "fedora-iot-config"
Expand Down Expand Up @@ -1626,18 +1573,6 @@ image_types:
- "xz"
- "zram-generator"
conditions:
"f42 and below uses basesystem":
when:
version_less_than: "43"
append:
include:
- "basesystem"
"f43+ needs the filesystem pkg":
when:
version_greater_or_equal: "43"
append:
include:
- "filesystem"
"f44 does not have ssh-key-dir":
when:
version_less_than: "44"
Expand Down Expand Up @@ -1938,12 +1873,6 @@ image_types:
- *riscv64_uefi_platform
disk_config:
mount_configuration: "units"
conditions:
"f42 and below was quite different":
when:
version_less_than: "43"
shallow_merge:
mount_configuration: "fstab"
image_config:
# NOTE: initial-setup doesn't allow a system to be reconfigured
# NOTE: if certain files are already configured (locale, users,
Expand All @@ -1968,19 +1897,6 @@ image_types:
- "sshd.service"
kernel_options:
- "rw"
conditions:
"f42 and below was quite different":
when:
version_less_than: "43"
shallow_merge:
install_weak_deps: true
enabled_services:
- "NetworkManager.service"
- "initial-setup.service"
- "sshd.service"
- "firewalld.service"
kernel_options:
- "ro"
partition_table:
<<: *minimal_raw_partition_tables
package_sets:
Expand All @@ -2000,13 +1916,7 @@ image_types:
- "realtek-firmware"
exclude:
- "dracut-config-rescue"
conditions:
"no firewalld on f43+":
when:
version_greater_or_equal: "43"
append:
exclude:
- "firewalld"
- "firewalld"
blueprint:
supported_options: *supported_options_disk

Expand Down Expand Up @@ -2095,6 +2005,7 @@ image_types:
- "anaconda-install-env-deps"
- "anaconda-live"
- "anaconda-dracut"
- "anaconda-webui"
- "dracut-live"
- "glibc-all-langpacks"
- "kernel"
Expand All @@ -2113,15 +2024,6 @@ image_types:
- "gfs2-utils"
- "reiserfs-utils"
- "sdubby"
conditions:
"include anaconda webui in 43+":
when:
version_greater_or_equal: "43"
append:
# XXX: this was VERSION_RAWHIDE, if we need this again lets add
# "alias" to defs.DistroYAML
include:
- "anaconda-webui"
platforms:
- *x86_64_installer_platform
- *aarch64_installer_platform
Expand Down Expand Up @@ -2298,31 +2200,11 @@ image_types:
- arch: "x86_64"
image_config:
<<: *image_config_container
conditions:
"on f42 and below we use cloud-init instead of wsl-setup":
when:
version_less_than: "42"
shallow_merge:
wsl:
config:
boot_systemd: true
cloud_init:
- filename: "99_wsl.cfg"
config:
datasource_list:
- "WSL"
- "None"
network:
config: "disabled"
# https://github.com/microsoft/WSL/issues/13207
"work around WSL not reading /etc/locale.conf":
when:
version_greater_or_equal: "43"
shallow_merge:
files:
- path: "/etc/default/locale"
data: |
LANG=C.UTF-8
# https://github.com/microsoft/WSL/issues/13207
files:
- path: "/etc/default/locale"
data: |
LANG=C.UTF-8
package_sets:
os:
- include:
Expand Down Expand Up @@ -2639,21 +2521,7 @@ image_types:
filename: "disk.qcow2"
mime_type: "application/x-qemu-disk"
exports: ["qcow2"]
image_config:
<<: *cloud_base_image_config
conditions:
"f42 and below cloud init service names":
when:
version_less_than: "43"
shallow_merge:
enabled_services:
*cloud_init_services
"f43 and above new cloud init service names":
when:
version_greater_or_equal: "43"
shallow_merge:
enabled_services:
*cloud_init_services_f43plus
image_config: *cloud_base_image_config
package_sets:
os:
- *cloud_core_pkgset
Expand All @@ -2675,21 +2543,7 @@ image_types:
compression: "xz"
mime_type: "application/xz"
exports: ["xz"]
image_config:
<<: *cloud_base_image_config
conditions:
"f42 and below cloud init service names":
when:
version_less_than: "43"
shallow_merge:
enabled_services:
*cloud_init_services
"f43 and above new cloud init service names":
when:
version_greater_or_equal: "43"
shallow_merge:
enabled_services:
*cloud_init_services_f43plus
image_config: *cloud_base_image_config
package_sets:
os:
- *cloud_core_pkgset
Expand All @@ -2703,21 +2557,7 @@ image_types:
filename: "disk.vhd"
mime_type: "application/x-vhd"
exports: ["vpc"] # XXX Should be .vhd.xz
image_config:
<<: *cloud_base_image_config
conditions:
"f42 and below cloud init service names":
when:
version_less_than: "43"
shallow_merge:
enabled_services:
*cloud_init_services
"f43 and above new cloud init service names":
when:
version_greater_or_equal: "43"
shallow_merge:
enabled_services:
*cloud_init_services_f43plus
image_config: *cloud_base_image_config
package_sets:
os:
- *cloud_core_pkgset
Expand Down Expand Up @@ -2753,7 +2593,9 @@ image_types:
image_format: "gce"
- <<: *aarch64_platform
image_format: "gce"
image_config: *cloud_base_image_config
image_config:
<<: *cloud_base_image_config
enabled_services: []

"bootc-rpm-installer":
# Note that this image type is partial and only used by
Expand Down
Loading
Loading