X-Git-Url: https://git.grml.org/?p=grml2usb.git;a=blobdiff_plain;f=grml2usb;h=b5338bddf7f2c2f633eafca748a3acfe2261a25a;hp=3bf80e8b53bf6960d25c2af4659616dacb3dbb01;hb=c590e0ed62a6cccff4d4eb7101be7e751b4e9a4d;hpb=2ec387d38fba2294980b00aee3b748f2d005161a diff --git a/grml2usb b/grml2usb index 3bf80e8..b5338bd 100755 --- a/grml2usb +++ b/grml2usb @@ -869,7 +869,7 @@ def unmount(target, unmount_options): # make sure we unmount only already mounted targets target_unmount = False mounts = open('/proc/mounts').readlines() - mountstring = re.compile(".*%s.*" % re.escape(target)) + mountstring = re.compile(".*%s.*" % re.escape(os.path.realpath(target))) for line in mounts: if re.match(mountstring, line): target_unmount = True