Skip to content

Commit

Permalink
Support suse family
Browse files Browse the repository at this point in the history
Signed-off-by: Itxaka <[email protected]>
  • Loading branch information
Itxaka committed Jan 20, 2025
1 parent 018b9c2 commit dea28d6
Showing 1 changed file with 107 additions and 3 deletions.
110 changes: 107 additions & 3 deletions pkg/values/packagemaps.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ var CommonPackages = []string{
"tar", // Basic tool.
"zstd", // Compression support for zstd
"rsync", // Install, upgrade, reset use it to sync the files
"dbus", // Basic tool.
"lvm2", // Seems to be used to support rpi3 only
"jq", // No idea why we need it, check if we can drop it?
"dosfstools", // For the fat32 partition on EFI systems
Expand Down Expand Up @@ -90,6 +89,15 @@ var ImmucorePackages = PackageMap{
},
},
},
SUSEFamily: {
ArchCommon: {
Common: {
"dracut",
"squashfs",
"dhcp-client",
},
},
},
}

// KernelPackages is a map of packages to install for each distro.
Expand Down Expand Up @@ -135,6 +143,13 @@ var KernelPackages = PackageMap{
},
},
},
SUSEFamily: {
ArchCommon: {
Common: {
"kernel-default",
},
},
},
}

// BasePackages is a map of packages to install for each distro and architecture.
Expand Down Expand Up @@ -206,8 +221,43 @@ var BasePackages = PackageMap{
SUSEFamily: {
ArchCommon: {
Common: {
"curl", // Basic tool. Also needed for netbooting as it is used to download the netboot artifacts. On rockylinux conflicts with curl-minimal
"systemd", // Basic tool.
"curl", // Basic tool. Also needed for netbooting as it is used to download the netboot artifacts. On rockylinux conflicts with curl-minimal
"bash-completion",
"conntrack-tools",
"cryptsetup",
"coreutils",
"device-mapper",
"fail2ban",
"findutils",
"growpart",
"gptfdisk",
"haveged",
"htop",
"iproute2",
"iputils",
"issue-generator",
"logrotate",
"lsscsi",
"mdadm",
"multipath-tools",
// "nfs-utils", // Not available by default, coming from extra repo.
// "nohang", // Not available by default, coming from extra repo.
"open-iscsi",
"openssh",
"open-vm-tools",
"pigz",
"policycoreutils",
"polkit",
"procps",
"qemu-guest-agent", // TODO: Move this to generic model?
"strace",
"systemd",
"systemd-network",
"timezone",
"tmux",
"vim",
"which",
"tpm2*",
},
},
},
Expand Down Expand Up @@ -414,6 +464,36 @@ var GrubPackages = PackageMap{
},
},
},
SUSEFamily: {
ArchAMD64: {
Common: {
"grub2-i386-pc",
"grub2-x86_64-efi",
"kernel-firmware-all",
"nethogs",
"patch",
"shim",
},
},
ArchARM64: {
Common: {
"bcm43xx-firmware",
"grub2-arm64-efi",
"iw",
"kernel-firmware-ath10k",
"kernel-firmware-ath11k",
"kernel-firmware-atheros",
"kernel-firmware-bluetooth",
"kernel-firmware-brcm",
"kernel-firmware-iwlwifi",
"kernel-firmware-network",
"kernel-firmware-realtek",
"kernel-firmware-serial",
"kernel-firmware-usb-network",
"nethogs",
},
},
},
}

// SystemdPackages is a map of packages to install for each distro and architecture for systemd-boot (trusted boot) variants
Expand Down Expand Up @@ -456,6 +536,30 @@ var RpiPackages = PackageMap{
},
},
},
SUSEFamily: {
ArchARM64: {
Rpi3.String(): {
"raspberrypi-eeprom",
"raspberrypi-firmware",
"raspberrypi-firmware-dt",
"sysconfig",
"sysconfig-netconfig",
"sysvinit-tools",
"wireless-tools",
"wpa_supplicant",
},
Rpi4.String(): {
"raspberrypi-eeprom",
"raspberrypi-firmware",
"raspberrypi-firmware-dt",
"sysconfig",
"sysconfig-netconfig",
"sysvinit-tools",
"wireless-tools",
"wpa_supplicant",
},
},
},
}

// PackageListToTemplate takes a list of packages and a map of parameters to replace in the package name
Expand Down

0 comments on commit dea28d6

Please sign in to comment.