qubes-installer-qubes-os/anaconda/data/post-scripts/50-qubes.ks
Marek Marczykowski-Górecki 6ec0a27683 anaconda: regenerate grub.cfg using grub2-mkconfig
Normally anaconda uses grubby to update bootloader configuration. But
unfortunately it breaks grub configuration (removes trailing "=", so
empty variable assignment xen_rm_opts= is broken). Instead of reworking
the whole bootloader support in anaconda, just regenerate grub.cfg at
the end.
2015-04-12 03:04:49 +02:00

11 lines
213 B
Plaintext

%post
rpm --import /etc/pki/rpm-gpg/*
for initrd in /boot/initramfs-*.img; do
version=`basename $initrd .img|cut -f 2- -d-`
dracut --force $initrd $version
done
grub2-mkconfig -o /boot/grub2/grub.cfg
%end