Skip to content

Commit

Permalink
Merge pull request #7417 from Obihoernchen/fix-dracut-warnings
Browse files Browse the repository at this point in the history
Fix dracut warnings during genimage on newer OSs
  • Loading branch information
Obihoernchen authored Feb 21, 2024
2 parents 2bb237e + 3fca2a3 commit 540fbf2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xCAT-server/share/xcat/netboot/rh/genimage
Original file line number Diff line number Diff line change
Expand Up @@ -1178,8 +1178,10 @@ sub mkinitrd_dracut {


print "\nchroot $rootimg_dir dracut $additional_options -f /tmp/initrd.$$.gz $kernelver\n";
mount_chroot($rootimg_dir);
!system("chroot $rootimg_dir dracut $additional_options -f /tmp/initrd.$$.gz $kernelver")
or die("Error: failed to generate the initial ramdisk for $mode.\n");
or xdie("Error: failed to generate the initial ramdisk for $mode.\n");
umount_chroot($rootimg_dir);
print "the initial ramdisk for $mode is generated successfully.\n";
move("$rootimg_dir/tmp/initrd.$$.gz", "$destdir/initrd-$mode.gz");
}
Expand Down

0 comments on commit 540fbf2

Please sign in to comment.