add expand-rootfs.service to be installed on the image
This commit is contained in:
parent
1b43c55679
commit
358b27f061
@ -4,7 +4,9 @@ set -x
|
|||||||
# The script that expands root partition
|
# The script that expands root partition
|
||||||
[ -d /usr/local/bin ] || mkdir --verbose /usr/local/bin
|
[ -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.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 ] && \
|
[ -f /usr/local/bin/expand-rootfs.sh ] && \
|
||||||
chmod --verbose +x /usr/local/bin/expand-rootfs.sh
|
chmod --verbose +x /usr/local/bin/expand-rootfs.sh
|
||||||
|
systemctl enable expand-rootfs.service
|
||||||
|
|
||||||
%end
|
%end
|
||||||
|
Loading…
Reference in New Issue
Block a user