#!/usr/bin/env bash check() { return 255 } depends() { echo "slx-tools" } install() { inst "$moddir/scripts/dmsetup-slx-device" "/usr/local/bin/dmsetup-slx-device" inst_hook pre-pivot 10 "$moddir/scripts/generate-fstab-swap.sh" inst_hook pre-pivot 00 "$moddir/scripts/grow-rootfs.sh" # deliberatly left ext helpers out for now, since we don't really use it. inst_multiple blockdev fallocate xxd \ mkfs.ext4 resize2fs \ mkfs.xfs \ xfs_repair xfs_growfs } installkernel() { # install those modules in case the used kernel does not have them builtin instmods \ dm-thin-pool dm-snapshot dm-zero \ dm-crypt crc32c xts \ xfs ext4 }