]> git.plutz.net Git - bootimage/blobdiff - Makefile
Copy Makefile so it can be used for HDD installation
[bootimage] / Makefile
index 33d5dd1e47005c85d41b764178f0578406b34c70..b4d9440b7dc0c180d8ef86e6c2b511286d95fcc8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -54,7 +54,7 @@ stretch_%.squashfs: stretch_%_config/
        mkdir -p mount
        mkfs.ext3 -FL SQUASHBOOT ${@}
        mount -t ext3 ${@} mount
-       cp -L vmlinuz initrd.img *.squashfs syslinux.cfg mount/
+       cp -L vmlinuz initrd.img *.squashfs syslinux.cfg Makefile partitions mount/
        cp $(addprefix /usr/lib/syslinux/modules/bios/, menu.c32 libutil.c32) mount/
        extlinux -i mount/
        umount mount/
@@ -68,3 +68,7 @@ stretch_%.squashfs: stretch_%_config/
        chmod 0755 mount/home
        umount mount/
        sync
+
+/dev/sd%3: /dev/sd% .FORCE
+       mkswap -L SWAP ${@}
+       sync