vm: Make sure disk image initrds load 'usb-storage.ko'.

Reported by David Thompson <dthompson2@worcester.edu>.

* gnu/system/vm.scm (system-disk-image): Add usb-storage.ko to the
  initrd.
This commit is contained in:
Ludovic Courtès 2014-07-14 18:05:10 +02:00
parent 246a8106ff
commit 932e1f9240

View file

@ -287,10 +287,12 @@ (define file-systems-to-keep
(operating-system-file-systems os)))
(let ((os (operating-system (inherit os)
;; Since this is meant to be used on real hardware, don't set up
;; QEMU networking.
;; Since this is meant to be used on real hardware, don't
;; install QEMU networking or anything like that, but make sure
;; USB mass storage devices are available.
(initrd (cut base-initrd <>
#:volatile-root? volatile?))
#:volatile-root? #t
#:extra-modules '("usb-storage.ko")))
;; Force our own root file system.
(file-systems (cons (file-system