1
0
Fork 0

unix-setup.sh: remove the 64K kernel

This commit is contained in:
Pratham Patel 2024-03-19 14:43:17 +05:30
parent 7fc94337fc
commit c804af3a2e
Signed by: thefossguy
SSH Key Fingerprint: SHA256:/B3wAg7jnMEBQ2JwkebbS/eXVZANDmqRfnd9QkIhxMI
1 changed files with 0 additions and 11 deletions

View File

@ -116,13 +116,6 @@ function enable_epel() {
sudo dnf install --assumeyes epel-release
fi
}
function install_64k_kernel() {
sudo dnf install -y kernel-64k
KERNEL_64K=$(echo /boot/vmlinuz*64k)
sudo grubby --set-default="${KERNEL_64K}" \
--update-kernel="${KERNEL_64K}" \
--args='crashkernel=2G-:640M'
}
function install_pkgs_rhel() {
sudo dnf clean expire-cache
enable_epel "$1"
@ -215,12 +208,8 @@ if [[ "$(uname -s)" == 'Linux' ]]; then
function unix_setup() {
dnf_conf
install_pkgs_rhel "${RHEL_VERSION}"
install_64k_kernel
enable_ssh_daemon_fedora
common_setup
echo '64K kernel has been installed and will be what gets used upon the next boot.'
# shellcheck disable=SC2016
echo 'Please run `sudo dnf erase kernel` upon the next boot.'
}
else
echo 'Unsupported Linux distribution.'