(address . guix-patches@gnu.org)
Hello,
With the new image API, the disk-image command is able to produce raw
disk-images, ISO9660 images and maybe in the future docker images. Hence
I feel that 'disk-image' in not the better command name anymore.
This patch renames the command name to 'image' and deprecates the old
command. I think it would also be nice for this command to be able to
process both <operating-system> files as well as <image> files, this
way:
Toggle snippet (4 lines)
gnu system image my-os.scm
gnu system image my-image.scm
When my-image.scm could be for instance:
Toggle snippet (32 lines)
(use-modules (gnu system image)
(gnu system images pinebook-pro))
(define my-os
(operating-system
(host-name "viso")
(timezone "Europe/Paris")
(locale "en_US.utf8")
(bootloader (bootloader-configuration
(bootloader u-boot-pinebook-pro-rk3399-bootloader)
(target "/dev/vda")))
(initrd-modules '())
(kernel linux-libre-arm64-generic)
(file-systems (cons (file-system
(device (file-system-label "my-root"))
(mount-point "/")
(type "ext4"))
%base-file-systems))
(services (cons (service agetty-service-type
(agetty-configuration
(extra-options '("-L")) ; no carrier detect
(baud-rate "115200")
(term "vt100")
(tty "ttyS0")))
%base-services))))
(image
(inherit
(os->image my-os #:type pinebook-pro-image-type))
(name 'my-pinebook-pro-raw-image))
Thanks,
Mathieu