Files
linuxkit/pkg/init/init
Avi Deitcher a7c577468d Remove all tty init from init
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2017-06-07 15:43:40 +03:00

10 lines
174 B
Bash
Executable File

#!/bin/sh
/bin/mount -t tmpfs tmpfs /mnt
/bin/cp -a / /mnt 2>/dev/null
/bin/mount -t proc -o noexec,nosuid,nodev proc /proc
exec /bin/busybox switch_root /mnt /sbin/init