Fix flake8 issues 1) Drop unused import (fileinput) Fixes: | F401 'fileinput' imported but unused 2) Quoting from https://www.flake8rules.com/rules/E722.html: | A bare except: clause will catch SystemExit and KeyboardInterrupt | exceptions, making it harder to interrupt a program with Control-C, and | can disguise other problems. If you want to catch all exceptions that | signal program errors, use except Exception: (bare except is equivalent | to except BaseException:). Fixes: | E722 do not use bare except, specify exception instead 3) Quoting from https://www.flake8rules.com/rules/E713.html: | Tests for membership should use the form x not in the_list rather than | not x in the_list. The former example is simply more readable. Fixes: | E713 test for membership should be 'not in'
Switch default mount point from /lib/live/mount/medium to /run/live/medium In commit 0d878d3a679 of live-boot(-grml) ("Simplify mount point handling by using /run/live instead of /lib/live/mount") the mountpath of /lib/live/mount/medium was moved towards /run/live/medium. Commit c6a17c7b41b of live-boot(-grml) provides a backward compatibility rbind mount, but occasionally there seems to be a regression somewhere during boot (see https://github.com/grml/live-boot-grml/issues/10), and the rbind mount will be deprecated and removed before the bullseye (Debian 11) release. Layout changes over time: * /cdrom: old linuxrc approach * /live/image for initramfs layout until December 2012 * /lib/live/mount/medium for initramfs layout since December 2012 * /run/live/medium for initramfs layout since December 2018 Drop support for everything but /run/live/medium and /lib/live/mount/medium, while at it.