summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2010-04-13 13:43:48 +0000
committerOlivier Blin <oblin@mandriva.com>2010-04-13 13:43:48 +0000
commit5776cdc23f53b3f6217211edff229b393e8cb1eb (patch)
treef754985a17f2dc1f3b7379ad0ecb30ef0ac62450
parent16bb3a61891ba53f56b5c27b4c3f93e173032e72 (diff)
downloaddrakx-5776cdc23f53b3f6217211edff229b393e8cb1eb.tar
drakx-5776cdc23f53b3f6217211edff229b393e8cb1eb.tar.gz
drakx-5776cdc23f53b3f6217211edff229b393e8cb1eb.tar.bz2
drakx-5776cdc23f53b3f6217211edff229b393e8cb1eb.tar.xz
drakx-5776cdc23f53b3f6217211edff229b393e8cb1eb.zip
image restore script: use blkid instead of deprecated vol_id
-rw-r--r--rescue/NEWS2
-rwxr-xr-xrescue/restore-image.sh2
2 files changed, 3 insertions, 1 deletions
diff --git a/rescue/NEWS b/rescue/NEWS
index 8bf0d2c8b..daa1a1ff2 100644
--- a/rescue/NEWS
+++ b/rescue/NEWS
@@ -1,3 +1,5 @@
+- image restore script: use blkid instead of deprecated vol_id
+
Version 1.17 - 12 April 2010, by Olivier "blino" Blin
- Handle LVM (#44723)
diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh
index 4cf06c9e6..32eec242d 100755
--- a/rescue/restore-image.sh
+++ b/rescue/restore-image.sh
@@ -146,7 +146,7 @@ function detect_win32()
fi
# it might be needed, for safety
- device_type=$(vol_id --type ${device})
+ device_type=$(blkid -o value -s TYPE ${device})
modprobe ${device_type}
# df for that partition