add expand-rootfs.service to be installed on the image

This commit is contained in:
Pratham Patel 2024-01-03 12:31:32 +05:30
parent 1b43c55679
commit 358b27f061
No known key found for this signature in database

View File

@ -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