From ee2f065c617f5f9eb444ad8cc938aba955a0b3c7 Mon Sep 17 00:00:00 2001 From: Nikhil Jha Date: Mar 10 2020 00:09:21 +0000 Subject: disable kernel updates always --- diff --git a/04-edit-fstab.sh b/04-edit-fstab.sh index 098d8b5..6112218 100755 --- a/04-edit-fstab.sh +++ b/04-edit-fstab.sh @@ -40,6 +40,9 @@ then infecho "Fixing /etc/fstab..." cat files/fstab > rootfs/etc/fstab + infecho "Disabling kernel updates..." + cat files/dnf.conf > rootfs/etc/dnf/dnf.conf + infecho "Unmounting root file system..." sleep 3 umount $PP_PARTB diff --git a/files/dnf.conf b/files/dnf.conf new file mode 100644 index 0000000..f40c0c2 --- /dev/null +++ b/files/dnf.conf @@ -0,0 +1,7 @@ +[main] +gpgcheck=1 +installonly_limit=3 +clean_requirements_on_remove=True +best=False +skip_if_unavailable=True +exclude="kernel kernel-core kernel-modules" \ No newline at end of file