Skip to content

Commit

Permalink
Move root filesystem from rootfs to tmpfs
Browse files Browse the repository at this point in the history
  • Loading branch information
afbjorklund committed Aug 19, 2019
1 parent 17dd510 commit d821b07
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions deploy/iso/minikube-iso/board/coreos/minikube/rootfs-overlay/init
Original file line number Diff line number Diff line change
@@ -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 1>/sysroot/dev/console
exec 2>/sysroot/dev/console
exec /sbin/switch_root /sysroot /sbin/init "$@"

0 comments on commit d821b07

Please sign in to comment.