Hi Josselin, [...] > > On the Guix side of things, we should really be using the same interface > as swap-space, as I think the distinction between #f and 0 to 32767 is > clearer. I'll send some patches that adress this soon, along with the > zram-service-type documentation.
I've made this smallish change: --8<---------------cut here---------------start------------->8--- modified gnu/services/linux.scm @@ -296,14 +296,12 @@ (define (zram-device-configuration->udev-string config) "") "RUN+=\"/run/current-system/profile/sbin/mkswap /dev/zram0\" " "RUN+=\"/run/current-system/profile/sbin/swapon " - ;; XXX: The field is delayed while the deprecation warning remains in - ;; place, so we can't use match to fetch it (it would give a promise) - (if (zram-device-configuration-priority config) - (string-append "--priority " - (number->string - (zram-device-configuration-priority config)) - " ") - "") + ;; TODO: Revert to simply use 'priority' after removing the deprecation + ;; warning and the delayed property of the field. + (let ((priority* (force priority))) + (if priority* + (format #f "--priority ~a " priority*) + "")) "/dev/zram0\"\n")))) (define %zram-device-config --8<---------------cut here---------------end--------------->8--- Because the TODO comments seems more actionable for my future self, and pushed as a99015c878. Thanks Stefan for reporting the issue and for Josselin for fixing it! Closing. Maxim