I have just installed 2006.0 from the LiveCD using the text-mode installer (installer-dialog I believe). I get the following permissions on /var/tmp: # ls -l /var/ |grep tmp drwxr-xr-x 3 root root 4096 Mar 1 00:43 tmp This creates errors when non-root users try to write to this directory. eg. startx reports The XKEYBOARD keymap compiler (xkbcomp) reports: > Error: Cannot open "/var/tmp/server-0.xkm" to write keyboard description > Exiting (EE) Couldn't load XKB keymap, falling back to pre-XKB keymap
Lovely. This one is going to be fun to fix. I bet binary packages have the same problem. Although, it wouldn't show up since the directory already exists in the stage tarballs with the proper permissions.
Ok, I've implemented a two-fold fix for this. First, in copy_pkg_to_chroot(), I loop through the directories in the image dir, check the owner/group and mode on the original, and then apply it to the directory in the image dir. This will help for any other directories that may show this particular problem. The second part of the fix is creating /tmp, /var/tmp, and /var/lib/portage if they don't exist. It looks like portage is the one that normally creates these directories. I lifted and modified the code from portage to create these directories with the proper permissions. Both fixes are in CVS. You can try it out by opening a terminal on the LiveCD and doing '/opt/installer/misc/updategtkfe'.
Moving to Release Media/Installer.