Skip to content

Commit

Permalink
Merge pull request #1026 from kube-hetzner/fix/nfs-issue
Browse files Browse the repository at this point in the history
Fix/nfs issue
  • Loading branch information
mysticaltech authored Oct 13, 2023
2 parents f85de78 + 2250aba commit c8d127d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packer-template/hcloud-microos-snapshots.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand All @@ -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
Expand Down

0 comments on commit c8d127d

Please sign in to comment.