Commit Graph

7 Commits

Author SHA1 Message Date
Yauheni Kaliuta
2679f21c98 weak-modules: compare_initramfs_modules: exit on pushd/popd failures
Coverity reports warning
`warning[SC2164]: Use 'popd ... || exit' or 'popd ... || return' in case popd fails.`

This cannot happen in case of weak-modules, but makes no harm.

Signed-off-by: Yauheni Kaliuta <ykaliuta@redhat.com>
2021-08-10 16:03:41 +03:00
Yauheni Kaliuta
50733019f1 weak-modules: split modules into array with read -a
Coverity reports warning for splitting mods=($i)
`Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.`

Even if it can not cause problems for weak-modules case where the
list is coming from modules.dep, use the recommended read -a method.

Signed-off-by: Yauheni Kaliuta <ykaliuta@redhat.com>
2021-08-10 16:03:34 +03:00
Yauheni Kaliuta
933fad99cb weak-modules: Sync with RHEL
Signed-off-by: Yauheni Kaliuta <ykaliuta@fedoraproject.org>
2020-01-20 18:56:21 +02:00
Laura Abbott
b006530fb5 weak-modules: Sync with RHEL
Signed-off-by: Laura Abbott <labbott@redhat.com>
2019-11-01 09:22:38 -04:00
Yauheni Kaliuta
559b043f51 weak-modules: sync with RHEL
Signed-off-by: Yauheni Kaliuta <ykaliuta@fedoraproject.org>
2019-02-25 15:10:47 +02:00
Josh Boyer
e197298135 Fix path to dracut in weak-modules (rhbz 1295038) 2016-01-07 14:21:01 -05:00
Václav Pavlín
59185aa6d2 Pull in weak-modules script for kABI 2013-03-28 16:31:33 +01:00