1- I don’t even know, even in initramfs, before the root file system is mounted, there is a directory for writing / tmp.
However, when the real root is set, this / tmp will be discarded, and final / tmp will be empty. Are you sure the mkdir /tmp/blah command does not work? Or do you assume that because he is not there when you seek him?
2- In Ubuntu (I do not know other distributions) you have a hidden directory in /dev/.initramfs for these needs. Since /dev is the mount point of tmpfs (or devtmpfs) stored on the destination root file system, it will still be there.
source share