diff options
-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 |