Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport upstream fixes to 059 #310

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dracut-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ inst_decompress() {
inst_simple "${_src}"
# Decompress with chosen tool. We assume that tool changes name e.g.
# from 'name.gz' to 'name'.
${_cmd} "${initdir}${_src}"
${_cmd} "${initdir}${_src#"$dracutsysrootdir"}"
done
}

Expand Down
19 changes: 16 additions & 3 deletions modules.d/10i18n/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ install() {
local CMD
local FN

if [[ -f $dracutsysrootdir$1 ]]; then
if [[ -f $1 ]]; then
MAPS=("$1")
else
MAPNAME=${1%.map*}

mapfile -t -d '' MAPS < <(
find "${dracutsysrootdir}${kbddir}"/keymaps/ -type f \( -name "${MAPNAME}" -o -name "${MAPNAME}.map*" \) -print0
find "${dracutsysrootdir}${kbddir}"/keymaps/ -type f,l \( -name "${MAPNAME}" -o -name "${MAPNAME}.map*" \) -print0
)
fi

Expand Down Expand Up @@ -160,6 +160,7 @@ install() {

install_local_i18n() {
local map
local maplink

# shellcheck disable=SC2086
eval "$(gather_vars ${i18n_vars})"
Expand Down Expand Up @@ -216,7 +217,19 @@ install() {
done

for keymap in "${!KEYMAPS[@]}"; do
inst_opt_decompress "${keymap}"
if [[ -L ${keymap} ]]; then
maplink=$(readlink -f "${keymap}")
# skip symlinked directories
[[ -d ${maplink} ]] && continue

inst_opt_decompress "${maplink}"
# create new symlink to decompressed keymap
maplink=${maplink%.gz}
keymap=${keymap%.gz}
ln -srn "${initdir}${maplink#"$dracutsysrootdir"}" "${initdir}${keymap#"$dracutsysrootdir"}"
else
inst_opt_decompress "${keymap}"
fi
done

inst_opt_decompress "${kbddir}"/consolefonts/"${DEFAULT_FONT}".*
Expand Down
6 changes: 4 additions & 2 deletions modules.d/98dracut-systemd/dracut-cmdline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ fi

info "Using kernel command line parameters:" "$(getcmdline)"

getargbool 0 rd.udev.log-priority=info -d rd.udev.info -d -n -y rdudevinfo && echo 'udev_log="info"' >> /etc/udev/udev.conf
getargbool 0 rd.udev.log-priority=debug -d rd.udev.debug -d -n -y rdudevdebug && echo 'udev_log="debug"' >> /etc/udev/udev.conf
getargbool 0 rd.udev.log_level=info -d rd.udev.log-priority=info -d rd.udev.info -d -y rdudevinfo \
&& echo 'udev_log="info"' >> /etc/udev/udev.conf
getargbool 0 rd.udev.log_level=debug -d rd.udev.log-priority=debug -d rd.udev.debug -d -y rdudevdebug \
&& echo 'udev_log="debug"' >> /etc/udev/udev.conf

source_conf /etc/conf.d

Expand Down
4 changes: 4 additions & 0 deletions suse/README.susemaint
Original file line number Diff line number Diff line change
Expand Up @@ -329,4 +329,8 @@ PR Commit message
2611 fix(livenet): propagate error code
2611 fix(livenet): check also `content-length` from live image header
2611 fix(livenet): split `imgsize` calculation to avoid misleading error message
2613 fix(i18n): handle symlinked keymap
2614 fix(dracut-systemd): replace `rd.udev.log-priority` with `rd.udev.log_level`
2618 fix(i18n): handle keymap includes with `--sysroot`
2618 fix(dracut-init.sh): handle decompress with `--sysroot`

Loading