summaryrefslogtreecommitdiffstats
path: root/builder/modules.d/slx-partitioner/module-setup.sh
diff options
context:
space:
mode:
authorJonathan Bauer2018-11-12 12:42:55 +0100
committerJonathan Bauer2018-11-12 17:30:33 +0100
commit4a26a9fb86d98983c1485c63399fc89d593e8f9c (patch)
treead4996aec7b863aa1275104206c3ac11a5068519 /builder/modules.d/slx-partitioner/module-setup.sh
parent[dnbd3-rfs] config: add PXE server info to config (diff)
downloadsystemd-init-4a26a9fb86d98983c1485c63399fc89d593e8f9c.tar.gz
systemd-init-4a26a9fb86d98983c1485c63399fc89d593e8f9c.tar.xz
systemd-init-4a26a9fb86d98983c1485c63399fc89d593e8f9c.zip
[slx-partitioner] new module for scratch partition handling
Diffstat (limited to 'builder/modules.d/slx-partitioner/module-setup.sh')
-rwxr-xr-xbuilder/modules.d/slx-partitioner/module-setup.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/builder/modules.d/slx-partitioner/module-setup.sh b/builder/modules.d/slx-partitioner/module-setup.sh
new file mode 100755
index 00000000..6ab8a994
--- /dev/null
+++ b/builder/modules.d/slx-partitioner/module-setup.sh
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+check() {
+ return 255
+}
+depends() {
+ echo ""
+}
+install() {
+ inst "$moddir/scripts/get_partitions_by_id" "/usr/bin/get_partitions_by_id"
+ inst "$moddir/scripts/slx_partitioner" "/usr/bin/slx_partitioner"
+ inst_hook pre-pivot 10 "$moddir/scripts/generate-fstab-swap.sh"
+ inst_multiple mkfs.ext4 mkfs.xfs fsck.ext4 fsck.xfs blockdev xxd
+# inst_hook pre-pivot 10 "$moddir/scripts/gen-fstab-persistent"
+}
+installkernel() {
+ instmods dm-thin-pool dm-snapshot dm-crypt crc32c ext4 xfs # btrfs
+}