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} -- $@