fix(boot): add minimal early mounts for /dev and /proc in stage0 resume path

This commit is contained in:
vxtls 2026-03-04 18:55:04 -05:00
parent 8ad179e1e6
commit c90d9da159
3 changed files with 30 additions and 1 deletions

View file

@ -14,12 +14,15 @@ src_compile() {
src_install() {
local compat_src
local compat_bin
compat_src="${DESTDIR}/usr/libexec/guix-hash-compat/guix-1.5.0"
compat_bin="${DESTDIR}/usr/bin/guix-hash-compat"
mkdir -p "${compat_src}"
cp -a . "${compat_src}/"
mkdir -p "$(dirname "${compat_bin}")"
install -D -m 0755 /dev/stdin "${DESTDIR}/usr/bin/guix-hash-compat" <<'EOS'
cat > "${compat_bin}" <<'EOS'
#!/bin/sh
set -e
@ -31,4 +34,5 @@ fi
cd "${src_dir}"
exec ./pre-inst-env guix hash "$@"
EOS
chmod 0755 "${compat_bin}"
}