try this using ansible-pull

This commit is contained in:
Mark Riedesel 2024-11-20 12:52:53 -06:00
parent 1444f05d9c
commit 2b7d4e9c77
9 changed files with 69 additions and 23 deletions

View file

@ -56,8 +56,7 @@ function configure_zfs_initrd {
# Add 'zfs' to MODULES=()
sed -i '/^MODULES=/!b;/zfs/!s/)/zfs)/' /etc/mkinitcpio.conf
initrd=/boot/initramfs-linux-lts.img
[[ ! -e $initrd || $initrd -ot /etc/mkinitcpio.conf ]] || mkinitcpio -P
# ^ only rebuild if initrd image is older than mkinitpio.conf
[[ ! -e "$initrd" || "$initrd" -ot /etc/mkinitcpio.conf ]] && mkinitcpio -P
}
function configure_dhcp_ethernet {