2023-09-13 01:29:56 +00:00
|
|
|
%post
|
|
|
|
set -x
|
|
|
|
|
|
|
|
# The script that expands root partition
|
|
|
|
[ -d /usr/local/bin ] || mkdir --verbose /usr/local/bin
|
2024-01-03 06:37:23 +00:00
|
|
|
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
|
2024-01-03 07:01:32 +00:00
|
|
|
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
|
2023-09-13 01:29:56 +00:00
|
|
|
[ -f /usr/local/bin/expand-rootfs.sh ] && \
|
|
|
|
chmod --verbose +x /usr/local/bin/expand-rootfs.sh
|
2024-01-03 07:01:32 +00:00
|
|
|
systemctl enable expand-rootfs.service
|
2023-09-13 01:29:56 +00:00
|
|
|
|
|
|
|
%end
|