Make sure we don't fail in device check when using /dev/disk-by-label/*
authorMichael Prokop <mika@grml.org>
Thu, 5 Jan 2012 13:52:55 +0000 (14:52 +0100)
committerMichael Prokop <mika@grml.org>
Thu, 5 Jan 2012 13:52:55 +0000 (14:52 +0100)
commit7c0195d59551ba5df7010eb696d0b4612d7811f3
treef8af71cacda55bb16eb4ccf734b72af73e187a24
parent35feaad92af2e631460f44204f2a9b88c40d7468
Make sure we don't fail in device check when using /dev/disk-by-label/*

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
grml2usb