diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2014-10-19 17:13:50 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2014-10-19 17:13:50 +0000 |
commit | 02ef17870cf69c051879020bbba6c03db322351e (patch) | |
tree | 4ddce41c05c4d12a9547bc121543ddf5cf55481d /target | |
parent | 2e352aab135b0f0c06c2ee6d8184f6444d583439 (diff) | |
download | master-187ad058-02ef17870cf69c051879020bbba6c03db322351e.tar.gz master-187ad058-02ef17870cf69c051879020bbba6c03db322351e.tar.bz2 master-187ad058-02ef17870cf69c051879020bbba6c03db322351e.zip |
x86_64: sysupgrade: consider hdX and vdX devices as well
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42965 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/x86_64/base-files/lib/preinit/79_move_config | 2 |
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 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" |