Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grml-live: fix falldown from c78f58bfee79af61276e3e91457a1b0faa55bbf5. #104

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Mar 25, 2021

  1. grml-live: fix falldown from c78f58b.

    While deleting the bind-mount destination of mirror directories is fine
    in theory, we ended up deleting empty base directories as well.
    
    This is obviously bad, so let's avoid removing base directories by:
      - keeping a copy of all base directories (this should be updated
        periodically, but updates to base directories happen so rarely that
        it hardly matters)
      - wrapping the functionality of rmdir -p in a new function that makes
        sure to stop on base directories, no matter whether empty or not.
    
    Since we use that functionality for directories in a chroot (from the
    outside), additional code to handle chroots is necessary.
    
    With that, base directories should now be correctly protected from
    removal.
    Ionic committed Mar 25, 2021
    Configuration menu
    Copy the full SHA
    33680b7 View commit details
    Browse the repository at this point in the history