From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: ipfire-scm@lists.ipfire.org Subject: [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 2b0ecf4df598d89694442700e5da9acbd502c923 Date: Thu, 12 Sep 2024 09:21:19 +0000 Message-ID: <4X4Bl36T1Vz2xPP@people01.haj.ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0344584505450478077==" List-Id: --===============0344584505450478077== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "IPFire 2.x development tree". The branch, next has been updated via 2b0ecf4df598d89694442700e5da9acbd502c923 (commit) from 7a4ae745478165d03a40f6b602e4e62125019961 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 2b0ecf4df598d89694442700e5da9acbd502c923 Author: Michael Tremer Date: Thu Sep 12 09:17:05 2024 +0000 make.sh: Use devtmpfs to initialize /dev =20 If we set up our /dev manually, we fail to deal with dynmically allocated= loop devices which are more common on modern distributions. =20 Signed-off-by: Michael Tremer ----------------------------------------------------------------------- Summary of changes: make.sh | 36 +----------------------------------- 1 file changed, 1 insertion(+), 35 deletions(-) Difference in files: diff --git a/make.sh b/make.sh index 21543c667..3853982f8 100755 --- a/make.sh +++ b/make.sh @@ -432,41 +432,7 @@ prepareenv() { =20 # Create a new, minimal /dev mount build_dev "${BUILD_DIR}/dev" \ - -t tmpfs -o "nosuid,noexec,mode=3D0755,size=3D4m,nr_inodes=3D64k" - - # Create device nodes - mknod -m 600 "${BUILD_DIR}/dev/console" c 5 1 - mknod -m 666 "${BUILD_DIR}/dev/null" c 1 3 - mknod -m 666 "${BUILD_DIR}/dev/zero" c 1 5 - mknod -m 666 "${BUILD_DIR}/dev/full" c 1 7 - mknod -m 444 "${BUILD_DIR}/dev/random" c 1 8 - mknod -m 444 "${BUILD_DIR}/dev/urandom" c 1 9 - mknod -m 444 "${BUILD_DIR}/dev/kmsg" c 1 11 - mknod -m 666 "${BUILD_DIR}/dev/tty" c 5 0 - mknod -m 666 "${BUILD_DIR}/dev/rtc0" c 252 0 - - # Create loop devices - mknod -m 666 "${BUILD_DIR}/dev/loop-control" c 10 237 - mknod -m 666 "${BUILD_DIR}/dev/loop0" b 7 0 - mknod -m 666 "${BUILD_DIR}/dev/loop1" b 7 1 - mknod -m 666 "${BUILD_DIR}/dev/loop2" b 7 2 - mknod -m 666 "${BUILD_DIR}/dev/loop3" b 7 3 - mknod -m 666 "${BUILD_DIR}/dev/loop4" b 7 4 - mknod -m 666 "${BUILD_DIR}/dev/loop5" b 7 5 - mknod -m 666 "${BUILD_DIR}/dev/loop6" b 7 6 - mknod -m 666 "${BUILD_DIR}/dev/loop7" b 7 7 - - # Create directories - mkdir -p "${BUILD_DIR}/dev/pts" - mkdir -p "${BUILD_DIR}/dev/shm" - - # Create symlinks - ln -s "pts/ptmx" "${BUILD_DIR}/dev/ptmx" - ln -s "../proc/self/fd" "${BUILD_DIR}/dev/fd" - ln -s "../proc/self/fd/0" "${BUILD_DIR}/dev/stdin" - ln -s "../proc/self/fd/1" "${BUILD_DIR}/dev/stdout" - ln -s "../proc/self/fd/2" "${BUILD_DIR}/dev/stderr" - ln -s "../proc/kcore" "${BUILD_DIR}/dev/core" + -t devtmpfs -o "nosuid,noexec,mode=3D0755,size=3D4m,nr_inodes=3D64k" =20 # Mount a new /dev/pts mount build_dev_pts "${BUILD_DIR}/dev/pts" \ hooks/post-receive -- IPFire 2.x development tree --===============0344584505450478077==--