summaryrefslogtreecommitdiffstats
path: root/builder/modules.d/slx-dmsetup/module-setup.sh
diff options
context:
space:
mode:
authorJonathan Bauer2019-08-01 14:57:06 +0200
committerJonathan Bauer2019-08-01 14:57:06 +0200
commit59c09749709df2537a7df06f979bf1880ea140b4 (patch)
tree7cd3c0cf0e392260192141fe5385065358cad169 /builder/modules.d/slx-dmsetup/module-setup.sh
parent[slx-tools] fix first time build (diff)
downloadsystemd-init-59c09749709df2537a7df06f979bf1880ea140b4.tar.gz
systemd-init-59c09749709df2537a7df06f979bf1880ea140b4.tar.xz
systemd-init-59c09749709df2537a7df06f979bf1880ea140b4.zip
[slx-dmsetup] auto increase size of rootfs
Diffstat (limited to 'builder/modules.d/slx-dmsetup/module-setup.sh')
-rwxr-xr-xbuilder/modules.d/slx-dmsetup/module-setup.sh13
1 files changed, 8 insertions, 5 deletions
diff --git a/builder/modules.d/slx-dmsetup/module-setup.sh b/builder/modules.d/slx-dmsetup/module-setup.sh
index 57a67626..596c12db 100755
--- a/builder/modules.d/slx-dmsetup/module-setup.sh
+++ b/builder/modules.d/slx-dmsetup/module-setup.sh
@@ -6,12 +6,15 @@ depends() {
echo ""
}
install() {
- # install helpers
- inst "$moddir/scripts/dmsetup-slx-device" "/usr/bin/dmsetup-slx-device"
- # install hooks
+ inst "$moddir/scripts/dmsetup-slx-device" "/usr/local/bin/dmsetup-slx-device"
+
inst_hook pre-pivot 10 "$moddir/scripts/generate-fstab-swap.sh"
- inst_multiple head tail mkfs.ext4 mkfs.xfs fsck.ext4 fsck.xfs blockdev xxd
+ 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 xxd \
+ xfs_repair xfs_growfs
}
installkernel() {
- instmods dm-thin-pool dm-snapshot dm-crypt crc32c ext4 xfs
+ # install those modules in case the used kernel does not have them builtin
+ instmods dm-thin-pool dm-snapshot dm-crypt crc32c xfs
}