Comment # 14 on bug 1195508 from
(In reply to Franck Bui from comment #12)
>  2. for some reasons, the mapping tables were embedded in initrd
> uncompressed (see comment #8). I don't think that's correct neither and
> dracut should keep the mapping files as they are saved on the host
> especially if they were compressed (smaller).
> 
> So I think this is a dracut issue, hence can you please take it over Antonio
> ?

JFTR, this is not a bug.

In hostonly mode this is done on purpose to save space (at least in most cases)
by avoiding copying the decompressor binary to the initrd (gzip here).

- Uncompressed scenario: 120K

> # lsinitrd | grep -e gzip -e us.map
> -rw-r--r--   1 root     root         2004 Jun  6  2020 usr/share/kbd/keymaps/legacy/i386/qwerty/us.map
> -rw-r--r--   1 root     root       121139 Jun  6  2020 usr/share/kbd/keymaps/xkb/us.map

- Compressed scenario: 135K

> # lsinitrd test.img | grep -e gzip -e us.map
> lrwxrwxrwx   1 root     root           15 Feb 18 14:43 bin/gzip -> ../usr/bin/gzip
> -rwxr-xr-x   1 root     root       134808 Jun  7  2021 usr/bin/gzip
> -rw-r--r--   1 root     root          666 Jun  6  2020 usr/share/kbd/keymaps/legacy/i386/qwerty/us.map.gz
> -rw-r--r--   1 root     root         3571 Jun  6  2020 usr/share/kbd/keymaps/xkb/us.map.gz


On the other hand, in non-hostonly initrds, keymaps are always saved compressed
in the initrd and the decompressor is also added.


You are receiving this mail because: