gnutoo-trisquel-installer: Add Makefile

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
This commit is contained in:
Denis 'GNUtoo' Carikli 2023-10-07 04:38:17 +02:00
parent 791164c50a
commit 6ff145857d
Signed by: GNUtoo
GPG Key ID: 5F5DFCC14177E263
4 changed files with 45 additions and 1 deletions

1
.gitignore vendored
View File

@ -26,7 +26,6 @@ id_ed25519.pub
id_wireguard
index.html
install-sh
Makefile
Makefile.in
missing
mumble-vm-machine.scm

View File

@ -0,0 +1 @@
/Makefile

3
gnutoo-trisquel-installer/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
/config.tar
/config.tar.xz
/config.tar.xz.b64

View File

@ -0,0 +1,41 @@
# Copyright (C) 2023 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
#
# 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 <http://www.gnu.org/licenses/>.
.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