[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/10: vm: Transparently compress iso9660 images.
From: |
guix-commits |
Subject: |
01/10: vm: Transparently compress iso9660 images. |
Date: |
Fri, 10 Apr 2020 10:08:25 -0400 (EDT) |
civodul pushed a commit to branch version-1.1.0
in repository guix.
commit e830c2a8de0a4b6fbc334c648d976872034b5997
Author: Tobias Geerinckx-Rice <address@hidden>
AuthorDate: Mon Apr 6 17:48:21 2020 +0200
vm: Transparently compress iso9660 images.
* gnu/build/vm.scm (make-iso9660-image): Use the ‘--zisofs’ xorriso
filter at the highest compression settings for supported directories.
---
gnu/build/vm.scm | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/gnu/build/vm.scm b/gnu/build/vm.scm
index 79eed48..9caa110 100644
--- a/gnu/build/vm.scm
+++ b/gnu/build/vm.scm
@@ -5,6 +5,7 @@
;;; Copyright © 2017 Mathieu Othacehe <address@hidden>
;;; Copyright © 2017 Marius Bakke <address@hidden>
;;; Copyright © 2018 Chris Marusich <address@hidden>
+;;; Copyright © 2020 Tobias Geerinckx-Rice <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -533,6 +534,24 @@ GRUB configuration and OS-DRV as the stuff in it."
;; Set all timestamps to 1.
"-volume_date" "all_file_dates" "=1"
+ ;; ‘zisofs’ compression reduces the total image size by ~60%.
+ "-zisofs" "level=9:block_size=128k" ; highest compression
+ ;; It's transparent to our Linux-Libre kernel but not to GRUB.
+ ;; Don't compress the kernel, initrd, and other files read by
+ ;; grub.cfg, as well as common already-compressed file names.
+ "-find" "/" "-type" "f"
+ ;; XXX Even after "--" above, and despite documentation
claiming
+ ;; otherwise, "-or" is stolen by grub-mkrescue which then
chokes
+ ;; on it (as ‘-o …’) and dies. Don't use "-or".
+ "-not" "-wholename" "/boot/*"
+ "-not" "-wholename" "/System/*"
+ "-not" "-name" "unicode.pf2"
+ "-not" "-name" "bzImage"
+ "-not" "-name" "*.gz" ; initrd & all man pages
+ "-not" "-name" "*.png" ; includes grub-image.png
+ "-exec" "set_filter" "--zisofs"
+ "--"
+
"-volid" (string-upcase volume-id)
(if volume-uuid
`("-volume_date" "uuid"
- branch version-1.1.0 updated (08b14ab -> c635610), guix-commits, 2020/04/10
- 01/10: vm: Transparently compress iso9660 images.,
guix-commits <=
- 03/10: gnu: xfce: Fix typo., guix-commits, 2020/04/10
- 04/10: gnu: installer: Fix issue with "Esperanto" locale., guix-commits, 2020/04/10
- 06/10: gnu: akonadi: Shorten file name of patch., guix-commits, 2020/04/10
- 02/10: services: gnome: Fix ‘gnome’ field name., guix-commits, 2020/04/10
- 09/10: installer: tests: Don't install to a CD/DVD., guix-commits, 2020/04/10
- 05/10: gnu: binutils: Shorten file names of MinGW patches., guix-commits, 2020/04/10
- 08/10: vm: 'system-disk-image' honors #:substitutable? for ISO9660 images., guix-commits, 2020/04/10
- 10/10: tests: Run guided installation tests from an ISO image., guix-commits, 2020/04/10
- 07/10: gnu: sdl-pango: Shorten file name of patch., guix-commits, 2020/04/10