| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | # Copyright 2021-2022 Ian Jackson, Simon Tatham, and contributors to Hippotat |
| 3 | # SPDX-License-Identifier: GPL-3.0-or-later WITH LicenseRef-Hippotat-OpenSSL-Exception |
| 4 | # There is NO WARRANTY. |
| 5 | |
| 6 | set -e |
| 7 | |
| 8 | fifo=tmp/uml/q |
| 9 | mkfifoscip-shell system . . mkfifo. -m600 $fifo |
| 10 | |
| 11 | ( |
| 12 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=991958 |
| 13 | : <$fifo |
| 14 | catscip-shell system . . cat. |
| 15 | ) | \ |
| 16 | bwrap --dev-bind /scip-shell filesystem . . `/`. /scip-shell filesystem . . `/`. --tmpfs /dev/shmscip-shell filesystem . . `/dev/shm`. \ |
| 17 | linux mem=512M rootfstype=hostfs rootflags=/scip-shell filesystem . . `/`. rw \ |
| 18 | con=fd:2,fd:2 con1=fd:0,fd:1 init="${0%/*}"/psusan-uml-inside \ |
| 19 | -- psusan-uml-tmp=$PWD/tmp/uml | \ |
| 20 | ( |
| 21 | read banner |
| 22 | : >$fifo |
| 23 | printfscip-shell system . . printf. '%s\n' "$banner" |
| 24 | catscip-shell system . . cat. |
| 25 | ) |