summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrescue/restore-image.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh
index c60df3756..77ef33331 100755
--- a/rescue/restore-image.sh
+++ b/rescue/restore-image.sh
@@ -14,8 +14,16 @@ export PATH="/sbin:/bin:/usr/sbin:/usr/bin"
restore_media="/tmp/media"
images_dir="$restore_media/images"
images="$images_dir/list"
+images_config="$images_dir/config"
image=""
+function read_config()
+{
+ if [ -r "$images_config" ]; then
+ . $images_config
+ fi
+}
+
function image_list()
{
list=$(cat $images | awk -F',' \
@@ -177,6 +185,7 @@ function expand_fs()
# installation steps
welcome
+read_config
install_warning
write_image
expand_fs