X-Git-Url: https://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=grml2usb;h=eaeba087ac20f1b6ef911ae3a8650385c099108b;hb=5b2ffe433479368d711a63d985b926966940cad5;hp=1e502e7351b3697102944395c701fa5d104ba0b0;hpb=b70606ae1a4665e5067d9e5fc008b9b6706a93d5;p=grml2usb.git diff --git a/grml2usb b/grml2usb index 1e502e7..eaeba08 100755 --- a/grml2usb +++ b/grml2usb @@ -790,7 +790,7 @@ def check_for_fat(partition): try: udev_info = subprocess.Popen(["/sbin/blkid", "-s", "TYPE", "-o", "value", partition], - stdout=subprocess.PIPE, stderr=subprocess.PIPE) + stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True) filesystem = udev_info.communicate()[0].rstrip() if filesystem != "vfat": @@ -1855,14 +1855,14 @@ def check_programs(): def load_loop(): - """Runs modprobe loop and throws away it's output""" + """Runs modprobe loop and throws away its output""" if not which("modprobe"): logging.critical("Fatal: modprobe not available, can not continue - sorry.") logging.critical("Hint: is /sbin missing in PATH?") sys.exit(1) proc = subprocess.Popen(["modprobe", "loop"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) - proc.wait() + proc.communicate() def main():