dracut-nohostonly and dracut-norescue got renamed for dracut >= 030
This commit is contained in:
parent
99b9300602
commit
2402b6a85f
@ -111,7 +111,8 @@ passwd -d root > /dev/null
|
||||
cat /dev/null > /dev/fstab
|
||||
|
||||
11. Don't delete initramfs files from /boot in %post
|
||||
12. Have dracut-norescue, grub-efi, memtest86+ and syslinux in the package list
|
||||
12. Have grub-efi, memtest86+ and syslinux in the package list
|
||||
13. Omit dracut-config-rescue from the package list "-dracut-config-rescue"
|
||||
|
||||
One drawback to using virt-install is that it pulls the packages from
|
||||
the repo each time you run it. To speed things up you either need a local
|
||||
|
@ -64,7 +64,7 @@ iputils
|
||||
cloud-init
|
||||
|
||||
grub
|
||||
dracut-norescue
|
||||
-dracut-config-rescue
|
||||
%end
|
||||
|
||||
# more ec2-ify
|
||||
|
@ -386,5 +386,5 @@ grub2-efi
|
||||
grub2
|
||||
shim
|
||||
syslinux
|
||||
dracut-norescue
|
||||
-dracut-config-rescue
|
||||
%end
|
||||
|
@ -34,6 +34,7 @@ Requires: util-linux
|
||||
Requires: xz
|
||||
Requires: yum
|
||||
Requires: pykickstart
|
||||
Requires: dracut >= 030
|
||||
|
||||
%if 0%{?fedora}
|
||||
# Fedora specific deps
|
||||
|
@ -23,7 +23,8 @@ removefrom ${product.name}-logos /usr/share/plymouth/*
|
||||
## We also need dracut-shutdown.service and dracut-initramfs-restore to reboot
|
||||
removefrom dracut --allbut /usr/lib/dracut/modules.d/30convertfs/convertfs.sh \
|
||||
/usr/lib/dracut/modules.d/99base/dracut-lib.sh \
|
||||
/usr/lib/systemd/* /usr/lib/dracut/dracut-initramfs-restore
|
||||
/usr/lib/systemd/* /usr/lib/dracut/modules.d/98systemd/*.service \
|
||||
/usr/lib/dracut/dracut-initramfs-restore
|
||||
## we don't run SELinux (not in enforcing, anyway)
|
||||
removepkg checkpolicy selinux-policy libselinux-utils
|
||||
## anaconda has its own repo files
|
||||
|
@ -45,7 +45,7 @@ installpkg kernel
|
||||
installpkg plymouth
|
||||
|
||||
## extra dracut modules
|
||||
installpkg anaconda-dracut dracut-network dracut-nohostonly dracut-norescue
|
||||
installpkg anaconda-dracut dracut-network dracut-config-generic
|
||||
|
||||
## fedup-dracut handles upgrades
|
||||
installpkg fedup-dracut fedup-dracut-plymouth
|
||||
|
@ -364,8 +364,9 @@ class KernelInfo(object):
|
||||
Examine the vmlinuz-* versions and return a list of them
|
||||
|
||||
Ignore any with -rescue- in them, these are dracut rescue images.
|
||||
The user shoud add dracut-norescue package to the kickstart to remove them,
|
||||
but catch it here as well.
|
||||
The user shoud add
|
||||
-dracut-config-rescue
|
||||
to the kickstart to remove them, but catch it here as well.
|
||||
"""
|
||||
files = os.listdir(self.boot_dir)
|
||||
return [f[8:] for f in files if f.startswith("vmlinuz-") \
|
||||
|
Loading…
Reference in New Issue
Block a user