diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2022-08-09 11:48:52 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2022-08-09 15:16:06 +0200 |
| commit | fdafd404325413da4d5fdd717c84e57a51c60fe2 (patch) | |
| tree | 03572ed019e0b6acd0b15fcd2ab17d86dd2f5031 /Makefile.am | |
| parent | 95a03aa5c507d48e2cde19ea007b8f90a4e0108a (diff) | |
maint: Use a pretty version string in ISO and VM images.
* gnu/system/examples/vm-image.tmpl: Use the 'GUIX_DISPLAYED_VERSION'
environment variable in 'label'.
* gnu/system/install.scm (%installation-os): Likewise.
* Makefile.am (release): Set 'GUIX_DISPLAYED_VERSION'.
Diffstat (limited to 'Makefile.am')
| -rw-r--r-- | Makefile.am | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index ac6df11c850..8df8222573e 100644 --- a/Makefile.am +++ b/Makefile.am | |||
| @@ -984,13 +984,14 @@ release: dist-with-updated-version all | |||
| 984 | -v1 --no-grafts --fallback | 984 | -v1 --no-grafts --fallback |
| 985 | # Generate the ISO installation images. | 985 | # Generate the ISO installation images. |
| 986 | for system in $(GUIX_SYSTEM_SUPPORTED_SYSTEMS) ; do \ | 986 | for system in $(GUIX_SYSTEM_SUPPORTED_SYSTEMS) ; do \ |
| 987 | GUIX_DISPLAYED_VERSION="`git describe --match=v* | sed -'es/^v//v'`" ; \ | ||
| 987 | image=`$(top_builddir)/pre-inst-env \ | 988 | image=`$(top_builddir)/pre-inst-env \ |
| 988 | guix system image -t iso9660 \ | 989 | guix system image -t iso9660 \ |
| 989 | --label="GUIX_$${system}_$(VERSION)" \ | 990 | --label="GUIX_$${system}_$(VERSION)" \ |
| 990 | --system=$$system --fallback \ | 991 | --system=$$system --fallback \ |
| 991 | gnu/system/install.scm` ; \ | 992 | gnu/system/install.scm` ; \ |
| 992 | if [ ! -f "$$image" ] ; then \ | 993 | if [ ! -f "$$image" ] ; then \ |
| 993 | echo "failed to produce Guix installation image for $$system" >&2 ; \ | 994 | echo "failed to produce Guix installation image for $$system" >&2 ; \ |
| 994 | exit 1 ; \ | 995 | exit 1 ; \ |
| 995 | fi ; \ | 996 | fi ; \ |
| 996 | cp "$$image" "$(releasedir)/$(GUIX_SYSTEM_IMAGE_BASE).$$system.iso.tmp" ; \ | 997 | cp "$$image" "$(releasedir)/$(GUIX_SYSTEM_IMAGE_BASE).$$system.iso.tmp" ; \ |
| @@ -999,6 +1000,7 @@ release: dist-with-updated-version all | |||
| 999 | done | 1000 | done |
| 1000 | # Generate the VM images. | 1001 | # Generate the VM images. |
| 1001 | for system in $(GUIX_SYSTEM_VM_SYSTEMS) ; do \ | 1002 | for system in $(GUIX_SYSTEM_VM_SYSTEMS) ; do \ |
| 1003 | GUIX_DISPLAYED_VERSION="`git describe --match=v* | sed -'es/^v//v'`" ; \ | ||
| 1002 | image=`$(top_builddir)/pre-inst-env \ | 1004 | image=`$(top_builddir)/pre-inst-env \ |
| 1003 | guix system image -t qcow2 $(GUIX_SYSTEM_VM_IMAGE_FLAGS) \ | 1005 | guix system image -t qcow2 $(GUIX_SYSTEM_VM_IMAGE_FLAGS) \ |
| 1004 | --save-provenance \ | 1006 | --save-provenance \ |
