summaryrefslogtreecommitdiffstats
path: root/rescue/Flash
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-07-05 14:58:09 +0000
committerOlivier Blin <oblin@mandriva.com>2007-07-05 14:58:09 +0000
commitfe095d58fb839af3647131501d6c69b635bee276 (patch)
treeb4dc259dc9700c4504c0bcdb5589cde7207c6ab9 /rescue/Flash
parent3514c4efde63d0778a719a5a38a4c95566e86720 (diff)
downloaddrakx-fe095d58fb839af3647131501d6c69b635bee276.tar
drakx-fe095d58fb839af3647131501d6c69b635bee276.tar.gz
drakx-fe095d58fb839af3647131501d6c69b635bee276.tar.bz2
drakx-fe095d58fb839af3647131501d6c69b635bee276.tar.xz
drakx-fe095d58fb839af3647131501d6c69b635bee276.zip
mount pen driver using version-specific label
Diffstat (limited to 'rescue/Flash')
-rw-r--r--rescue/Flash/scripts/rescue_common6
1 files changed, 3 insertions, 3 deletions
diff --git a/rescue/Flash/scripts/rescue_common b/rescue/Flash/scripts/rescue_common
index 724b116a5..69dc3d182 100644
--- a/rescue/Flash/scripts/rescue_common
+++ b/rescue/Flash/scripts/rescue_common
@@ -108,7 +108,7 @@ function insert_pendrive() {
detect_version
nash --force > /dev/null 2>&1 <<EOF
-mount -t vfat LABEL=MDVUSBROOT $_tmpdir
+mount -t vfat LABEL=$label $_tmpdir
EOF
if [ $? -ne 0 ]; then
echo -n '.'
@@ -144,10 +144,10 @@ EOF
function mount_usbroot() {
nash --force > /dev/null 2>&1 <<EOF
-mount -t vfat LABEL=MDVUSBROOT $1
+mount -t vfat LABEL=$label $1
EOF
if [ $? -ne 0 ]; then
- echo "Error mounting device labeled MDVUSBROOT"
+ echo "Error mounting device labeled $label"
return 1
fi