github.com/coreos/rocket@v1.30.1-0.20200224141603-171c416fac02/scripts/pkg/after-remove (about)

     1  if test `stat -c%d "/var/lib/rkt"` == `stat -c%d "/var/lib"`; then
     2      rm -rf /var/lib/rkt
     3  else
     4      # is a mountpoint, so just delete contents
     5      rm -rf /var/lib/rkt/*
     6  fi
     7  systemctl daemon-reload || true