X configuration fails with NFS root (simple fix)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xorg (Ubuntu) |
Fix Released
|
Undecided
|
Kees Cook |
Bug Description
"dpkg-reconfigure xserver-xorg" fails when / is mounted on NFS. This is because:
1. xserver-
3. Dexconf deletes the temp file. This is implemented in nfs-kernel-server by creating a dotfile in the same directory, until the fd is closed. (See bug #65003 for a similar problem in ltsp)
4. When dexconf runs rm -rf on the /tmp/dexconf-* directory, it fails producing a "directory not empty" message, because the dotfile cannot be removed while dexconf is running.
5. xserver-
The workaround I've been using so far is to run:
# dpkg-reconfigure xserver-xorg
# dexconf -o /etc/X11/xorg.conf
# rm -r /tmp/dexconf-*
# md5sum /etc/X11/xorg.conf > /var/lib/
But this is not ideal for obvious reasons. IMHO the solution to bug #65003 should work here.
Changed in xorg: | |
assignee: | nobody → keescook |
status: | Unconfirmed → Fix Committed |
Changed in xorg: | |
status: | Fix Committed → Fix Released |
This patch to /usr/bin/dexconf makes sure that each file is closed when it is no longer needed, so that dotfiles aren't left hanging around in /tmp/dexconf- tmp-*/. I've simply added "exec 4>&-" to match every "exec 4>something".
This fixes dpkg-reconfigure xserver-xorg for me.