guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#29409] [PATCH] vm: Use os-defined initrd intead of base-initrd.


From: Ludovic Courtès
Subject: [bug#29409] [PATCH] vm: Use os-defined initrd intead of base-initrd.
Date: Fri, 24 Nov 2017 22:36:42 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Hello!

Mathieu Othacehe <address@hidden> skribis:

> * gnu/system/vm.scm (system-disk-image, system-qemu-image,
>   virtualized-operating-system): Replace base-initrd by
>   (operating-system-initrd os).
>
> The system produced were always using base-initrd even if the user had
> defined a custom initrd based on raw-initrd in the os declaration.

[...]

>      (initrd (lambda (file-systems . rest)
> -              (apply base-initrd file-systems
> +              (apply (operating-system-initrd os)
> +                     file-systems
>                       #:volatile-root? #t
>                       #:virtio? #t
>                       rest)))

A potential issue is that we don’t know whether the user-provided initrd
procedure honors #:volatile-root? et al.  Maybe that’s not much of a
problem in practice: we can assume that it’s up to the user to do the
right thing.

I’d say go for it and we’ll adjust if/when it’s a problem.

Thoughts?

Thanks,
Ludo’.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]