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 <GNUtoo@cyberdimension.org>
This commit is contained in:
Denis 'GNUtoo' Carikli 2023-10-02 22:08:43 +02:00
parent 58d1164cf3
commit 5f9a421a4a
Signed by: GNUtoo
GPG Key ID: 5F5DFCC14177E263
2 changed files with 4 additions and 0 deletions

1
.gitignore vendored
View File

@ -4,6 +4,7 @@ guix-commit.txt
guix-installer-vm.img guix-installer-vm.img
guix-installer-vm.tar guix-installer-vm.tar
guix-installer-vm.tar.xz guix-installer-vm.tar.xz
guix-installer-vm.tar.xz.b64
id_ed25519 id_ed25519
id_ed25519.pub id_ed25519.pub
signing-key.pub signing-key.pub

View File

@ -41,6 +41,9 @@ guix-installer-vm.tar: $(TARBALL_SOURCE)
guix-installer-vm.tar.xz: guix-installer-vm.tar guix-installer-vm.tar.xz: guix-installer-vm.tar
xz -f -9e --verbose $< xz -f -9e --verbose $<
guix-installer-vm.tar.xz.b64: guix-installer-vm.tar.xz
base64 $< > $@
IMAGE_SOURCE = \ IMAGE_SOURCE = \
$(TARBALL_SOURCE) \ $(TARBALL_SOURCE) \
guix-installer-vm.tar.xz guix-installer-vm.tar.xz