Skip to content

Commit

Permalink
Fix dracut warnings during genimage on newer OSs
Browse files Browse the repository at this point in the history
  • Loading branch information
Obihoernchen committed Feb 7, 2024
1 parent 6b8c669 commit d9487d1
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 d9487d1

Please sign in to comment.