Skip to content

Commit

Permalink
Install iptables-nft early on during image generation
Browse files Browse the repository at this point in the history
  • Loading branch information
NeroReflex committed Jun 17, 2024
1 parent d88b670 commit a6d587b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 8 additions & 0 deletions build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@ rm -rf /var/cache/pacman/pkg
pacman --noconfirm -U --overwrite '*' /extra_pkgs/*
rm -rf /var/cache/pacman/pkg
# Install the new iptables
# See https://gitlab.archlinux.org/archlinux/packaging/packages/iptables/-/issues/1
# Since base package group adds iptables by default
# pacman will ask for confirmation to replace that package
# but the default answer is no.
# doing yes | pacman omitting --noconfirm is a necessity
yes | pacman -S iptables-nft
# enable services
systemctl enable ${SERVICES}
Expand Down
3 changes: 0 additions & 3 deletions manifest
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,6 @@ export FILES_TO_DELETE="\
"

postinstallhook() {
# use nftables instead of the deprecated iptables
yes | pacman -S iptables-nft

# Add sudo permissions
sed -i '/%wheel ALL=(ALL:ALL) ALL/s/^# //g' /etc/sudoers
echo "${USERNAME} ALL=(ALL) NOPASSWD: /usr/bin/dmidecode -t 11
Expand Down

0 comments on commit a6d587b

Please sign in to comment.