From 8455d306879bc5b7ffc4a57ffa8800b273039f33 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 24 May 2021 18:30:48 -0400 Subject: [PATCH] Disable selinux for now in a built image --- confluent_osdeploy/diskless/build/genimage | 1 + 1 file changed, 1 insertion(+) diff --git a/confluent_osdeploy/diskless/build/genimage b/confluent_osdeploy/diskless/build/genimage index 6bc01ec4..68e3d9f8 100644 --- a/confluent_osdeploy/diskless/build/genimage +++ b/confluent_osdeploy/diskless/build/genimage @@ -20,6 +20,7 @@ yum -y $capsargs --releasever=8 --installroot=$installroot install $pkglist cp -a $mydir/dracut $installroot/usr/lib/dracut/modules.d/97diskless chmod a+x $installroot/usr/lib/dracut/modules.d/97diskless/* " +sed -i s/SELINUX=enforcing/SELINUX=disabled/ $installroot/etc/selinux/config for kernel in $(ls $installroot/boot/vmlinuz-*|grep -v rescue|sed -e s/.*vmlinuz-//); do echo -n "Creating diskless initramfs for $kernel" chroot $installroot dracut -v --xz -N -m "diskless base terminfo" -f boot/initramfs-diskless-$kernel.img $kernel