virt-lightning / freebsd-cloud-images

Shell script to build the FreeBSD cloud images
31 stars 12 forks source link

Make script more robust #6

Closed metalefty closed 6 months ago

metalefty commented 1 year ago

This PR is intended to fix this error.

./build.sh: line 115: /mnt/etc/cloud/cloud.cfg: No such file or directory

Additionally, I added a check for requisite packages. Currently curl is the only package required during build process. If some package is added in the future, add them to requisite_pkgs variable (space separated). Then the output will be:

# ./build.sh
Requisite packages are missing, install following packages:
        curl
        foo
        bar

Finally, I updated README to match current requirements (qemu is not required anymore).