summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-07-05 14:57:28 +0000
committerOlivier Blin <oblin@mandriva.com>2007-07-05 14:57:28 +0000
commit3514c4efde63d0778a719a5a38a4c95566e86720 (patch)
tree683c1279213c09d96dd72cde8083094b7720ea88
parentf170e593629ff1eed4761dc784a3a6bb5f07f2e7 (diff)
downloaddrakx-3514c4efde63d0778a719a5a38a4c95566e86720.tar
drakx-3514c4efde63d0778a719a5a38a4c95566e86720.tar.gz
drakx-3514c4efde63d0778a719a5a38a4c95566e86720.tar.bz2
drakx-3514c4efde63d0778a719a5a38a4c95566e86720.tar.xz
drakx-3514c4efde63d0778a719a5a38a4c95566e86720.zip
detect version before trying to mount pen drive (to get correct label)
-rw-r--r--rescue/Flash/scripts/rescue_common4
1 files changed, 2 insertions, 2 deletions
diff --git a/rescue/Flash/scripts/rescue_common b/rescue/Flash/scripts/rescue_common
index b3fc7c8a8..724b116a5 100644
--- a/rescue/Flash/scripts/rescue_common
+++ b/rescue/Flash/scripts/rescue_common
@@ -105,6 +105,8 @@ function insert_pendrive() {
echo -n 'Detecting pen drive: '
for ((i=0; $i <= 15 ; i++)); do
+ detect_version
+
nash --force > /dev/null 2>&1 <<EOF
mount -t vfat LABEL=MDVUSBROOT $_tmpdir
EOF
@@ -125,8 +127,6 @@ EOF
umount $_tmpdir
rmdir $_tmpdir 2> /dev/null
- detect_version
-
return 0
fi
done