bootc
bootc copied to clipboard
install-to-disk: Check for mounts before install
Works to improve bootc install to-disk flow by checking for mounts on the device to be installed to. If mounts are present then install will abort.
Resolves #720
This should be working now, I made changes to parse the findmnt output for the device and bail if found. @cgwalters for the findmnt command I hardcoded -N 1, is there any issue with that? I was attempting to pass it a pid (you can see that attempt in the wip commit if you're curious) but the pid being passed was unable to see the device I was attempting to mount to.
Thanks for working on this BTW, I think it's getting close!