diff --git a/deploy/iso/minikube-iso/board/coreos/minikube/rootfs-overlay/init b/deploy/iso/minikube-iso/board/coreos/minikube/rootfs-overlay/init new file mode 100755 index 000000000000..ecbb80a05d37 --- /dev/null +++ b/deploy/iso/minikube-iso/board/coreos/minikube/rootfs-overlay/init @@ -0,0 +1,11 @@ +#!/bin/sh +mkdir /sysroot +mount -t tmpfs -o size=90% tmpfs /sysroot +tar -C / --exclude=sysroot -cf - . | tar -C /sysroot/ -xf - + +# devtmpfs does not get automounted for initramfs +/bin/mount -t devtmpfs devtmpfs /sysroot/dev +exec 0/sysroot/dev/console +exec 2>/sysroot/dev/console +exec /sbin/switch_root /sysroot /sbin/init "$@"