]> git.plutz.net Git - bootimage/commitdiff
put swap before home for better use with sfdisk
authorPaul Hänsch <paul@plutz.net>
Mon, 25 Jun 2018 01:08:25 +0000 (03:08 +0200)
committerPaul Hänsch <paul@plutz.net>
Mon, 25 Jun 2018 01:08:25 +0000 (03:08 +0200)
Makefile
partitions

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
index 3bdfdd9adf089a9abc543841eda1c130e2c99c05..095fc6e89f8a25d8ad89d6d17bf3f8ccecd29ed9 100644 (file)
@@ -2,5 +2,5 @@ label: dos
 unit: sectors
 
 : start=2048, size=3G, type=83, bootable
-: type=83
 : size=2G, type=82
+: type=83