summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2014-10-19 17:13:50 +0000
committerJo-Philipp Wich <jow@openwrt.org>2014-10-19 17:13:50 +0000
commit226db606272aff254ec76e973e78a1ef961746a1 (patch)
tree9ffa410f2702851847faa10ca1ab212a9c9fa735
parent0a7bd0c8b9cbc0177d489ee2cca35f1d9d9608c8 (diff)
downloadmtk-20170518-226db606272aff254ec76e973e78a1ef961746a1.zip
mtk-20170518-226db606272aff254ec76e973e78a1ef961746a1.tar.gz
mtk-20170518-226db606272aff254ec76e973e78a1ef961746a1.tar.bz2
x86_64: sysupgrade: consider hdX and vdX devices as well
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 42965
-rw-r--r--target/linux/x86_64/base-files/lib/preinit/79_move_config2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/x86_64/base-files/lib/preinit/79_move_config b/target/linux/x86_64/base-files/lib/preinit/79_move_config
index ca9c2a9..0b9b49f 100644
--- a/target/linux/x86_64/base-files/lib/preinit/79_move_config
+++ b/target/linux/x86_64/base-files/lib/preinit/79_move_config
@@ -20,7 +20,7 @@ move_config() {
PARTUUID=[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9]-02)
uuid="${cmdline#PARTUUID=}"
uuid="${uuid%-02}"
- for disk in /dev/sd[a-z]; do
+ for disk in /dev/[hsv]d[a-z]; do
set -- $(dd if=$disk bs=1 skip=440 count=4 2>/dev/null | hexdump -v -e '4/1 "%02x "')
if [ "$4$3$2$1" = "$uuid" ]; then
dev="${disk}1"