From 2d2dd5d426058e09c9a8736df523e2c90b887d24 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Sun, 21 Jul 2024 22:03:33 +0200 Subject: [PATCH] trisquel-automatic-netinstall-qemu: document deployments on libre en communs physical machines. Signed-off-by: Denis 'GNUtoo' Carikli --- trisquel-automatic-netinstall-qemu/README | 17 ++++++++++++ .../libre-en-communs-guix-shell.sh | 27 +++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100755 trisquel-automatic-netinstall-qemu/libre-en-communs-guix-shell.sh diff --git a/trisquel-automatic-netinstall-qemu/README b/trisquel-automatic-netinstall-qemu/README index 31acb40..4fb4792 100644 --- a/trisquel-automatic-netinstall-qemu/README +++ b/trisquel-automatic-netinstall-qemu/README @@ -3,11 +3,28 @@ Deployment and limitations. Creating an image is similar to the build of other software as you use similar commands: +$ git clone https://forge.a-lec.org/cominfra/experimental-vms +$ cd experimental-vms/trisquel-automatic-netinstall-qemu $ ./autogen.sh $ ./configure --prefix=/ \ --with-trisquel-netinstall=~/Downloads/trisquel-netinst_11.0_amd64.iso $ make +Since your account on a physical machines from Libre en communs might +lack permissions for accessing /dev/kvm, you might need to pass +'--disable-kvm' to ./configure, and since these machines also lack +many tools, you will need to workaround by using the provided +./libre-en-communs-guix-shell.sh script. For instance the following +should work: +$ git clone https://forge.a-lec.org/cominfra/experimental-vms +$ cd experimental-vms/trisquel-automatic-netinstall-qemu +$ wget https://cdimage.trisquel.info/trisquel-images/trisquel-netinst_11.0_amd64.iso +$ ./libre-en-communs-guix-shell.sh ./autogen.sh +$ ./libre-en-communs-guix-shell.sh ./configure --prefix=/ --disable-kvm +$ ./libre-en-communs-guix-shell.sh make + +The image should then be in rootfs.img. + License ======= diff --git a/trisquel-automatic-netinstall-qemu/libre-en-communs-guix-shell.sh b/trisquel-automatic-netinstall-qemu/libre-en-communs-guix-shell.sh new file mode 100755 index 0000000..15d3fa7 --- /dev/null +++ b/trisquel-automatic-netinstall-qemu/libre-en-communs-guix-shell.sh @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Copyright (C) 2024 Denis 'GNUtoo' Carikli +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or (at +# your option) any later version. +# +# This file is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# The Libre en communs physical machines lack many packages, so when +# this is the case we can simply use Guix to get these packages, but +# at the same time resources are also very constrained (because the +# hosts typically run many virtual machines), so if some host packages +# are available, we prefer to use that as this uses way less space. +guix_packages=" \ + autoconf \ + automake \ + make \ + mtools \ + xorriso \ +" +guix shell ${guix_packages} -- $@