From 385b63be3fa69d662759e5751a7817cca6b7e44d Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 13 Jun 2008 13:15:31 +0000 Subject: merge partimage hooks in real rc.sysinit (and drop hardcoded leia) --- rescue/make_rescue_img | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) (limited to 'rescue/make_rescue_img') diff --git a/rescue/make_rescue_img b/rescue/make_rescue_img index 863f45371..a58cb0b79 100755 --- a/rescue/make_rescue_img +++ b/rescue/make_rescue_img @@ -55,31 +55,7 @@ if (my ($LANGUAGE) = map { if_(/LANGUAGE_(.*)/, $1) } keys %ENV) { } if ($ENV{PARTIMAGE_RPM}) { - - _ "rpm2cpio $ENV{PARTIMAGE_RPM} | (cd $tmp ; cpio -idu ./usr/sbin/partimage)"; - my $server = 'partimaged'; - $server = 'leia'; - - my $default_dir = '/data/box'; - - substInFile { - $_ = " server=$server\n" . " default_dir=$default_dir\n" . <<'EOF' if /^\s*rescue-gui/; - - partimage_dir=`perl -lne 'print $1 if /BOX=(\S+)/' /proc/cmdline` - [ -z "$partimage_dir" ] && partimage_dir=$default_dir - - if grep -q save_all /proc/cmdline; then - partimage_whole_disk -s $server save_all $default_dir - fi - if grep -q rest_all /proc/cmdline; then - if [ -d /tmp/image$partimage_dir ]; then - partimage_whole_disk rest_all /tmp/image$partimage_dir - else - partimage_whole_disk -s $server rest_all $partimage_dir - fi - fi -EOF - } "$tmp/etc/rc.sysinit"; + #_ "rpm2cpio $ENV{PARTIMAGE_RPM} | (cd $tmp ; cpio -idu ./usr/sbin/partimage)"; } exit 0 if $ARGV[0]; -- cgit v1.2.1