Debian Codegraph @

uml/psusan-uml-psusan

raw
1 #!/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 mkfifo -m600 $fifo
10
11 (
12 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=991958
13 : <$fifo
14 cat
15 ) | \
16 bwrap --dev-bind / / --tmpfs /dev/shm \
17 linux mem=512M rootfstype=hostfs rootflags=/ 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 printf '%s\n' "$banner"
24 cat
25 )