From 548f2b03f133e1dd9c3cd8aaf35b7dadde577948 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 21 Mar 2005 13:13:50 +0000 Subject: factorize --- rescue/make_partimage_save_rest_all | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/rescue/make_partimage_save_rest_all b/rescue/make_partimage_save_rest_all index 93c4e463f..609ee60b2 100755 --- a/rescue/make_partimage_save_rest_all +++ b/rescue/make_partimage_save_rest_all @@ -24,6 +24,8 @@ 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" + for action in save_all rest_all; do cat < .tmp/isolinux/isolinux.cfg @@ -33,13 +35,13 @@ timeout 150 label save_all kernel vmlinuz - append initrd=all.rdz rescue save_all automatic=method:cdrom + append initrd=all.rdz $common_para save_all label rest_all kernel vmlinuz - append initrd=all.rdz rescue keepmounted rest_all automatic=method:cdrom + append initrd=all.rdz keepmounted rest_all label rescue kernel vmlinuz - append initrd=all.rdz rescue automatic=method:cdrom + append initrd=all.rdz EOF if [ $action = rest_all ]; then -- cgit v1.2.1