From 031d282c295fefead2e6609561a11e3140e144cc Mon Sep 17 00:00:00 2001
From: =?utf8?q?Paul=20H=C3=A4nsch?= <paul@plutz.net>
Date: Mon, 25 Jun 2018 03:08:25 +0200
Subject: [PATCH] put swap before home for better use with sfdisk

---
 Makefile   | 8 ++++----
 partitions | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile
index b4d9440..431590c 100644
--- 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
diff --git a/partitions b/partitions
index 3bdfdd9..095fc6e 100644
--- a/partitions
+++ b/partitions
@@ -2,5 +2,5 @@ label: dos
 unit: sectors
 
 : start=2048, size=3G, type=83, bootable
-: type=83
 : size=2G, type=82
+: type=83
-- 
2.39.5