fix(payload-import): mount proc via syscall in payload-import and enumerate payload candidates strictly from /proc/partitions major/minor

This commit is contained in:
vxtls 2026-03-02 10:42:58 -05:00
parent 96765e2121
commit 38f8769fce
2 changed files with 56 additions and 1 deletions

View file

@ -10,6 +10,10 @@ if [ "${PAYLOAD_REQUIRED}" = True ]; then
found_payload=0
mkdir -p /dev
if [ ! -r /proc/partitions ]; then
payload-import --mount-proc >/dev/null 2>&1 || :
fi
if [ ! -r /proc/partitions ]; then
echo "payload-import failed: /proc/partitions is unavailable." >&2
exit 1