]> git.plutz.net Git - bootimage/blobdiff - Makefile
put swap before home for better use with sfdisk
[bootimage] / Makefile
index b4d9440b7dc0c180d8ef86e6c2b511286d95fcc8..431590c47b39fdf9c597f797586e44769ebc47e2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -61,6 +61,10 @@ stretch_%.squashfs: stretch_%_config/
        sync
 
 /dev/sd%2: /dev/sd% .FORCE
+       mkswap -L SWAP ${@}
+       sync
+
+/dev/sd%3: /dev/sd% .FORCE
        mkdir -p mount
        mkfs.btrfs -fL SQUASHCLIENT ${@}
        mount -t btrfs ${@} mount
@@ -68,7 +72,3 @@ stretch_%.squashfs: stretch_%_config/
        chmod 0755 mount/home
        umount mount/
        sync
-
-/dev/sd%3: /dev/sd% .FORCE
-       mkswap -L SWAP ${@}
-       sync