From 7686b403bdc5b3de0a00decccecf28af0e7c1b54 Mon Sep 17 00:00:00 2001 From: Stew Benedict Date: Wed, 12 Dec 2001 20:32:17 +0000 Subject: larger rescue image on PPC to accomodate huge xfs module --- rescue/make_rescue_img | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rescue/make_rescue_img b/rescue/make_rescue_img index e6c744e53..b086b996e 100755 --- a/rescue/make_rescue_img +++ b/rescue/make_rescue_img @@ -95,7 +95,12 @@ __ "strip $tmp/{lib,bin,sbin}/* $tmp/usr/{bin,sbin}/* 2>/dev/null"; exit 0 if $ARGV[0]; -$size = `du -s $tmp | cut -f1` + 2048; #- add 2MB of free space +if ($arch =~ /ppc/) { + #- xfs module on PPC is 4MB! - need room to unpack it + $size = `du -s $tmp | cut -f1` + 4096; #- add 4MB of free space +} else { + $size = `du -s $tmp | cut -f1` + 2048; #- add 2MB of free space +} mkdir_p($mnt); __ "$sudo umount $rescue 2>/dev/null"; -- cgit v1.2.1