Closed docteurmystere closed 3 years ago
you are right... I miss the --show option to capture the /dev/loop found
tried this and works.
parser.add_argument("--loop", metavar="DEV", default=subprocess.check_output(["/sbin/losetup","-f"]).strip().decode('ascii'), help="/dev/loopX device to use for 'NAS config' FS resize (default: use the first loop available)")
Hello. I just create a "dev" branch with changes for all your issues:
I don't have the possibility to fully test since I must downgrade my QNAP test device to buster first. But can you at least check it in dryrun mode ?
hello! unfortunately i have resized all by now and the script rightly refuses to run. by reading the code i notice two things:
i applaud your elegant solution of providing a custom setenv script.
"losetup -f" feature is now used by the script
suggesting the use of 'losetup -f' to select the first free loop device