templates: don't put devpts in $confdir/container/fstab
PATCH 1/1 templates: don't put devpts in $confdir/container/fstab
src/lxc/conf.c will explicitly mount it anyway. Furthermore, the fstab entry, which is getting processed first, did not specify -o newinstance. This can cause the host's devpts entry mount options to change, as in
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/607636.
I believe the lenny, fedora, and debian templates also will need an update.
--- templates/lxc-lucid.in | 1 - templates/lxc-maverick.in | 1 - templates/lxc-natty.in | 1 - 3 files changed, 0 insertions(+), 3 deletions(-)
templates/lxc-lucid.in +0 -1
@@ -260,7 +260,6 @@ EOF cat <<EOF > $path/fstab proc $rootfs/proc proc nodev,noexec,nosuid 0 0 -devpts $rootfs/dev/pts devpts defaults 0 0 sysfs $rootfs/sys sysfs defaults 0 0 EOF
templates/lxc-maverick.in +0 -1
@@ -183,7 +183,6 @@ EOF cat <<EOF > $path/fstab proc $rootfs/proc proc nodev,noexec,nosuid 0 0 -devpts $rootfs/dev/pts devpts defaults 0 0 sysfs $rootfs/sys sysfs defaults 0 0 EOF
templates/lxc-natty.in +0 -1
@@ -184,7 +184,6 @@ EOF cat <<EOF > $path/fstab proc $rootfs/proc proc nodev,noexec,nosuid 0 0 -devpts $rootfs/dev/pts devpts defaults 0 0 sysfs $rootfs/sys sysfs defaults 0 0 EOF
Signature · 1 line
1.7.4.1
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 8 lines · Serge E. Hallyn
src/lxc/conf.cwill explicitly mount it anyway. Furthermore, the fstab entry, which is getting processed first, did not specify -o newinstance. This can cause the host's devpts entry mount options to change, as in
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/607636.I believe the lenny, fedora, and debian templates also will need an update.
Applied and update debian and fedora templates.
Thanks Serge
-- Daniel