From d0697cee50c2e31c25fd1b64566c30147cb32040 Mon Sep 17 00:00:00 2001 From: Brian Flad Date: Thu, 7 Nov 2013 21:52:46 -0500 Subject: [PATCH 1/3] Fix BENTO-94 in CentOS/RHEL by disabling fingerprint PAM module in cleanup.sh --- packer/scripts/centos/cleanup.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packer/scripts/centos/cleanup.sh b/packer/scripts/centos/cleanup.sh index cb79a25ec..a111947cf 100644 --- a/packer/scripts/centos/cleanup.sh +++ b/packer/scripts/centos/cleanup.sh @@ -4,6 +4,9 @@ yum -y clean all rm -rf VBoxGuestAdditions_*.iso VBoxGuestAdditions_*.iso.? rm -f /tmp/chef*rpm +# BENTO-94: PAM unable to dlopen(/lib64/security/pam_fprintd.so) +authconfig --disablefingerprint --update + # clean up redhat interface persistence rm -f /etc/udev/rules.d/70-persistent-net.rules sed -i 's/^HWADDR.*$//' /etc/sysconfig/network-scripts/ifcfg-eth0 From 76062cb56d671d63353da6d341dab5d9bcb8f95e Mon Sep 17 00:00:00 2001 From: Brian Flad Date: Thu, 7 Nov 2013 23:39:29 -0500 Subject: [PATCH 2/3] Move authconfig cleanup to authconfig kickstart for CentOS/RHEL 6 --- packer/http/centos-6.4/ks.cfg | 3 +-- packer/scripts/centos/cleanup.sh | 3 --- packer/scripts/centos/ks.cfg | 5 ++--- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/packer/http/centos-6.4/ks.cfg b/packer/http/centos-6.4/ks.cfg index 0cbcda37d..ceeb13e4c 100644 --- a/packer/http/centos-6.4/ks.cfg +++ b/packer/http/centos-6.4/ks.cfg @@ -5,7 +5,6 @@ keyboard us network --bootproto=dhcp rootpw --iscrypted $1$damlkd,f$UC/u5pUts5QiU3ow.CSso/ firewall --disabled -authconfig --enableshadow --passalgo=sha512 selinux --permissive timezone UTC bootloader --location=mbr @@ -14,7 +13,7 @@ skipx zerombr clearpart --all --initlabel autopart -auth --useshadow --enablemd5 +auth --disablefingerprint --enableshadow --passalgo=sha512 --kickstart firstboot --disabled reboot diff --git a/packer/scripts/centos/cleanup.sh b/packer/scripts/centos/cleanup.sh index a111947cf..cb79a25ec 100644 --- a/packer/scripts/centos/cleanup.sh +++ b/packer/scripts/centos/cleanup.sh @@ -4,9 +4,6 @@ yum -y clean all rm -rf VBoxGuestAdditions_*.iso VBoxGuestAdditions_*.iso.? rm -f /tmp/chef*rpm -# BENTO-94: PAM unable to dlopen(/lib64/security/pam_fprintd.so) -authconfig --disablefingerprint --update - # clean up redhat interface persistence rm -f /etc/udev/rules.d/70-persistent-net.rules sed -i 's/^HWADDR.*$//' /etc/sysconfig/network-scripts/ifcfg-eth0 diff --git a/packer/scripts/centos/ks.cfg b/packer/scripts/centos/ks.cfg index 0cbcda37d..f515ad36d 100644 --- a/packer/scripts/centos/ks.cfg +++ b/packer/scripts/centos/ks.cfg @@ -5,7 +5,6 @@ keyboard us network --bootproto=dhcp rootpw --iscrypted $1$damlkd,f$UC/u5pUts5QiU3ow.CSso/ firewall --disabled -authconfig --enableshadow --passalgo=sha512 selinux --permissive timezone UTC bootloader --location=mbr @@ -13,8 +12,8 @@ text skipx zerombr clearpart --all --initlabel -autopart -auth --useshadow --enablemd5 +autopart +authconfig --disablefingerprint --enableshadow --passalgo=sha512 --kickstart firstboot --disabled reboot From 3ecae0a3749e99b7bdba245e159363bcdb9285e9 Mon Sep 17 00:00:00 2001 From: Brian Flad Date: Thu, 7 Nov 2013 23:43:45 -0500 Subject: [PATCH 3/3] Consistently use auth in scripts/centos/ks.cfg http/centos-6.4/ks.cfg --- packer/scripts/centos/ks.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packer/scripts/centos/ks.cfg b/packer/scripts/centos/ks.cfg index f515ad36d..f4a943802 100644 --- a/packer/scripts/centos/ks.cfg +++ b/packer/scripts/centos/ks.cfg @@ -13,7 +13,7 @@ skipx zerombr clearpart --all --initlabel autopart -authconfig --disablefingerprint --enableshadow --passalgo=sha512 --kickstart +auth --disablefingerprint --enableshadow --passalgo=sha512 --kickstart firstboot --disabled reboot