summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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