Opened 13 years ago
Closed 13 years ago
#481 closed defect (fixed)
Ubuntu keyboard map not saved by mindi
Reported by: | victor gattegno | Owned by: | Victor Gattegno |
---|---|---|---|
Priority: | normal | Milestone: | 2.2.9.7 |
Component: | mindi | Version: | 2.2.9.6 |
Severity: | normal | Keywords: | keyboard AZERTY |
Cc: |
Description
Ubuntu (11.04 and 10.10) keyboard map is not saved by mindi.
Then, at "mondorescue backup" boot (expert mode), the keyboard is mapped to "us" (QWERTY) and - if keyboard is a non-us one - isn't mapped to the right keyboard (example: to the french "AZERTY" mapping).
In mondoarchive.log we get :
Line 816: Analyzing your keyboard's configuration. Line 817: Searching for rc.config ...Unknown config detected. Default keyboard map will be used. Line 2890: Analyzing your keyboard's configuration. Line 2891: Unknown config detected. Default keyboard map will be used.
Instead, in mondoarchive.log, we should get :
Analyzing your keyboard's configuration. Adding the following keyboard mapping tables ...
Attachments (1)
Change History (4)
by , 13 years ago
comment:1 by , 13 years ago
It is because, in mindi, for Ubuntu, is tested : /etc/console-setup/boottime.kmap.gz
On Ubuntu 11.04 and 10.10, that file doesn't exist, it is named : /etc/console-setup/cached.kmap.gz
So I added a new section in /usr/sbin/mindi script, line 377, under the one that tested Ubuntu boottime.kmap.gz file :
elif [ -e "/etc/console-setup/cached.kmap.gz" ] ; then echo "Ubuntu-style config detected." >> $LOGFILE echo -en "Adding the following keyboard mapping tables: " mkdir -p $bigdir/tmp echo "/etc/console-setup/cached.kmap.gz" > $bigdir/tmp/KEYMAP-LIVES-HERE KBDEPTH=0 mkdir -p $bigdir/etc/console-setup cp /etc/console-setup/cached.kmap.gz $bigdir/etc/console-setup 2>> $LOGFILE echo -e "$DONE" return 0
After that, /etc/console-setup/cached.kmap.gz is detected and saved in mondorescue backup.
And now the keyboard is mapped correctly at mondo backup boot.
comment:2 by , 13 years ago
With that mindi new section, in mondoarchive.log, we get :
Line 816: Adding the following keyboard mapping tables: Line 817: Done. Line 2898: Analyzing your keyboard's configuration. Line 2899: Ubuntu-style config detected.
Not perfect...we should get also the mapping name (us-latin1, etc.) but it works at boot ;-)
comment:3 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in rev [2828]. Thanks Victor for your report and fix (I adapted it a bit to avoid too much code duplication)
mindi modified, to detect Ubuntu cached.kmap.gz file