From 7c0195d59551ba5df7010eb696d0b4612d7811f3 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Thu, 5 Jan 2012 14:52:55 +0100 Subject: [PATCH 1/1] Make sure we don't fail in device check when using /dev/disk-by-label/* Quoting Bernhard on IRC: | i usually use ~by-label/ as device names, so that | I don't mix up any /dev/sd?? devices and I just realized that | when i do this (of course I can use ~bylabel/(:A) | in the future) grml2usb does neither recognize that my device is | already mounted (not much of a problem with current kernel | apparently), but the "superdisk" check which just looks for a | digit in the last char of the device string, fails as well Thanks: Bernhard Tittelbach for bugreport and patch --- grml2usb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grml2usb b/grml2usb index b3e25df..13baf0e 100755 --- a/grml2usb +++ b/grml2usb @@ -1635,7 +1635,7 @@ def main(): check_programs() # specified arguments - device = args[len(args) - 1] + device = os.path.realpath(args[len(args) - 1]) isos = args[0:len(args) - 1] if not os.path.isdir(device): -- 2.1.4