From 9f328750d1dd7575bc1553c888af3d30e59dabbd Mon Sep 17 00:00:00 2001 From: xq2005 Date: Mon, 22 Oct 2012 09:23:57 +0000 Subject: [PATCH] driver load error when create stateless initrd git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14066 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/netboot/ubuntu/genimage | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-server/share/xcat/netboot/ubuntu/genimage b/xCAT-server/share/xcat/netboot/ubuntu/genimage index 069540640..c0d6d1f7e 100755 --- a/xCAT-server/share/xcat/netboot/ubuntu/genimage +++ b/xCAT-server/share/xcat/netboot/ubuntu/genimage @@ -641,7 +641,11 @@ if ($dracutmode) { mkinitrd_dracut("statelite"); mkinitrd_dracut("stateless"); } else { + my @drivers; # backup of @ndrivers + push @drivers, @ndrivers; mkinitrd("statelite"); + @ndrivers=(); + push @ndrivers, @drivers; mkinitrd("stateless"); }