diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-04-22 22:32:09 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-04-22 22:32:09 -0700 |
commit | f5ca2ea1f9436ca12dabaecaeed8fe3db69c0c58 (patch) | |
tree | 93e174b501783cd085e067683a0c5e57ab040359 /src/property/disk.lisp | |
parent | c1f5de3aff294e770ae7a4b54043d6ebd9f20421 (diff) | |
download | consfigurator-f5ca2ea1f9436ca12dabaecaeed8fe3db69c0c58.tar.gz |
factor out CHROOT-PATHNAME
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/property/disk.lisp')
-rw-r--r-- | src/property/disk.lisp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/property/disk.lisp b/src/property/disk.lisp index 4fd67ed..cb53d85 100644 --- a/src/property/disk.lisp +++ b/src/property/disk.lisp @@ -378,9 +378,7 @@ unmounted, since the actual mount point is not stored.") (defclass-opened-volume mounted-filesystem (filesystem)) (defmethod open-volume ((volume filesystem) (file pathname)) - (let ((mount-point - (merge-pathnames (enough-pathname (mount-point volume) #P"/") - (ensure-directory-pathname *mount-below*)))) + (let ((mount-point (chroot-pathname (mount-point volume) *mount-below*))) (file:directory-exists mount-point) (mrun "mount" file mount-point)) (make-opened-volume volume file)) |