V8.02.768.2025.06.01

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-06-01 17:18:06 +02:00
parent c26eb3a798
commit 5e06f31310

View File

@@ -134,14 +134,16 @@ jobs:
#mkdir -p opt/livebuild/chroot/dev
#mknod opt/livebuild/chroot/dev/null c 1 3
#chmod 666 opt/livebuild/chroot/dev/null
mkdir -p config/hooks/normal
touch config/hooks/normal/999-fix-dev.chroot
chmod 0775 config/hooks/normal/999-fix-dev.chroot
cat << 'EOF' >| config/hooks/normal/999-fix-dev.chroot
mkdir -p opt/livebuild/config/hooks/normal
touch opt/livebuild/config/hooks/normal/0000-fix-dev.chroot
chmod 0775 opt/livebuild/config/hooks/normal/0000-fix-dev.chroot
cat << 'EOF' >| opt/livebuild/config/hooks/normal/0000-fix-dev.chroot
set -e
if [ ! -e /dev/null ]; then
echo "[fix-dev] Creating /dev/null manually"
mknod -m 666 /dev/null c 1 3
printf "\e[95m++++ ++++ ++++ ++++ ++++ ++++ ++ [fix-dev] Creating /dev/null manually. \e[0m\n"
mknod -m 666 /dev/null c 1 3
else
printf "\e[91m++++ ++++ ++++ ++++ ++++ ++++ ++ [fix-dev] /dev/null inside chroot present. \e[0m\n"
fi
chmod 666 /dev/null
EOF