From d821b070ab0e9a4ec8747449e4473d44e05204e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20F=20Bj=C3=B6rklund?= Date: Wed, 14 Aug 2019 22:49:39 +0200 Subject: [PATCH] Move root filesystem from rootfs to tmpfs --- .../board/coreos/minikube/rootfs-overlay/init | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 deploy/iso/minikube-iso/board/coreos/minikube/rootfs-overlay/init 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 "$@"