guix-install.sh: Expand mktemp template for busybox compatibility.

Fixes <https://issues.guix.gnu.org/58858>.

* etc/guix-install.sh (main): Use 6 'X' characters in the template, as this is
the minimum required by Busybox's mktemp (which matches glibc's mktemp
behavior).

Reported-by: conses <contact@conses.eu>
This commit is contained in:
Maxim Cournoyer 2022-11-16 16:23:15 -05:00
parent e06df550e2
commit 6aa5d1dc24
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -633,7 +633,7 @@ main()
_msg "${INF}system is ${ARCH_OS}"
umask 0022
tmp_path="$(mktemp -t -d guix.XXX)"
tmp_path="$(mktemp -t -d guix.XXXXXX)"
if [ -z "${GUIX_BINARY_FILE_NAME}" ]; then
guix_get_bin_list "${GNU_URL}"