tmpfs を /tmp に bind オプションを使って

参考
Common threads: Advanced filesystem implementor's guide, Part 3

つまり,下のようにすると,/tmpがtmpfsになる.

# mkdir /dev/shm/tmp
# chmod 1777 /dev/shm/tmp
# mount --bind /dev/shm/tmp /tmp

これ起動時に実行するためにはどうしたらよいのか?
/etc/rc.localあたり?
これってroot権限で実行されるんだっけ?

追記

ArchLinuxのwikiによると
http://wiki.archlinux.org/index.php/Arch_Boot_Process#.2Fetc.2Frc.local

When editing this file, keep in mind that it is run after your basic setup (modules/daemons), as the root user, and whether or not X starts.

とあるから,大丈夫っぽい.