summaryrefslogtreecommitdiffstats
path: root/makefu/1systems/shack-autoinstall/grub-partition.sh
diff options
context:
space:
mode:
Diffstat (limited to 'makefu/1systems/shack-autoinstall/grub-partition.sh')
-rw-r--r--makefu/1systems/shack-autoinstall/grub-partition.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/makefu/1systems/shack-autoinstall/grub-partition.sh b/makefu/1systems/shack-autoinstall/grub-partition.sh
new file mode 100644
index 000000000..c23c89799
--- /dev/null
+++ b/makefu/1systems/shack-autoinstall/grub-partition.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+set -euf
+parted -s ${disk} mklabel msdos
+parted -s ${disk} -- mkpart primary linux-swap 1M 4096M
+parted -s ${disk} -- mkpart primary ext2 4096M 100%