diff options
author | Mystery Man <unknown@mandriva.org> | 2005-12-18 12:19:48 +0000 |
---|---|---|
committer | Mystery Man <unknown@mandriva.org> | 2005-12-18 12:19:48 +0000 |
commit | de25dab468737adae2c3f5d45a8bd7eb3fdc83e6 (patch) | |
tree | 874cebd5583c01c90ba083411b4b495dfb517b9a /rescue/make_partimage_save_rest_all | |
parent | 575a03f47cd0de3af62c1b2f2685324943feb08a (diff) | |
download | drakx-backup-do-not-use-10_4_6_1mdk.tar drakx-backup-do-not-use-10_4_6_1mdk.tar.gz drakx-backup-do-not-use-10_4_6_1mdk.tar.bz2 drakx-backup-do-not-use-10_4_6_1mdk.tar.xz drakx-backup-do-not-use-10_4_6_1mdk.zip |
This commit was manufactured by cvs2svn to create tag 'V10_4_6_1mdk'.V10_4_6_1mdk
Diffstat (limited to 'rescue/make_partimage_save_rest_all')
-rwxr-xr-x | rescue/make_partimage_save_rest_all | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/rescue/make_partimage_save_rest_all b/rescue/make_partimage_save_rest_all deleted file mode 100755 index 20d0673b6..000000000 --- a/rescue/make_partimage_save_rest_all +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/sh - -[ $# -lt 1 ] && { - echo "usage: make_partimage_save_rest_all <partimage special rpm> [<partimage dir> <data dirs>]" ; - exit 1 -} - -rpm=$1 ; shift -partimage_dir=$1 ; shift - -if [ -n "$partimage_dir" ]; then - first_data_dir="$partimage_dir$1" - - [ -d "$first_data_dir" ] || { - echo "can't find $first_data_dir" - exit 1 - } - [ -r "$first_data_dir/lst" ] || { - echo "can't read $first_data_dir/*" - exit 1 - } -fi - -rm -rf .tmp -mkdir -p .tmp/isolinux -cp -f /usr/lib/syslinux/isolinux.bin ../isolinux/alt0/* .tmp/isolinux - -PARTIMAGE_DIR="$@" PARTIMAGE_RPM=$rpm DISTRIB_DESCR="partimage save/restore all" ./make_rescue_img || exit 1 -mkdir -p .tmp/install/stage2 -mv -f rescue.clp .tmp/install/stage2 - -common_para="rescue automatic=method:cdrom" -# hda=4864,255,63 acpi=ht - -for action in save_all rest_all; do - - cat <<EOF > .tmp/isolinux/isolinux.cfg -default $action -prompt 1 -timeout 150 - -label save_all - kernel vmlinuz - append initrd=all.rdz $common_para save_all -label rest_all - kernel vmlinuz - append initrd=all.rdz $common_para rest_all keepmounted -label rescue - kernel vmlinuz - append initrd=all.rdz $common_para -EOF - - if [ $action = rest_all -a -n "$partimage_dir" ]; then - for i in $*; do - dir=`dirname $i` - mkdir -p .tmp$dir - ln -s $partimage_dir$i .tmp$dir - done - fi - - mkisofs -f -o part_$action.iso -r -J -hide-rr-moved -nobak -cache-inodes -publisher Mandriva -V 'mdk part save/rest' -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table .tmp - mkcd --addmd5 part_$action.iso -done - -rm -rf .tmp |