mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 19:46:31 +01:00
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:
parent
96765e2121
commit
38f8769fce
2 changed files with 56 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue