aboutsummaryrefslogtreecommitdiff
path: root/src/property/disk.lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-05-28 14:17:47 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-05-29 08:43:57 -0700
commit19d02c44af576e8c43229091308f5ef218917c28 (patch)
tree088a74a7d74747866017777814acf45704055764 /src/property/disk.lisp
parent451b63e0481090813d060d231a0fee30c125eb30 (diff)
downloadconsfigurator-19d02c44af576e8c43229091308f5ef218917c28.tar.gz
add optional HOST arg to some accessors for hostattrs
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/property/disk.lisp')
-rw-r--r--src/property/disk.lisp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/property/disk.lisp b/src/property/disk.lisp
index 29e163d..f82460e 100644
--- a/src/property/disk.lisp
+++ b/src/property/disk.lisp
@@ -851,15 +851,13 @@ least the following:
Unless REBUILD, the image will not be repartitioned even if the specification
of the host's volumes changes, although the contents of the image's
filesystems will be incrementally updated when other properties change."
- (:desc (declare (ignore options rebuild))
- (let ((hostname (car (getf (hostattrs host) :hostname))))
- #?"Built image for ${hostname} @ ${image-pathname}"))
+ (:desc #?"Built image for ${(get-hostname host)} @ ${image-pathname}")
(let ((chroot (ensure-directory-pathname
(strcat (unix-namestring image-pathname) ".chroot")))
(volumes
(loop
with found
- for volume in (getf (hostattrs (preprocess-host host)) :volumes)
+ for volume in (get-hostattrs :volumes (preprocess-host host))
for physical-disk-p = (subtypep (type-of volume) 'physical-disk)
if (and physical-disk-p (not found)
(slot-boundp volume 'volume-contents))