mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-09-05 17:58:14 +00:00
Fix RHEL8 driverdisk injection
RHEL8 shuffled package around, follow new location.
This commit is contained in:
@@ -2536,7 +2536,7 @@ sub insert_dd {
|
||||
# dracut + drvier rpm
|
||||
# !dracut + driver rpm
|
||||
# !dracut + driver disk
|
||||
if (!<$install_dir/$os/$arch/Packages/dracut*> || (@rpm_list && ($Injectalldriver || $updatealldriver || @driver_list))) {
|
||||
if (!(<$install_dir/$os/$arch/Packages/dracut*> || <$install_dir/$os/$arch/BaseOS/Packages/dracut*>) || (@rpm_list && ($Injectalldriver || $updatealldriver || @driver_list))) {
|
||||
mkpath "$dd_dir/initrd_img"; # The dir for the new initrd
|
||||
|
||||
# unzip the initrd image
|
||||
@@ -2684,7 +2684,7 @@ sub insert_dd {
|
||||
# If the os has dracut rpm packet, then copy the drivers to the /lib/modules/<kernel>
|
||||
# and recreate the dependency by the depmod command
|
||||
|
||||
if (<$install_dir/$os/$arch/Packages/dracut*>) { #rh6, fedora13 ...
|
||||
if (<$install_dir/$os/$arch/Packages/dracut*> || <$install_dir/$os/$arch/BaseOS/Packages/dracut*>) { #rh6, fedora13 ...
|
||||
# For dracut mode, only copy the drivers from rpm packages to the /lib/modules/<kernel>
|
||||
# The driver disk will be handled that append the whole disk to the orignial initrd
|
||||
|
||||
@@ -3231,7 +3231,7 @@ EOMS
|
||||
my $kerneladd = "";
|
||||
|
||||
# dracut + driver disk, just append the driver disk to the initrd
|
||||
if (<$install_dir/$os/$arch/Packages/dracut*> && @dd_list) { #new style, skip the fanagling, copy over the dds and append them...
|
||||
if ((<$install_dir/$os/$arch/Packages/dracut*> || <$install_dir/$os/$arch/BaseOS/Packages/dracut*>) && @dd_list) { #new style, skip the fanagling, copy over the dds and append them...
|
||||
mkpath("$dd_dir/dd");
|
||||
if (scalar(@dd_list) == 1) { #only one, just append it..
|
||||
copy($dd_list[0], "$dd_dir/dd/dd.img");
|
||||
|
Reference in New Issue
Block a user