Skip to content

Commit

Permalink
Make sure we don't fail in device check when using /dev/disk-by-label/*
Browse files Browse the repository at this point in the history
Quoting Bernhard on IRC:

| i usually use ~by-label/<mysticksname> 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/<mysticksname>(: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
  • Loading branch information
mika committed Jan 5, 2012
1 parent 35feaad commit 7c0195d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grml2usb
Expand Up @@ -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):
Expand Down

0 comments on commit 7c0195d

Please sign in to comment.