From f3f145c4a9ed21a44b4f3bba9a7f91796d437959 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 6 May 2008 18:18:33 +0000 Subject: [PATCH] -Suppress rpm output that is part of bug 1958359 (kernel rpm in stateless install complaining about no fstab) git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1295 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/share/xcat/netboot/rh/genimage | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xCAT-server-2.0/share/xcat/netboot/rh/genimage b/xCAT-server-2.0/share/xcat/netboot/rh/genimage index e31951a56..17c1d2760 100755 --- a/xCAT-server-2.0/share/xcat/netboot/rh/genimage +++ b/xCAT-server-2.0/share/xcat/netboot/rh/genimage @@ -78,6 +78,11 @@ unless ($onlyinitrd) { } $repnum-=1; close($yumconfig); + mkpath "$installroot/netboot/$osver/$arch/$profile/rootimg/etc"; + my $fd; + open($fd,">>","$installroot/netboot/$osver/$arch/$profile/rootimg/etc/fstab"); + print $fd "#Dummy fstab for rpm postscripts to see\n"; + close($fd); my $yumcmd = "yum -y -c /tmp/genimage.$$.yum.conf --installroot=$installroot/netboot/$osver/$arch/$profile/rootimg/ --disablerepo=* "; foreach (0..$repnum) { $yumcmd .= "--enablerepo=$osver-$arch-$_ "