From 226db606272aff254ec76e973e78a1ef961746a1 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 19 Oct 2014 17:13:50 +0000 Subject: [PATCH] x86_64: sysupgrade: consider hdX and vdX devices as well Signed-off-by: Jo-Philipp Wich SVN-Revision: 42965 --- target/linux/x86_64/base-files/lib/preinit/79_move_config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ca9c2a9b5e..0b9b49fee3 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" -- 2.30.2