-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5133 from afbjorklund/tmpfs
Move root filesystem from rootfs to tmpfs
- Loading branch information
Showing
8 changed files
with
38 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
deploy/iso/minikube-iso/board/coreos/minikube/rootfs-overlay/init
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
mkdir /sysroot | ||
# the value 90% borrowed from tcl via boot2docker | ||
mount -t tmpfs -o size=90% tmpfs /sysroot | ||
# copy from rootfs, to be able to do switch_root(8) | ||
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 "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters