# 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/files/etc/hostname/FAIBASE \ config/files/etc/hosts/FAIBASE \ config/files/etc/network/interfaces.d/enp1s0.conf \ config/files/etc/network/interfaces.d/lo.conf \ config/files/etc/resolv.conf \ config/files/etc/ssh/sshd_config \ config/files/usr/local/bin/guix-install.sh/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