From 358b27f061d3bd10824f737817dbe5d144cfa80a Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Wed, 3 Jan 2024 12:31:32 +0530 Subject: [PATCH] add expand-rootfs.service to be installed on the image --- includes/post/expand-rootfs.ksi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/post/expand-rootfs.ksi b/includes/post/expand-rootfs.ksi index 4c93396..e5923d7 100644 --- a/includes/post/expand-rootfs.ksi +++ b/includes/post/expand-rootfs.ksi @@ -4,7 +4,9 @@ set -x # The script that expands root partition [ -d /usr/local/bin ] || mkdir --verbose /usr/local/bin curl 'https://git.resf.org/thefossguy/sbc-images/raw/branch/rocky-generic/scripts/expand-rootfs.sh' --output /usr/local/bin/expand-rootfs.sh || exit 1 +curl 'https://git.resf.org/thefossguy/sbc-images/raw/branch/rocky-generic/scripts/expand-rootfs.service' --output /etc/systemd/system/expand-rootfs.service || exit 1 [ -f /usr/local/bin/expand-rootfs.sh ] && \ chmod --verbose +x /usr/local/bin/expand-rootfs.sh +systemctl enable expand-rootfs.service %end