diff options
author | Aaron Ball <nullspoon@oper.io> | 2019-03-31 21:30:56 -0600 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2019-03-31 21:30:56 -0600 |
commit | cd3afef46d3704289a83c0674f450e9764eaf563 (patch) | |
tree | acf347dc04fd3a6730774ab52f29b2d99f3661a9 | |
parent | 5a560fd5c92c34ca04d2ed33f4bf98c64eb210d0 (diff) | |
download | mkinitramfs-cd3afef46d3704289a83c0674f450e9764eaf563.tar.gz mkinitramfs-cd3afef46d3704289a83c0674f450e9764eaf563.tar.xz |
mkinitramfs:add terminals database to output tarball
Previously, terminals could execute various commands (namely `clear`)
because the terminals database could not be found in the initramfs. This
ensures that the terminals database is present on boot so certain
commands run without error or warning.
-rwxr-xr-x | mkinitramfs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mkinitramfs b/mkinitramfs index aec7193..b0b015e 100755 --- a/mkinitramfs +++ b/mkinitramfs @@ -133,6 +133,10 @@ function cache_dir_setup { for i in ${dirs[*]}; do mkdir -p ${cache}/${i} done + + # Copy in terminals database + mkdir -p "${cache}/usr/share" + cp -r /usr/share/terminfo "${cache}/usr/share/terminfo" } |