2 # Copyright 2021-2022 Ian Jackson, Simon Tatham, and contributors to Hippotat
3 # SPDX-License-Identifier: GPL-3.0-or-later
4 # There is NO WARRANTY.
9 mount -t proc none /proc
10 mount -t sysfs none /sys
11 mount -t devpts none /dev/pts
12 mount -t tmpfs none /tmp
13 mount -t tmpfs none /run
15 mount --bind /usr/lib/uml/modules/ /lib/modules/
18 exec 0<>/dev/tty1 1>&0
21 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=991959
22 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
24 export SHELL=/bin/bash
26 HOME=$(cat /proc/cmdline)
28 *' psusan-uml-tmp='*) ;;
29 *) echo >&2 'psusan-uml-tmp not found in /proc/cmdline'; exit 1;;
31 HOME=${HOME##* psusan-uml-tmp=}
36 dd if=random-seed of=/dev/urandom
37 src/uml/rndaddtoentcnt/rndaddtoentcnt 4096 >&2