luxas / kubernetes-on-arm

Kubernetes ported to ARM boards like Raspberry Pi.
MIT License
597 stars 86 forks source link

$TMPDIR is not synced to the SDCard. #143

Open kenfallon opened 7 years ago

kenfallon commented 7 years ago

Apologies if I'm missing something obvious but I don't think that the $TMPDIR is synced to the SDCard.

write.sh has A tmp dir to store things in, a boot partition and the root filesystem TMPDIR=$(mktemp -d /tmp/writesdcard.XXXXXXXX) ROOT=$TMPDIR/root

Eventually the file dynamic-rootfs.sh has rootfs() which writes the files to the $TMPDIR/root.

I don't see anywhere where the files are then copied from the $TMPDIR to the real root on the SDCARD.