diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-04-30 15:20:30 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-04-30 17:54:03 -0700 |
commit | afc93f897714d870d16bfce57b8f5d416f30bfa4 (patch) | |
tree | 89da4060c788a69cf587a33b5d86ef6dc835c0ab /src/property/mount.lisp | |
parent | 10064f1775c65e2c972b9710da846e2934e683ab (diff) | |
download | consfigurator-afc93f897714d870d16bfce57b8f5d416f30bfa4.tar.gz |
MOUNT:UNMOUNTED-BELOW: fix sorting of mount points
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/property/mount.lisp')
-rw-r--r-- | src/property/mount.lisp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/property/mount.lisp b/src/property/mount.lisp index eba0eca..fe805ad 100644 --- a/src/property/mount.lisp +++ b/src/property/mount.lisp @@ -32,7 +32,7 @@ (mapcar #'ensure-directory-pathname (runlines "findmnt" "-rn" "--output" "target"))) (mounts-below (remove-if-not (rcurry #'subpathp dir) all-mounts)) - (sorted (sort mounts-below (complement #'subpathp)))) + (sorted (sort mounts-below #'string< :key #'unix-namestring))) (loop as next = (pop sorted) while next do (loop while (subpathp (car sorted) next) do (pop sorted)) |