Author: jow Date: 2014-10-19 19:13:50 +0200 (Sun, 19 Oct 2014) New Revision: 42965
Modified: trunk/target/linux/x86_64/base-files/lib/preinit/79_move_config Log: x86_64: sysupgrade: consider hdX and vdX devices as well Signed-off-by: Jo-Philipp Wich <[email protected]> Modified: trunk/target/linux/x86_64/base-files/lib/preinit/79_move_config =================================================================== --- trunk/target/linux/x86_64/base-files/lib/preinit/79_move_config 2014-10-19 16:54:33 UTC (rev 42964) +++ trunk/target/linux/x86_64/base-files/lib/preinit/79_move_config 2014-10-19 17:13:50 UTC (rev 42965) @@ -20,7 +20,7 @@ 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" _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
