+# Generator for Oktopus boot media
+# Copyright (C) 2018 Hochschule für Technik und Wirtschaft Berlin
+# written by Paul Hänsch <oktopus@plutz.net>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program 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 Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <https://www.gnu.org/licenses/>.
+
.FORCE:
BOOTSTRAP = http://raspbian.raspberrypi.org/raspbian
chmod 700 files/root/ files/root/.ssh/
chmod 600 '$@'
-raspi.img: raspi_root/ files/ partitions files/root/.ssh/authorized_keys files/etc/network/interfaces.d/wifi
+include gummikraken.mk
+
+raspi.img: raspi_root/ files/ partitions files/root/.ssh/authorized_keys files/etc/network/interfaces.d/wifi files/srv/gummikraken/
-rmdir "$@.mnt"
mkdir "$@.mnt" # fail receipe if dir is nonempty
dd bs=1M count=0 seek=1024 of="$@" # set up sparse file