From 5f9a421a4ae2e563287908003884245215323e43 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Mon, 2 Oct 2023 22:08:43 +0200 Subject: [PATCH] Add base64 tarball target The tarball can be copied to the VM through the serial port with the following command: # cat > guix-installer-vm.tar.xz.b64 the user then pastes the base64 content and types ctrl+d and this results in the file being written. The content can then be extracted with the following commands: # base64 -d guix-installer-vm.tar.xz.b64 > guix-installer-vm.tar.xz # tar xf guix-installer-vm.tar.xz Signed-off-by: Denis 'GNUtoo' Carikli --- .gitignore | 1 + Makefile | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 16baa60..9dc52c1 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ guix-commit.txt guix-installer-vm.img guix-installer-vm.tar guix-installer-vm.tar.xz +guix-installer-vm.tar.xz.b64 id_ed25519 id_ed25519.pub signing-key.pub diff --git a/Makefile b/Makefile index 7b9623d..cac4d3b 100644 --- a/Makefile +++ b/Makefile @@ -41,6 +41,9 @@ guix-installer-vm.tar: $(TARBALL_SOURCE) guix-installer-vm.tar.xz: guix-installer-vm.tar xz -f -9e --verbose $< +guix-installer-vm.tar.xz.b64: guix-installer-vm.tar.xz + base64 $< > $@ + IMAGE_SOURCE = \ $(TARBALL_SOURCE) \ guix-installer-vm.tar.xz