Well i'm not using ubuntu in openvz, but out of curiosity i took a look at normal desktop ubuntu installation
# fgrep /var/run /proc/mounts
tmpfs /var/run tmpfs rw,nosuid,nodev,noexec 0 0
tmpfs /var/run tmpfs rw,nosuid,nodev,noexec 0 0
tmpfs /var/run tmpfs rw,nosuid,nodev,noexec 0 0
# fgrep /var/lock /proc/mounts
tmpfs /var/lock tmpfs rw,nosuid,nodev,noexec 0 0
tmpfs /var/lock tmpfs rw,nosuid,nodev,noexec 0 0
tmpfs /var/lock tmpfs rw,nosuid,nodev,noexec 0 0
#
So this looks like unrelated to openvz ubuntu bug probably
in init.d scripts
# egrep -e 'do.*/var/(lock|run)[[:space:]]' /etc/init.d/*
/etc/init.d/mountkernfs.sh: domount tmpfs "" /var/run -omode=0755,nodev,noexec,nosuid
/etc/init.d/mountkernfs.sh: domount tmpfs "" /var/lock -omode=1777,nodev,noexec,nosuid
/etc/init.d/mtab.sh: domtab tmpfs /var/run "varrun" -omode=0755,nodev,noexec,nosuid
/etc/init.d/mtab.sh: domtab tmpfs /var/lock "varlock" -omode=1777,nodev,noexec,nosuid
#
But # fgrep /var/lock /etc/mtab
varlock /var/lock tmpfs rw,noexec,nosuid,nodev,mode=1777 0 0
#
[Updated on: Wed, 20 August 2008 23:03]
Report message to a moderator