summaryrefslogtreecommitdiffstats
path: root/rescue
diff options
context:
space:
mode:
Diffstat (limited to 'rescue')
-rwxr-xr-xrescue/make_rescue_img7
1 files changed, 6 insertions, 1 deletions
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";