{"id":2091,"date":"2026-10-09T23:27:30","date_gmt":"2026-10-09T23:27:30","guid":{"rendered":"https:\/\/pro.osassistance.com\/?p=2091"},"modified":"2026-10-09T23:40:41","modified_gmt":"2026-10-09T23:40:41","slug":"kernel-missing-from-boot","status":"publish","type":"post","link":"https:\/\/osassistance.com\/blog\/kernel-missing-from-boot\/","title":{"rendered":"RHEL 8 Kernel Missing from \/boot? Safe DNF Repair"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"RHEL_8_Kernel_Missing_from_boot_How_to_Diagnose_and_Reinstall_Safely\"><\/span>RHEL 8 Kernel Missing from \/boot? How to Diagnose and Reinstall Safely<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">If DNF reports \u201cNothing to do\u201d but the expected kernel image is missing from <code>\/boot<\/code>, the server needs a closer check before its next reboot. DNF\u2019s update result tells you whether it found an applicable package update through the enabled repositories and current configuration. It does not confirm that every kernel file expected on disk is present.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This guide shows how to compare the installed RPM records with the files and mount state, check common DNF update blockers, and use DNF to reinstall a kernel package when the package is recorded as installed but its files are missing. The examples target Red Hat Enterprise Linux (RHEL) 8. Other RPM-based distributions may use similar commands, but package versions, repositories, and vendor procedures can differ.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Before you start:<\/strong> Take a VM snapshot or verified backup according to your change process. Confirm that you have an approved maintenance window and a recovery path such as cloud console or out-of-band access before changing kernel packages or rebooting a production server.<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_can_DNF_say_%E2%80%9CNothing_to_do%E2%80%9D_when_a_kernel_file_is_missing\"><\/span>Why can DNF say \u201cNothing to do\u201d when a kernel file is missing?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">DNF works from package metadata, installed package records, enabled repositories, and configured policies. A \u201cNothing to do\u201d result means that DNF did not select an applicable update in that transaction. It is not a file-integrity check for paths such as <code>\/boot\/vmlinuz-&lt;kernel-version&gt;<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Several conditions can lead to this mismatch. A file may have been removed outside the package manager, the separate <code>\/boot<\/code> filesystem may not be mounted, an update may have been blocked by a repository or version policy, or a kernel installation script may not have produced the expected boot artifacts. Red Hat also documents a RHEL 8 case where kernel files are not deployed when <code>\/etc\/machine-id<\/code> is missing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Treat these as separate checks. A failed package transaction may explain why an update did not complete, but it does not by itself prove that the RPM database is out of sync or explain why files from an already-installed kernel are absent.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_Check_the_running_kernel_installed_packages_and_boot\"><\/span>1. Check the running kernel, installed packages, and \/boot<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Start with read-only checks. They help determine whether the server is running the intended kernel and whether the expected boot filesystem is mounted.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>uname -r\ncat \/etc\/redhat-release\nfindmnt -T \/boot\ndf -h \/boot\nrpm -q kernel kernel-core kernel-modules\nls -lh \/boot\/vmlinuz-* \/boot\/initramfs-*.img 2&gt;\/dev\/null<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Compare the output from <code>rpm -q<\/code> with the filenames under <code>\/boot<\/code>. On RHEL 8, <code>kernel-core<\/code> provides the kernel image and core files; <code>kernel-modules<\/code> provides additional modules; and <code>kernel<\/code> is a meta-package. The package names and version-release values should match for the kernel you plan to boot.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If <code>\/boot<\/code> is a separate filesystem, confirm that it is mounted from the expected device. A missing mount can make the directory appear empty or show files from the underlying root filesystem. Also check available space before attempting a reinstall.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To verify the files recorded for one installed kernel package, substitute its exact version-release and architecture from the <code>rpm -q<\/code> output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rpm -V kernel-core-&lt;version-release.arch&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">RPM prints verification differences, including a \u201cmissing\u201d marker when a tracked file is absent. If the package is not listed by <code>rpm -q<\/code>, it is not an installed package record; use the appropriate install procedure instead of <code>dnf reinstall<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Check_whether_DNF_can_see_the_expected_kernel_version\"><\/span>2. Check whether DNF can see the expected kernel version<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before changing packages, confirm that the right repositories are enabled and that the target kernel version is available:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dnf repolist --enabled\ndnf list --showduplicates kernel kernel-core kernel-modules<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Review package exclusions in the main DNF configuration and repository files:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>grep -RniE '^(exclude|excludepkgs)=' \/etc\/dnf\/dnf.conf \/etc\/yum.repos.d\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If your environment uses the DNF versionlock plugin, check its policy as well:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dnf versionlock list<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The command may be unavailable when the plugin is not installed. Do not remove an exclusion or version lock without checking your organization\u2019s change controls. If policy permits, you can use DNF\u2019s <code>--disableexcludes=all<\/code> option for a one-time comparison, then return to the approved repository configuration.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_Reinstall_the_exact_kernel_package_when_RPM_shows_it_installed\"><\/span>3. Reinstall the exact kernel package when RPM shows it installed<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If <code>rpm -q<\/code> shows the affected kernel version as installed, its tracked files are missing, and the matching RPM is available from an approved repository, use DNF\u2019s reinstall operation. Replace the placeholders below with the same exact version-release and architecture for the installed kernel packages. Review the proposed transaction before confirming it.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf reinstall \\\n  kernel-&lt;version-release.arch&gt; \\\n  kernel-core-&lt;version-release.arch&gt; \\\n  kernel-modules-&lt;version-release.arch&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">DNF can reinstall only packages that are recorded as installed and available from an enabled repository. If the exact package version is unavailable, verify repository access and entitlement or use your organization\u2019s approved package source. Avoid downloading kernel RPMs from an untrusted source.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After the reinstall completes, check the target files and boot entry before scheduling a reboot:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls -lh \/boot\/vmlinuz-&lt;version-release.arch&gt; \\\n  \/boot\/initramfs-&lt;version-release.arch&gt;.img\ngrubby --info=ALL<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If DNF reports success but the files are still missing, stop and review the transaction details, the <code>\/boot<\/code> mount, available space, and <code>\/etc\/machine-id<\/code>. Do not repeatedly reinstall or rebuild the initramfs without understanding the underlying error. For managed RHEL systems, consult Red Hat Support or your platform team when package scriptlets or boot artifacts continue to fail.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When all expected files and a usable boot entry are present, reboot during the approved window. After startup, verify the active kernel:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>uname -r<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The running version should match the kernel you intended to activate.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4_Handle_PAM_multilib_conflicts_carefully\"><\/span>4. Handle PAM multilib conflicts carefully<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A DNF transaction test can report file conflicts between architecture variants of a package, such as <code>pam.i686<\/code> and <code>pam.x86_64<\/code>. If that happens, treat the conflict as a package-management issue to investigate. Do not assume that every 32-bit PAM package is unnecessary, and do not remove it simply because the server is 64-bit.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First inspect the exact installed packages and the removal transaction. The <code>--assumeno<\/code> option lets you review the proposed changes without accepting them:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rpm -q pam.i686 pam.x86_64\nsudo dnf remove pam.i686 --assumeno<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If a legacy application depends on 32-bit libraries, involve its owner before changing packages. Also check for inconsistent repository content or package versions. A failed transaction means that transaction did not complete; it is not evidence by itself that unrelated RPM database records were partially written.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"5_Free_boot_space_with_package-manager_cleanup\"><\/span>5. Free \/boot space with package-manager cleanup<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If <code>df -h \/boot<\/code> shows that the filesystem is full, review installed kernels and your retention policy before cleanup. Avoid deleting kernel images or initramfs files with <code>rm<\/code>; package-manager cleanup preserves RPM bookkeeping.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">DNF provides an <code>--oldinstallonly<\/code> option for removing older install-only packages while retaining the running kernel and newer versions. Review the proposed transaction carefully and preserve the number of fallback kernels required by your operational policy:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf remove --oldinstallonly<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Do not reduce kernel retention simply to make an update pass if the server needs a tested fallback kernel. If the boot filesystem is consistently too small for the system\u2019s kernel and initramfs files, plan a storage change through your platform\u2019s supported process.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Quick_troubleshooting_checklist\"><\/span>Quick troubleshooting checklist<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Finding<\/th><th>What to check next<\/th><\/tr><\/thead><tbody><tr><td>DNF says \u201cNothing to do\u201d<\/td><td>Enabled repositories, exclusions, version locks, and available kernel versions<\/td><\/tr><tr><td>RPM lists a kernel but files are missing<\/td><td><code>findmnt -T \/boot<\/code>, <code>rpm -V kernel-core-&lt;NEVRA&gt;<\/code>, and the last DNF transaction<\/td><\/tr><tr><td>DNF reports a PAM multilib conflict<\/td><td>Exact package versions, enabled repository consistency, and application dependencies<\/td><\/tr><tr><td><code>\/boot<\/code> has little or no free space<\/td><td>DNF install-only kernel cleanup and the approved kernel retention policy<\/td><\/tr><tr><td>Reinstall succeeds but files remain absent<\/td><td><code>\/etc\/machine-id<\/code>, package scriptlet output, mount state, and vendor support guidance<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Frequently_asked_questions\"><\/span>Frequently asked questions<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Does_dnf_update_repair_missing_files_from_an_installed_kernel\"><\/span>Does <code>dnf update<\/code> repair missing files from an installed kernel?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Not necessarily. An update checks for applicable package updates; use <code>rpm -V<\/code> to inspect package files and consider <code>dnf reinstall<\/code> when the exact installed package is available and its files are missing.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Should_I_remove_pami686_to_fix_a_kernel_update\"><\/span>Should I remove <code>pam.i686<\/code> to fix a kernel update?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Only if you have confirmed that the package is not required and the proposed DNF transaction is safe. A multilib conflict should be diagnosed from its exact error and dependencies.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Can_I_delete_old_kernel_files_manually_to_make_room\"><\/span>Can I delete old kernel files manually to make room?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Use DNF\u2019s install-only cleanup and review the transaction. Manual file deletion can leave package records and bootloader entries inconsistent.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Need_help_with_Linux_patching_or_kernel_troubleshooting\"><\/span>Need help with Linux patching or kernel troubleshooting?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">OS Assistance provides remote Linux administration and infrastructure support. <a href=\"https:\/\/osassistance.com\/contact\/\">Contact OS Assistance<\/a> to discuss a server issue or <a href=\"https:\/\/osassistance.com\/LinuxCare\/\">learn about Linux Care<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Author: Thomas Cherian | OS Assistance<\/em><br><em>Reviewed: October 2026<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Technical_references\"><\/span>Technical references<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/docs.redhat.com\/en\/documentation\/red_hat_enterprise_linux\/8\/html\/system_design_guide\/assembly_the-linux-kernel_system-design-guide\" rel=\"nofollow noopener\" target=\"_blank\">Red Hat Enterprise Linux 8: The Linux kernel RPM package overview<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.redhat.com\/en\/documentation\/red_hat_enterprise_linux\/8\/html\/installing_managing_and_removing_user-space_components\/updating-software-packages_using-appstream\" rel=\"nofollow noopener\" target=\"_blank\">Red Hat Enterprise Linux 8: Updating software packages<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/dnf.readthedocs.io\/en\/stable\/command_ref.html\" rel=\"nofollow noopener\" target=\"_blank\">DNF Command Reference: reinstall and remove &#8211;oldinstallonly<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/access.redhat.com\/solutions\/7011451\" rel=\"nofollow noopener\" target=\"_blank\">Red Hat Knowledgebase: Kernel files not deployed when \/etc\/machine-id is missing<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>RHEL 8 Kernel Missing from \/boot? How to Diagnose and Reinstall Safely If DNF reports \u201cNothing to do\u201d but the expected kernel image is missing from \/boot, the server needs a closer check before its next reboot. DNF\u2019s update result tells you whether it found an applicable package update through the enabled repositories and current&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-2091","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"taxonomy_info":{"category":[{"value":1,"label":"Uncategorized"}]},"featured_image_src_large":false,"author_info":{"display_name":"Thomas","author_link":"https:\/\/osassistance.com\/blog\/author\/thomasc\/"},"comment_info":2,"category_info":[{"term_id":1,"name":"Uncategorized","slug":"uncategorized","term_group":0,"term_taxonomy_id":1,"taxonomy":"category","description":"","parent":0,"count":7,"filter":"raw","cat_ID":1,"category_count":7,"category_description":"","cat_name":"Uncategorized","category_nicename":"uncategorized","category_parent":0}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/osassistance.com\/blog\/wp-json\/wp\/v2\/posts\/2091","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/osassistance.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/osassistance.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/osassistance.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/osassistance.com\/blog\/wp-json\/wp\/v2\/comments?post=2091"}],"version-history":[{"count":1,"href":"https:\/\/osassistance.com\/blog\/wp-json\/wp\/v2\/posts\/2091\/revisions"}],"predecessor-version":[{"id":2092,"href":"https:\/\/osassistance.com\/blog\/wp-json\/wp\/v2\/posts\/2091\/revisions\/2092"}],"wp:attachment":[{"href":"https:\/\/osassistance.com\/blog\/wp-json\/wp\/v2\/media?parent=2091"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/osassistance.com\/blog\/wp-json\/wp\/v2\/categories?post=2091"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/osassistance.com\/blog\/wp-json\/wp\/v2\/tags?post=2091"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}