bootc icon indicating copy to clipboard operation
bootc copied to clipboard

install-to-disk: Check for mounts before install

Open djach7 opened this issue 1 year ago • 2 comments

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

djach7 avatar Sep 25 '24 19:09 djach7

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.

djach7 avatar Oct 03 '24 18:10 djach7

Thanks for working on this BTW, I think it's getting close!

cgwalters avatar Oct 07 '24 19:10 cgwalters