From 6ff145857dc0d573f26c8af3ee84388628387907 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Sat, 7 Oct 2023 04:38:17 +0200 Subject: [PATCH] gnutoo-trisquel-installer: Add Makefile Signed-off-by: Denis 'GNUtoo' Carikli --- .gitignore | 1 - audio.experimental.a-lec.org/.gitignore | 1 + gnutoo-trisquel-installer/.gitignore | 3 ++ gnutoo-trisquel-installer/Makefile | 41 +++++++++++++++++++++++++ 4 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 audio.experimental.a-lec.org/.gitignore create mode 100644 gnutoo-trisquel-installer/.gitignore create mode 100644 gnutoo-trisquel-installer/Makefile diff --git a/.gitignore b/.gitignore index 391e409..2b2f5b8 100644 --- a/.gitignore +++ b/.gitignore @@ -26,7 +26,6 @@ id_ed25519.pub id_wireguard index.html install-sh -Makefile Makefile.in missing mumble-vm-machine.scm diff --git a/audio.experimental.a-lec.org/.gitignore b/audio.experimental.a-lec.org/.gitignore new file mode 100644 index 0000000..5fc607b --- /dev/null +++ b/audio.experimental.a-lec.org/.gitignore @@ -0,0 +1 @@ +/Makefile diff --git a/gnutoo-trisquel-installer/.gitignore b/gnutoo-trisquel-installer/.gitignore new file mode 100644 index 0000000..247ed26 --- /dev/null +++ b/gnutoo-trisquel-installer/.gitignore @@ -0,0 +1,3 @@ +/config.tar +/config.tar.xz +/config.tar.xz.b64 diff --git a/gnutoo-trisquel-installer/Makefile b/gnutoo-trisquel-installer/Makefile new file mode 100644 index 0000000..978a525 --- /dev/null +++ b/gnutoo-trisquel-installer/Makefile @@ -0,0 +1,41 @@ +# Copyright (C) 2023 Denis 'GNUtoo' Carikli +# +# This project 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 project 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. +# +# You should have received a copy of the GNU General Public License +# along with this project. If not, see . + +.PHONY: install + +all: config.tar.xz.b64 + +TARBALL_SOURCE = \ + config/class/50-host-classes \ + config/files/etc/cron.d/fai/FAIBASE \ + config/files/etc/fai/fai.conf/FAIBASE \ + config/package_config/FAIBASE \ + config/scripts/FAIBASE/01-files \ + Makefile + +config.tar: $(TARBALL_SOURCE) + tar -cf $@ $(TARBALL_SOURCE) + +config.tar.xz: config.tar + xz -f -9e --verbose $< + +config.tar.xz.b64: config.tar.xz + base64 $< > $@ + +install: + apt install fai-client + install -m644 config/files/etc/fai/fai.conf/FAIBASE /etc/fai/fai.conf + @# For some reasons fai returns 2 but the install works fine. + /usr/sbin/fai -vNu $$HOSTNAME softupdate || true