There was a rsync backup running, I ran yum update, it was 4am I wanted to go to bed.
So yum update doesn't complete, gets stuck on kexec-tools cleanup with 134 package left to clean.
I run `yum-complete-transaction` and then `yum-complete-transaction --cleanup-only`
I re-install grub2 because that had a dependency conflict
Then package-clean ... --cleanduplicates I believe, to remove the older packages.
reboot, dead server
boot into the datacenter's rescue via pxe
mount the root partition to /mnt and the boot partition to /mnt/boot
it's a RAID LSI Logic / Symbios Logic MegaRAID SAS 2108 [Liberator] raid setup
so I'm talking to /dev/sda
/dev/sda4 is root
/dev/sda2 is boot
so, I "arch-chroot" into the system
remove kernels, install latest kernel so dracut regenerates
I ran grub2-install /dev/sda
no issues
I exit, unmount and reboot
unbootable system.
When I installed this system a short while ago I had to create a bios boot partition, or rather the installer created it automatically.
CentOS seems to do some boot magic which I don't understand or have no insight into.
cfdisk shows
Code: Select all
Part. # Size Partition Type Partition Name
----------------------------------------------------------------
1007.0 KiB free space
1 1024.0 KiB BIOS boot partition
2 1024.0 MiB Microsoft basic data
3 15.7 GiB Linux swap
4 3.6 TiB Microsoft basic data
1007.5 KiB free space
update:
removed rhgb quiet
grub2-mkconfig -o /boot/grub2/grub.cfg
reboot
something about plymouth failing to import network config or w/e
and a bunch of selinux errors
I'll try disabling selinux temporarily