grml / grml-debootstrap

wrapper around debootstrap
59 stars 27 forks source link

let's always use try_umount #263

Closed adrelanos closed 8 months ago

adrelanos commented 8 months ago

I would like to modify the code to always use the try_umount function. Why? No disadvantages, less, cleaner code, simpler code because no need to check any complex conditions.

Check if there's a mount, if there's not then that's fine, nothing to do, "return 0". Otherwise, try to umount it.

I'll propose a PR.