bluerider / liveroot

Initcpio hooks for overlayfs ontop of root
BSD 3-Clause "New" or "Revised" License
79 stars 13 forks source link

don't use rm -r to remove mount points #21

Open raingloom opened 7 years ago

raingloom commented 7 years ago

This has led to at least one major bug. It would make a lot more sense use rmdir, since that always fails to delete non-empty directories.

raingloom commented 7 years ago

Plus it actually reflects what you mean. You don't want to recursively delete the folder and its contents, you want to delete an empty folder.