build.sh: mkdir /usr/local/sbin before writing the modprobe stub
Some checks are pending
image / image (push) Has started running
Some checks are pending
image / image (push) Has started running
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
c2c2e90d3a
commit
95ec50d0b0
1 changed files with 1 additions and 0 deletions
1
build.sh
1
build.sh
|
|
@ -33,6 +33,7 @@ if [ "$(id -u)" = 0 ]; then
|
|||
# the static /dev/loop-control node. Make pmbootstrap's explicit
|
||||
# 'sudo modprobe loop' a no-op (/usr/local/sbin precedes /sbin in sudo's
|
||||
# secure_path).
|
||||
mkdir -p /usr/local/sbin
|
||||
printf '#!/bin/sh\nexit 0\n' > /usr/local/sbin/modprobe
|
||||
chmod +x /usr/local/sbin/modprobe
|
||||
id build >/dev/null 2>&1 || adduser -D build
|
||||
|
|
|
|||
Loading…
Reference in a new issue