summaryrefslogtreecommitdiffstats
path: root/rescue
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-04-19 13:09:22 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-04-19 13:09:22 +0000
commit0fe86605c426e8b502553f9b43d7c053de018ae5 (patch)
tree9d6e686785a77d52b0005ca64655b0963fd27b48 /rescue
parent85e2e169a80005007d0b2db8050e3c8a97adad65 (diff)
downloaddrakx-backup-do-not-use-0fe86605c426e8b502553f9b43d7c053de018ae5.tar
drakx-backup-do-not-use-0fe86605c426e8b502553f9b43d7c053de018ae5.tar.gz
drakx-backup-do-not-use-0fe86605c426e8b502553f9b43d7c053de018ae5.tar.bz2
drakx-backup-do-not-use-0fe86605c426e8b502553f9b43d7c053de018ae5.tar.xz
drakx-backup-do-not-use-0fe86605c426e8b502553f9b43d7c053de018ae5.zip
- allow specifying something else than /data/box
- acpi=ht by default
Diffstat (limited to 'rescue')
-rwxr-xr-xrescue/make_partimage_save_rest_all15
1 files changed, 9 insertions, 6 deletions
diff --git a/rescue/make_partimage_save_rest_all b/rescue/make_partimage_save_rest_all
index 3208b783e..e1be1ed2d 100755
--- a/rescue/make_partimage_save_rest_all
+++ b/rescue/make_partimage_save_rest_all
@@ -1,17 +1,20 @@
#!/bin/sh
-[ $# != 1 -a $# != 2 ] && {
- echo "usage: make_partimage_save_rest_all <partimage special rpm> [<partimage dir>]" ;
+[ $# != 1 -a $# != 2 -a $# != 3 ] && {
+ echo "usage: make_partimage_save_rest_all <partimage special rpm> [<partimage dir> [</data/box>]]" ;
exit 1
}
rpm=$1
partimage_dir=$2
+local_where=$3
+
where=/data/box
+[ -z "$local_where" ] && local_where=$where
if [ -n "$partimage_dir" ]; then
- [ -d "$partimage_dir$where" ] || {
- echo "can't find $partimage_dir$where"
+ [ -d "$partimage_dir$local_where" ] || {
+ echo "can't find $partimage_dir$local_where"
exit 1
}
fi
@@ -24,7 +27,7 @@ PARTIMAGE_DIR="$where" PARTIMAGE_RPM=$rpm DISTRIB_DESCR="partimage save/restore
mkdir -p .tmp/install/stage2
mv -f rescue.clp .tmp/install/stage2
-common_para="rescue automatic=method:cdrom"
+common_para="rescue acpi=ht automatic=method:cdrom"
# hda=4864,255,63
for action in save_all rest_all; do
@@ -47,7 +50,7 @@ EOF
if [ $action = rest_all ]; then
mkdir -p .tmp$where
- ln -s $partimage_dir$where/* .tmp$where
+ ln -s $partimage_dir$local_where/* .tmp$where
fi
mkisofs -f -o part_$action.iso -r -J -hide-rr-moved -nobak -cache-inodes -publisher Mandrakesoft -V 'mdk part save/rest' -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table .tmp