summaryrefslogtreecommitdiffstats
path: root/rescue
diff options
context:
space:
mode:
authorStew Benedict <stewb@mandriva.org>2001-12-12 20:32:17 +0000
committerStew Benedict <stewb@mandriva.org>2001-12-12 20:32:17 +0000
commit7686b403bdc5b3de0a00decccecf28af0e7c1b54 (patch)
tree38146232c5ad2515a37845755c7586864efaf4c6 /rescue
parent2db498ee242e3170dad946885815f8cb064a3cf0 (diff)
downloaddrakx-backup-do-not-use-7686b403bdc5b3de0a00decccecf28af0e7c1b54.tar
drakx-backup-do-not-use-7686b403bdc5b3de0a00decccecf28af0e7c1b54.tar.gz
drakx-backup-do-not-use-7686b403bdc5b3de0a00decccecf28af0e7c1b54.tar.bz2
drakx-backup-do-not-use-7686b403bdc5b3de0a00decccecf28af0e7c1b54.tar.xz
drakx-backup-do-not-use-7686b403bdc5b3de0a00decccecf28af0e7c1b54.zip
larger rescue image on PPC to accomodate huge xfs module
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";