lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 4a5d226 1/4: Use '--one-file-system' when rem


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 4a5d226 1/4: Use '--one-file-system' when removing a chroot
Date: Sun, 29 Sep 2019 07:32:37 -0400 (EDT)

branch: master
commit 4a5d226c95e61eaa2c799dc044cd17b4813cdf9b
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Use '--one-file-system' when removing a chroot
    
    See:
      https://lists.nongnu.org/archive/html/lmi/2019-09/msg00050.html
---
 lmi_destroy_chroot.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lmi_destroy_chroot.sh b/lmi_destroy_chroot.sh
index 42f67bc..fa51ffd 100755
--- a/lmi_destroy_chroot.sh
+++ b/lmi_destroy_chroot.sh
@@ -32,5 +32,5 @@ umount /srv/chroot/"${CHRTNAME}"/var/cache/apt/archives
 umount /srv/chroot/"${CHRTNAME}"/dev/pts
 umount /srv/chroot/"${CHRTNAME}"/proc
 
-rm -rf "$(schroot --chroot="${CHRTNAME}" --location)"
+rm --one-file-system --recursive --force "$(schroot --chroot="${CHRTNAME}" 
--location)"
 rm /etc/schroot/chroot.d/"${CHRTNAME}".conf



reply via email to

[Prev in Thread] Current Thread [Next in Thread]