From 90ed515fb37b8b85015ecf8f580467b7cc14499c Mon Sep 17 00:00:00 2001 From: ligc Date: Wed, 28 Aug 2013 11:25:53 +0800 Subject: [PATCH] support genesis-base on ppc64: use -N with dracut command on ppc64 --- xCAT-genesis-builder/buildrpm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xCAT-genesis-builder/buildrpm b/xCAT-genesis-builder/buildrpm index 287a6ecd3..cc402c395 100755 --- a/xCAT-genesis-builder/buildrpm +++ b/xCAT-genesis-builder/buildrpm @@ -77,8 +77,13 @@ if [ "$HOSTOS" = "mcp" ]; then else echo Creating the initramfs in /tmp/xcatgenesis.$$.rfs using dracut ... fi -dracut -m "xcat base" -N -f /tmp/xcatgenesis.$$.rfs $KERNELVERSION +# On Fedora 20 ppc64, dracut uses host-only mode by default +if [ `uname -m` = "ppc64" ]; then + dracut -m "xcat base" -N -f /tmp/xcatgenesis.$$.rfs $KERNELVERSION +else + dracut -m "xcat base" -f /tmp/xcatgenesis.$$.rfs $KERNELVERSION +fi echo Expanding the initramfs into /tmp/xcatgenesis.$$/opt/xcat/share/xcat/netboot/genesis/`uname -m`/fs ... cd /tmp/xcatgenesis.$$/opt/xcat/share/xcat/netboot/genesis/`uname -m`/fs zcat /tmp/xcatgenesis.$$.rfs|cpio -dumi