diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-09-25 18:36:02 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-09-25 18:36:02 +0000 |
commit | 0c03430726f8934f58e566d14739a034233f8306 (patch) | |
tree | 30b86c602702dc18c82c26b1364c67fecc3aa40b /rescue/restore-image.sh | |
parent | 74f05c5a4d1010f388bb7f360464f32a5d75ef92 (diff) | |
download | drakx-0c03430726f8934f58e566d14739a034233f8306.tar drakx-0c03430726f8934f58e566d14739a034233f8306.tar.gz drakx-0c03430726f8934f58e566d14739a034233f8306.tar.bz2 drakx-0c03430726f8934f58e566d14739a034233f8306.tar.xz drakx-0c03430726f8934f58e566d14739a034233f8306.zip |
adapt to rescue
Diffstat (limited to 'rescue/restore-image.sh')
-rwxr-xr-x | rescue/restore-image.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh index e22763782..ff9b8dd92 100755 --- a/rescue/restore-image.sh +++ b/rescue/restore-image.sh @@ -7,7 +7,7 @@ fi export PATH="/sbin:/bin:/usr/sbin:/usr/bin" -images_dir="/ramdisk/live/media/images" +images_dir="/tmp/media/images" images="$images_dir/list" image="" @@ -69,7 +69,7 @@ do you want to continue?\n " function detect_root() { - dev=$(sed '/ramdisk\/live\/media/!d;s/[0-9] .*$//;s/^.*\///' /proc/mounts) + dev=$(sed '/\/tmp\/media/!d;s/[0-9] .*$//;s/^.*\///' /proc/mounts) devices=$(grep "^ .*[^0-9]$" < /proc/partitions | grep -v ${dev} | awk '{ print $4,$3 }') if [ ! -z ${dev} ]; then |