After upgrading the kernel via yum to the latest version the initramfs image file is missing the switch_root binary from the /sbin/ folder. This causes the machine to not boot, from this kernel. Adding the file back into the initramfs manually using this guide:


The machine will then boot from the new kernel. Upgrading again to a newer kernel using yum again, switch_root is missing again.

I'm assuming it is a setting somewhere that means that when yum puts together the new initramfs it is not including switch_root. Does anyone know what that setting might be?

The system is using Amazon Linux on AWS. Thanks.

  • Name your distro. – peterh Apr 4 '15 at 5:04
  • I did, it is Amazon Linux. – andrewdixon Apr 4 '15 at 7:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.