diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-11-12 10:08:28 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-11-12 10:08:28 +0000 |
commit | ffa44981c2fff6e0dc4a8a64c43d9352fa53eda4 (patch) | |
tree | 24a4e76cc71076d5f910bcf98bee3a245f5edc92 /rescue/restore-image.sh | |
parent | 10fdf6b99e8ecfdfe62da17a8c7ceaa0437d2a71 (diff) | |
download | drakx-ffa44981c2fff6e0dc4a8a64c43d9352fa53eda4.tar drakx-ffa44981c2fff6e0dc4a8a64c43d9352fa53eda4.tar.gz drakx-ffa44981c2fff6e0dc4a8a64c43d9352fa53eda4.tar.bz2 drakx-ffa44981c2fff6e0dc4a8a64c43d9352fa53eda4.tar.xz drakx-ffa44981c2fff6e0dc4a8a64c43d9352fa53eda4.zip |
allow to read a config file from restore image
Diffstat (limited to 'rescue/restore-image.sh')
-rwxr-xr-x | rescue/restore-image.sh | 9 |
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 |