From 3e13c20d34c2f306372f2b5e4fb047e5524a814a Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Fri, 25 Nov 2022 12:45:18 -0700 Subject: CHROOT::%DEBOOTSTRAPPED: use EMPTY-REMOTE-DIRECTORY when recovering If the root is a mount point, then when recovering from a failed debootstrap we need to remove its contents but not the root itself. Signed-off-by: Sean Whitton --- src/property/chroot.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/property/chroot.lisp b/src/property/chroot.lisp index e2d0510..3e790d3 100644 --- a/src/property/chroot.lisp +++ b/src/property/chroot.lisp @@ -25,7 +25,7 @@ ;; check whether a previous debootstrap failed partway through (if (remote-test "-d" (merge-pathnames "debootstrap/" (ensure-directory-pathname root))) - (progn (delete-remote-trees root) nil) + (progn (empty-remote-directory root) nil) (remote-exists-p (chroot-pathname "/usr/lib/os-release" root)))) (:apply (destructuring-bind -- cgit v1.2.3