0 size xorg.conf after 20050816 breezy install

Bug #19774 reported by Jørgen Salvesen
12
Affects Status Importance Assigned to Milestone
xorg (Ubuntu)
Fix Released
Critical
Matt Zimmerman

Bug Description

After the installer has fininshed and gdm is to be launched, the resulting
xorg.conf has zero size.

Corresponding error:

Setting up xserver-xorg (6.8.2-49) ...
xserver-xorg/config/inputdevice/keyboard/model not set. Aborting. Reconfigure
the X server with "dpkg-reconfigure xserver-xorg" to correct this problem.
xserver-xorg postinst warning: error while preparing new Xorg X server

The language selected is english and keyboard layout is norwegian

Revision history for this message
Matt Zimmerman (mdz) wrote :

This is caused by /model being auto_answered with a default of '' (empty
string). I would expect validate_string_db_input to catch this, since
MAY_BE_NULL is empty:

MAY_BE_NULL= auto_answer validate_string_db_input "$(priority_ceil $PRIORITY)"
xserver-xorg/config/inputdevice/keyboard/model "$DEFAULT"

but it doesn't:

+ auto_answer validate_string_db_input medium
xserver-xorg/config/inputdevice/keyboard/model ''
+ '[' 4 -ne 4 ']'
+ INPUT_COMMAND=validate_string_db_input
+ PRIORITY=medium
+ TEMPLATE=xserver-xorg/config/inputdevice/keyboard/model
+ DEFAULT_ANSWER=
+ set +e
+ debug_echo 'auto_answer() "validate_string_db_input medium
xserver-xorg/config/inputdevice/keyboard/model" with default ""'
+ '[' -n '' ']'
+ '[' '' = user ']'
+ '[' '' = '.*' ']'
+ db_fget xserver-xorg/config/inputdevice/keyboard/model seen
+ _db_cmd 'FGET xserver-xorg/config/inputdevice/keyboard/model' seen
+ echo 'FGET xserver-xorg/config/inputdevice/keyboard/model' seen
+ IFS='
'
+ read -r _db_internal_line
+ RET=false
+ return 0
+ '[' -z yes ']'
+ '[' false = true ']'
+ debug_echo 'auto_answer: auto-answering with ""'
+ '[' -n '' ']'
+ '[' '' = user ']'
+ '[' '' = '.*' ']'
+ db_set xserver-xorg/config/inputdevice/keyboard/model ''
+ _db_cmd 'SET xserver-xorg/config/inputdevice/keyboard/model' ''
+ echo 'SET xserver-xorg/config/inputdevice/keyboard/model' ''
+ IFS='
'
+ read -r _db_internal_line
+ RET='value set'
+ return 0
+ validate_string_db_input medium
xserver-xorg/config/inputdevice/keyboard/model+ '[' 2 -ne 2 ']'
+ PRIORITY=medium
+ TEMPLATE=xserver-xorg/config/inputdevice/keyboard/model
+ db_get xserver-xorg/config/inputdevice/keyboard/model
+ _db_cmd 'GET xserver-xorg/config/inputdevice/keyboard/model'
+ echo 'GET xserver-xorg/config/inputdevice/keyboard/model'
+ IFS='
'
+ read -r _db_internal_line
+ RET=
+ return 0
+ SAFE=
+ set +e
+ :
+ db_input medium xserver-xorg/config/inputdevice/keyboard/model
+ _db_cmd 'INPUT medium' xserver-xorg/config/inputdevice/keyboard/model
+ echo 'INPUT medium' xserver-xorg/config/inputdevice/keyboard/model
+ IFS='
'
+ read -r _db_internal_line
+ RET='30 question skipped'
+ return 30
+ '[' 30 -eq 30 ']'
+ break
+ set -e
+ '[' 0 -eq 30 ']'
+ debug_echo 'auto_answer: asking xserver-xorg/config/inputdevice/keyboard/model'
+ '[' -n '' ']'
+ '[' '' = user ']'
+ '[' '' = '.*' ']'
+ set -e
+ db_go
+ _db_cmd 'GO '
+ echo 'GO '
+ IFS='
'
+ read -r _db_internal_line
+ RET=ok
+ return 0
+ db_get xserver-xorg/config/inputdevice/keyboard/model
+ _db_cmd 'GET xserver-xorg/config/inputdevice/keyboard/model'
+ echo 'GET xserver-xorg/config/inputdevice/keyboard/model'
+ IFS='
'
+ read -r _db_internal_line
+ RET=
+ return 0
+ debug_echo 'auto_answer: xserver-xorg/config/inputdevice/keyboard/model is
""'+ '[' -n '' ']'

Revision history for this message
Matt Zimmerman (mdz) wrote :

Created an attachment (id=3256)
patch for 6.8.2-50

Fixed in 6.8.2-50. The fact that MAY_BE_NULL didn't work should still be
investigated, and Daniel should verify that I haven't tripped over any of the
mines in this particular minefield, but this should unblock Colony 3.

Revision history for this message
Matt Zimmerman (mdz) wrote :

This was fixed long ago, as indicated in comments

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.