From 2250abae14b3a51751ee15ac6d1148df69fb1ceb Mon Sep 17 00:00:00 2001 From: Karim Naufal Date: Fri, 13 Oct 2023 19:45:33 +0100 Subject: [PATCH] fixed nfs-client to working version in packer image --- packer-template/hcloud-microos-snapshots.pkr.hcl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packer-template/hcloud-microos-snapshots.pkr.hcl b/packer-template/hcloud-microos-snapshots.pkr.hcl index fcfc5e54..8f2e23c5 100644 --- a/packer-template/hcloud-microos-snapshots.pkr.hcl +++ b/packer-template/hcloud-microos-snapshots.pkr.hcl @@ -38,7 +38,7 @@ variable "packages_to_install" { } locals { - needed_packages = join(" ", concat(["restorecond policycoreutils policycoreutils-python-utils setools-console bind-utils wireguard-tools open-iscsi nfs-client xfsprogs cryptsetup lvm2 git cifs-utils bash-completion mtr tcpdump"], var.packages_to_install)) + needed_packages = join(" ", concat(["restorecond policycoreutils policycoreutils-python-utils setools-console bind-utils wireguard-tools open-iscsi xfsprogs cryptsetup lvm2 git cifs-utils bash-completion mtr tcpdump"], var.packages_to_install)) # Add local variables for inline shell commands download_image = "wget --timeout=5 --waitretry=5 --tries=5 --retry-connrefused --inet4-only " @@ -60,6 +60,8 @@ locals { rpm --import https://rpm.rancher.io/public.key zypper install -y https://github.com/k3s-io/k3s-selinux/releases/download/v1.4.stable.1/k3s-selinux-1.4-1.sle.noarch.rpm zypper addlock k3s-selinux + zypper install -y https://download.opensuse.org/history/20231008/tumbleweed/repo/oss/x86_64/nfs-client-2.6.3-39.4.x86_64.rpm + zypper addlock nfs-client restorecon -Rv /etc/selinux/targeted/policy restorecon -Rv /var/lib setenforce 1