Merge pull request #237 from doraskayo/add-dev-shm

Add /dev/shm for sysc
This commit is contained in:
Andrius Štikonas 2023-02-02 00:00:11 +00:00 committed by GitHub
commit c67da3eb8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 6 deletions

View File

@ -184,6 +184,7 @@ print(shutil.which('chroot'))
'--dev-bind', '/dev/zero', '/sysc_image/dev/zero',
'--dev-bind', '/dev/random', '/sysc_image/dev/random',
'--dev-bind', '/dev/urandom', '/sysc_image/dev/urandom',
'--tmpfs', '/sysc_image/dev/shm',
'--proc', '/sysc_image/proc',
'--bind', '/sys', '/sysc_image/sys',
'--tmpfs', '/sysc_image/tmp',

View File

@ -96,12 +96,12 @@ bd94e4a3a5d1af32056f096d01982ed36498f75fdc06cff3aa8db8a4917cf0b0 python-2.0.1_1
9817dd53e93c270836ee7b452a91dc0ceffdb766e572d87ae3cec8b5d2b8e5bf python-2.3.7_0.tar.bz2
fb79e89cca947ef64a6a2217e2940d196eea8e6f08ba39495809cbda29cfc94f python-2.3.7_1.tar.bz2
8d9164d477e25f5246f2ca900510d177a52ee19048b4fb8c8d0124d97a04e7c1 python-2.5.6_0.tar.bz2
575ed9dc146375ac2d77daceb5987db90ff82435a82b6c58bd8a8d488f37b004 python-3.1.5_0.tar.bz2
87150a7e0899e22142f32f6dbadf3d35fced97dfad078253474a815b4320c31e python-3.1.5_1.tar.bz2
80ccfbe08397626ed79f66d9c7a457d059cd5307e55a8fe4e6948ceba31cb1cf python-3.11.1_0.tar.bz2
a777662a1c7ceeb8800809f8952c90854fcfc9f1c55624c111e156f488a6e61c python-3.3.7_0.tar.bz2
81a32c5dd16b2d43d5ea3b1f54cf212e4a0dd215ac5168a6b7c89b90ef149e51 python-3.4.10_0.tar.bz2
53ff89360cb1954de33accffbe234d1927b34923e13a4f7aea8e3e91b9414f2d python-3.8.16_0.tar.bz2
55ba3a0385f3c255130c63cb9115b4106654616b84edbf20f55f9eb0543e4e89 python-3.1.5_0.tar.bz2
b980a12b7c6d2db906e0b89505bdf8f9a84753d2ff8c40dd71781c259c1cad33 python-3.1.5_1.tar.bz2
e0fad962606d883371463bc3de640210450c5291d62fe79a842ef275a2794310 python-3.11.1_0.tar.bz2
3f4deccf834b8cfb860c79248028fbc467ad59cf3cb7c7087e4eac2efec17f99 python-3.3.7_0.tar.bz2
d7e35b8dd5782e58e95b470ac9b748e8ed5eb7302a6608b9df695c8b2808f53f python-3.4.10_0.tar.bz2
48a91c0989c1ff8f666dc3677e04a12e1edd4579abc5c6303e8d7a286d385cc4 python-3.8.16_0.tar.bz2
8a0248fbf8fe1764580698415cc3628585d4dd054ddf63040f400e18cbaef7a4 sed-4.0.9_0.tar.bz2
177553732a080e25ba5778525743543e9da012122f4ad0d314a425ca87a3c2bd sed-4.8_0.tar.bz2
40040522e886fbd2634a115651089658d30935ff47f0649b08988cbade8ef418 tar-1.34_0.tar.bz2

View File

@ -441,6 +441,10 @@ populate_device_nodes() {
test -c "/dev/random" || mknod -m 444 "/dev/random" c 1 8
test -c "/dev/urandom" || mknod -m 444 "/dev/urandom" c 1 9
if command -v mount >/dev/null 2>&1; then
test -d "/dev/shm" || (mkdir /dev/shm && mount -t tmpfs tmpfs /dev/shm)
fi
if [ "${CHROOT}" = False ]; then
test -c "/dev/tty" || mknod -m 666 "/dev/tty" c 5 0
test -c "/dev/console" || mknod -m 666 "/dev/console" c 5 1