diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-02-02 11:25:01 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-02-02 11:25:01 +0000 |
commit | cbc58c126113bda792170eb9a33a9e606619f745 (patch) | |
tree | 896385a19413c92356e0fa91a205b7243dcdab3e /rescue/make_partimage_save_rest_all | |
parent | b66921f290705eca2e99aa349b5c37c7b8ef0a47 (diff) | |
download | drakx-backup-do-not-use-cbc58c126113bda792170eb9a33a9e606619f745.tar drakx-backup-do-not-use-cbc58c126113bda792170eb9a33a9e606619f745.tar.gz drakx-backup-do-not-use-cbc58c126113bda792170eb9a33a9e606619f745.tar.bz2 drakx-backup-do-not-use-cbc58c126113bda792170eb9a33a9e606619f745.tar.xz drakx-backup-do-not-use-cbc58c126113bda792170eb9a33a9e606619f745.zip |
add a basic partimage save_all/rest_all feature
Diffstat (limited to 'rescue/make_partimage_save_rest_all')
-rwxr-xr-x | rescue/make_partimage_save_rest_all | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/rescue/make_partimage_save_rest_all b/rescue/make_partimage_save_rest_all new file mode 100755 index 000000000..cf4c79d2c --- /dev/null +++ b/rescue/make_partimage_save_rest_all @@ -0,0 +1,37 @@ +#!/bin/sh + +[ $# != 1 ] && { + echo "usage: make_partimage_save_rest_all <partimage special rpm>" ; + exit 1 +} + +rpm=$1 +where=/data/box + +rm -rf .tmp +mkdir -p .tmp/isolinux +cp -f /usr/lib/syslinux/isolinux.bin ../isolinux/alt0/* .tmp/isolinux + +PARTIMAGE_DIR="$where" PARTIMAGE_RPM=$rpm DISTRIB_DESCR="partimage save/restore all" ./make_rescue_img +mkdir -p .tmp/install/stage2 +mv -f rescue.clp .tmp/install/stage2 + +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 rescue save_all automatic=method:cdrom +label rest_all + kernel vmlinuz + append initrd=all.rdz rescue rest_all automatic=method:cdrom +EOF + + mkisofs -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 +done + +rm -rf .tmp |