build.sh: mkdir /usr/local/sbin before writing the modprobe stub
Some checks are pending
image / image (push) Has started running

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Jorijn van der Graaf 2026-08-08 19:39:45 +02:00
commit 95ec50d0b0

View file

@ -33,6 +33,7 @@ if [ "$(id -u)" = 0 ]; then
# the static /dev/loop-control node. Make pmbootstrap's explicit # the static /dev/loop-control node. Make pmbootstrap's explicit
# 'sudo modprobe loop' a no-op (/usr/local/sbin precedes /sbin in sudo's # 'sudo modprobe loop' a no-op (/usr/local/sbin precedes /sbin in sudo's
# secure_path). # secure_path).
mkdir -p /usr/local/sbin
printf '#!/bin/sh\nexit 0\n' > /usr/local/sbin/modprobe printf '#!/bin/sh\nexit 0\n' > /usr/local/sbin/modprobe
chmod +x /usr/local/sbin/modprobe chmod +x /usr/local/sbin/modprobe
id build >/dev/null 2>&1 || adduser -D build id build >/dev/null 2>&1 || adduser -D build