fix(guix-bootstrap): export bootstrap exec seeds via improve

This commit is contained in:
vxtls 2026-04-05 10:13:01 -04:00
parent 15bccf73a9
commit 25fae3a6ed
4 changed files with 25 additions and 20 deletions

View file

@ -1,15 +0,0 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-3.0-or-later
set -e
dist="${DISTFILES:-/external/distfiles}"
xz_src="/bootstrap-seeds/xz-5.0.6/bin/xz"
xz_dst="${dist}/bootstrap-exec-xz-i686-linux"
if [ ! -x "${xz_src}" ]; then
echo "Missing required bootstrap seed executable: ${xz_src}" >&2
exit 1
fi
install -D -m 0755 "${xz_src}" "${xz_dst}"

View file

@ -0,0 +1,23 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-3.0-or-later
set -e
dist="${DISTFILES:-/external/distfiles}"
install_exec() {
local src="$1"
local dst="$2"
if [ ! -x "${src}" ]; then
echo "Missing required bootstrap seed executable: ${src}" >&2
exit 1
fi
install -D -m 0755 "${src}" "${dist}/${dst}"
}
install_exec /bootstrap-seeds/bash-5.3-1/bin/bash bootstrap-exec-bash-i686-linux
install_exec /bootstrap-seeds/coreutils-8.30/bin/mkdir bootstrap-exec-mkdir-i686-linux
install_exec /bootstrap-seeds/tar-1.30/bin/tar bootstrap-exec-tar-i686-linux
install_exec /bootstrap-seeds/xz-5.0.6/bin/xz bootstrap-exec-xz-i686-linux