]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
3 years agofix(dracut-install): do not try to copy files from the root directory
Marcos Mello [Sun, 24 Jul 2022 19:51:37 +0000 (16:51 -0300)] 
fix(dracut-install): do not try to copy files from the root directory

HWCAP library path needs at least two parent directories, for example:

/lib64/power6x/libc.so.6
/lib64/glibc-hwcaps/power9/libpthread-2.28.so (glibc 2.33+)

Before:

dracut-install: Lib install: '/lib64/libz.so.1'
dracut-install: dracut_install('/lib64/libz.so', '/lib64/libz.so', 0, 0, 1)
dracut-install: dracut_install('//libz.so.1', '//libz.so.1', 0, 0, 1)
dracut-install: dracut_install('//libz.so', '//libz.so', 0, 0, 1)

After:

dracut-install: Lib install: '/lib64/libz.so.1'
dracut-install: dracut_install('/lib64/libz.so', '/lib64/libz.so', 0, 0, 1)

3 years agorefactor(dracut-install): do not call dirname() directly
Marcos Mello [Sun, 24 Jul 2022 19:49:17 +0000 (16:49 -0300)] 
refactor(dracut-install): do not call dirname() directly

Avoid its horrible API. Borrow dirname_malloc() from systemd:

https://github.com/systemd/systemd/blob/v251/src/basic/path-util.c#L775
https://github.com/systemd/systemd/blob/v251/src/basic/path-util.h#L150

(licence is LGPLv2.1 or later)

3 years agofix(dracut.sh): do not fail on irregular files
Pavel Valena [Thu, 21 Jul 2022 15:40:20 +0000 (17:40 +0200)] 
fix(dracut.sh): do not fail on irregular files

If file is not a regular file (test -f), dracut.sh fails,
which is unexpected change of behaviour.
The workaround would be to create an empty file.

Fixes: #1835
3 years agofeat(dracut.sh): pass engine flag to sbsign allowing use with hardware devices
joamonwx [Wed, 20 Jul 2022 19:26:13 +0000 (09:26 -1000)] 
feat(dracut.sh): pass engine flag to sbsign allowing use with hardware devices

3 years agofix(dmsquash-live): run checkisomd5 on correct device
Brian C. Lane [Fri, 22 Jul 2022 23:10:20 +0000 (16:10 -0700)] 
fix(dmsquash-live): run checkisomd5 on correct device

When the new grub2 iso is written to a usb drive the disk label points
to a partition that does not include the full iso image. This causes
checkisomd5 to run with the wrong data and it fails.

This patch adds a check that will test to see if there is a parent
device that is a disk, and to run checkisomd5 on it instead of on the
partition pointed to by the label.

When running from an iso this will return the original
/dev/disk/by-label/ path, and when running from a usb drive it will
return the parent device (eg. /dev/sda).

Resolves: rhbz#2107858

3 years agofix(dracut-init.sh): correct dracut-install source path
Antonio Alvarez Feijoo [Mon, 1 Aug 2022 07:47:51 +0000 (09:47 +0200)] 
fix(dracut-init.sh): correct dracut-install source path

3 years agofix(lsinitrd.sh): correct skipcpio source path
Antonio Alvarez Feijoo [Thu, 28 Jul 2022 08:26:34 +0000 (10:26 +0200)] 
fix(lsinitrd.sh): correct skipcpio source path

3 years agofix(dracut-init.sh): propagate the result code returned by dracut-install
Antonio Alvarez Feijoo [Tue, 2 Aug 2022 08:14:27 +0000 (10:14 +0200)] 
fix(dracut-init.sh): propagate the result code returned by dracut-install

Currently only the inst_multiple function propagates the result code returned by
dracut-install.
This was missing since 043 (e.g.: https://github.com/dracutdevs/dracut/blob/043/dracut-functions.sh#L751)

3 years agofix(dmsquash-live-root): check kernel for built-in `overlay` drivers
Frederick Grose [Tue, 2 Aug 2022 22:07:50 +0000 (18:07 -0400)] 
fix(dmsquash-live-root): check kernel for built-in `overlay` drivers

Do not assume that `overlay` is always a module.  Check first for
`overlay` in `/proc/filesystems`. This is needed in the --no-kernel
use case to avoid the error: modprobe:
  FATAL: Module overlay not found in directory /lib/modules/<kver>

Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
3 years agoci: add glibc to the Arch Linux container
Laszlo Gombos [Sat, 6 Aug 2022 20:15:56 +0000 (20:15 +0000)] 
ci: add glibc to the Arch Linux container

tgt has a dependency on glibc

3 years agorefactor(url-lib): write curl output directly to file
David Tardon [Mon, 8 Aug 2022 11:42:51 +0000 (13:42 +0200)] 
refactor(url-lib): write curl output directly to file

The redirection to stdout was originally added to workaround
https://bugzilla.redhat.com/show_bug.cgi?id=989133 (curl would create no
file if the source was empty), but I don't see that problem with current
curl.

A nice side-effect of this change is that curl shows download progress.

3 years agofix(i18n): add required includes for keymaps
Antonio Alvarez Feijoo [Mon, 27 Jun 2022 11:19:41 +0000 (13:19 +0200)] 
fix(i18n): add required includes for keymaps

Commit https://github.com/dracutdevs/dracut/commit/f3441cc7 removed shell
options but didn't adapt all the code that requires nullglob and globstar.
This caused the initrd to be generated without the required includes for
keymaps.

3 years agofix(man): correct typo
Antonio Alvarez Feijoo [Thu, 23 Jun 2022 18:32:27 +0000 (20:32 +0200)] 
fix(man): correct typo

Fixes issue #1852

3 years agofix(dracut-install): correctly waitpid() for cp
наб [Thu, 16 Jun 2022 16:27:14 +0000 (18:27 +0200)] 
fix(dracut-install): correctly waitpid() for cp

3 years agorefactor(dracut-install): fork() instead of popen(), sanitise line reading
наб [Wed, 27 Apr 2022 16:32:27 +0000 (18:32 +0200)] 
refactor(dracut-install): fork() instead of popen(), sanitise line reading

Also set LC_ALL=C to fix ldd output pattern matching in non-english locales.

3 years agoperf(dracut-install): convert_abs_rel: don't allocate target parent realpath
наб [Thu, 28 Apr 2022 22:08:41 +0000 (00:08 +0200)] 
perf(dracut-install): convert_abs_rel: don't allocate target parent realpath

3 years agofeat(dracut-install): convert_abs_rel: canonicalise parent of from, too
наб [Thu, 28 Apr 2022 22:03:09 +0000 (00:03 +0200)] 
feat(dracut-install): convert_abs_rel: canonicalise parent of from, too

This fixes, for example, .so versioning links:
  diff --git a/cur b/new3
  index 3804a347..22d089a9 100644
  --- a/cur
  +++ b/new3
  -Image: /boot/initrd.img-5.10.0-13-amd64: 15M
  +Image: initrd: 15M
  -console-setup
  -crw-rw-rw-   1 root     root       1,   3 date etc/console-setup/null
  -drwxr-xr-x  13 root     root            0 date etc
  +drwxr-xr-x  12 root     root            0 date etc
  -drwxr-xr-x   2 root     root            0 date etc/console-setup
  --rw-r--r--   1 root     root       122498 date etc/console-setup/cached_UTF-8_del.kmap
  --rw-r--r--   1 root     root         6240 date etc/ld.so.cache
  +-rw-r--r--   1 root     root         6308 date etc/ld.so.cache
  --rw-r--r--   1 root     root          152 Dec 15  2020 etc/udev/rules.d/10-console.rules
  --rwxr-xr-x   1 root     root        98048 Mar  3  2021 usr/bin/gzip
  --rwxr-xr-x   1 root     root        14976 Oct 11  2020 usr/bin/kbd_mode
  --rwxr-xr-x   1 root     root       220304 Oct 11  2020 usr/bin/loadkeys
  --rwxr-xr-x   1 root     root          229 date usr/bin/setupcon
  -lrwxrwxrwx   1 root     root           32 date usr/lib32/libnss_files.so.2 -> ../../lib32/libnss_files-2.31.so
  +lrwxrwxrwx   1 root     root           20 date usr/lib32/libnss_files.so.2 -> libnss_files-2.31.so
  -lrwxrwxrwx   1 root     root           37 date usr/lib64/ld-linux-x86-64.so.2 -> ../../lib/x86_64-linux-gnu/ld-2.31.so
  +lrwxrwxrwx   1 root     root           34 date usr/lib64/ld-linux-x86-64.so.2 -> ../lib/x86_64-linux-gnu/ld-2.31.so
  --rw-r--r--   1 root     root          185 date usr/lib/dracut/modules.txt
  +-rw-r--r--   1 root     root          171 date usr/lib/dracut/modules.txt
  -lrwxrwxrwx   1 root     root           46 date usr/lib/i386-linux-gnu/libnss_dns.so.2 -> ../../../lib/i386-linux-gnu/libnss_dns-2.31.so
  +lrwxrwxrwx   1 root     root           18 date usr/lib/i386-linux-gnu/libnss_dns.so.2 -> libnss_dns-2.31.so
  -lrwxrwxrwx   1 root     root           48 date usr/lib/i386-linux-gnu/libnss_files.so.2 -> ../../../lib/i386-linux-gnu/libnss_files-2.31.so
  +lrwxrwxrwx   1 root     root           20 date usr/lib/i386-linux-gnu/libnss_files.so.2 -> libnss_files-2.31.so
  +-rw-r--r--   1 root     root        19187 date usr/lib/modules/5.10.0-13-amd64/kernel/crypto/blake2b_generic.ko
  -drwxr-xr-x  21 root     root            0 date usr/lib/modules/5.10.0-13-amd64/kernel/drivers
  +-rw-r--r--   1 root     root        25083 date usr/lib/modules/5.10.0-13-amd64/kernel/crypto/xor.ko
  +drwxr-xr-x  22 root     root            0 date usr/lib/modules/5.10.0-13-amd64/kernel/drivers
  +drwxr-xr-x   2 root     root            0 date usr/lib/modules/5.10.0-13-amd64/kernel/drivers/block
  +-rw-r--r--   1 root     root        74667 date usr/lib/modules/5.10.0-13-amd64/kernel/drivers/block/loop.ko
  -drwxr-xr-x   4 root     root            0 date usr/lib/modules/5.10.0-13-amd64/kernel/fs
  +drwxr-xr-x   5 root     root            0 date usr/lib/modules/5.10.0-13-amd64/kernel/fs
  +drwxr-xr-x   2 root     root            0 date usr/lib/modules/5.10.0-13-amd64/kernel/fs/overlayfs
  +-rw-r--r--   1 root     root       285667 date usr/lib/modules/5.10.0-13-amd64/kernel/fs/overlayfs/overlay.ko
  --rw-r--r--   1 root     root        69130 date usr/lib/modules/5.10.0-13-amd64/modules.alias
  --rw-r--r--   1 root     root        64959 date usr/lib/modules/5.10.0-13-amd64/modules.alias.bin
  +-rw-r--r--   1 root     root        69907 date usr/lib/modules/5.10.0-13-amd64/modules.alias
  +-rw-r--r--   1 root     root        65907 date usr/lib/modules/5.10.0-13-amd64/modules.alias.bin
  --rw-r--r--   1 root     root        19517 date usr/lib/modules/5.10.0-13-amd64/modules.dep
  --rw-r--r--   1 root     root        28161 date usr/lib/modules/5.10.0-13-amd64/modules.dep.bin
  --rw-r--r--   1 root     root          131 date usr/lib/modules/5.10.0-13-amd64/modules.devname
  +-rw-r--r--   1 root     root        19635 date usr/lib/modules/5.10.0-13-amd64/modules.dep
  +-rw-r--r--   1 root     root        28409 date usr/lib/modules/5.10.0-13-amd64/modules.dep.bin
  +-rw-r--r--   1 root     root          157 date usr/lib/modules/5.10.0-13-amd64/modules.devname
  --rw-r--r--   1 root     root       107148 date usr/lib/modules/5.10.0-13-amd64/modules.symbols
  --rw-r--r--   1 root     root       129343 date usr/lib/modules/5.10.0-13-amd64/modules.symbols.bin
  +-rw-r--r--   1 root     root       107260 date usr/lib/modules/5.10.0-13-amd64/modules.symbols
  +-rw-r--r--   1 root     root       129476 date usr/lib/modules/5.10.0-13-amd64/modules.symbols.bin
  -lrwxrwxrwx   1 root     root           44 date usr/lib/systemd/system/ctrl-alt-del.target -> ../../../../lib/systemd/system/reboot.target
  +lrwxrwxrwx   1 root     root           13 date usr/lib/systemd/system/ctrl-alt-del.target -> reboot.target
  -lrwxrwxrwx   1 root     root           20 date usr/lib/systemd/systemd-udevd -> ../../../bin/udevadm
  +lrwxrwxrwx   1 root     root           17 date usr/lib/systemd/systemd-udevd -> ../../bin/udevadm
  -lrwxrwxrwx   1 root     root           87 date usr/lib/systemd/system/sockets.target.wants/systemd-journald-audit.socket -> ../../../../../lib/systemd/system/sockets.target.wants/../systemd-journald-audit.socket
  -lrwxrwxrwx   1 root     root           89 date usr/lib/systemd/system/sockets.target.wants/systemd-journald-dev-log.socket -> ../../../../../lib/systemd/system/sockets.target.wants/../systemd-journald-dev-log.socket
  -lrwxrwxrwx   1 root     root           81 date usr/lib/systemd/system/sockets.target.wants/systemd-journald.socket -> ../../../../../lib/systemd/system/sockets.target.wants/../systemd-journald.socket
  -lrwxrwxrwx   1 root     root           86 date usr/lib/systemd/system/sockets.target.wants/systemd-udevd-control.socket -> ../../../../../lib/systemd/system/sockets.target.wants/../systemd-udevd-control.socket
  -lrwxrwxrwx   1 root     root           85 date usr/lib/systemd/system/sockets.target.wants/systemd-udevd-kernel.socket -> ../../../../../lib/systemd/system/sockets.target.wants/../systemd-udevd-kernel.socket
  +lrwxrwxrwx   1 root     root           32 date usr/lib/systemd/system/sockets.target.wants/systemd-journald-audit.socket -> ../systemd-journald-audit.socket
  +lrwxrwxrwx   1 root     root           34 date usr/lib/systemd/system/sockets.target.wants/systemd-journald-dev-log.socket -> ../systemd-journald-dev-log.socket
  +lrwxrwxrwx   1 root     root           26 date usr/lib/systemd/system/sockets.target.wants/systemd-journald.socket -> ../systemd-journald.socket
  +lrwxrwxrwx   1 root     root           31 date usr/lib/systemd/system/sockets.target.wants/systemd-udevd-control.socket -> ../systemd-udevd-control.socket
  +lrwxrwxrwx   1 root     root           30 date usr/lib/systemd/system/sockets.target.wants/systemd-udevd-kernel.socket -> ../systemd-udevd-kernel.socket
  -lrwxrwxrwx   1 root     root           83 date usr/lib/systemd/system/sysinit.target.wants/kmod-static-nodes.service -> ../../../../../lib/systemd/system/sysinit.target.wants/../kmod-static-nodes.service
  -lrwxrwxrwx   1 root     root           91 date usr/lib/systemd/system/sysinit.target.wants/systemd-ask-password-console.path -> ../../../../../lib/systemd/system/sysinit.target.wants/../systemd-ask-password-console.path
  -lrwxrwxrwx   1 root     root           82 date usr/lib/systemd/system/sysinit.target.wants/systemd-journald.service -> ../../../../../lib/systemd/system/sysinit.target.wants/../systemd-journald.service
  -lrwxrwxrwx   1 root     root           86 date usr/lib/systemd/system/sysinit.target.wants/systemd-modules-load.service -> ../../../../../lib/systemd/system/sysinit.target.wants/../systemd-modules-load.service
  -lrwxrwxrwx   1 root     root           80 date usr/lib/systemd/system/sysinit.target.wants/systemd-sysctl.service -> ../../../../../lib/systemd/system/sysinit.target.wants/../systemd-sysctl.service
  -lrwxrwxrwx   1 root     root           92 date usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup-dev.service -> ../../../../../lib/systemd/system/sysinit.target.wants/../systemd-tmpfiles-setup-dev.service
  -lrwxrwxrwx   1 root     root           88 date usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup.service -> ../../../../../lib/systemd/system/sysinit.target.wants/../systemd-tmpfiles-setup.service
  -lrwxrwxrwx   1 root     root           79 date usr/lib/systemd/system/sysinit.target.wants/systemd-udevd.service -> ../../../../../lib/systemd/system/sysinit.target.wants/../systemd-udevd.service
  -lrwxrwxrwx   1 root     root           86 date usr/lib/systemd/system/sysinit.target.wants/systemd-udev-trigger.service -> ../../../../../lib/systemd/system/sysinit.target.wants/../systemd-udev-trigger.service
  +lrwxrwxrwx   1 root     root           28 date usr/lib/systemd/system/sysinit.target.wants/kmod-static-nodes.service -> ../kmod-static-nodes.service
  +lrwxrwxrwx   1 root     root           36 date usr/lib/systemd/system/sysinit.target.wants/systemd-ask-password-console.path -> ../systemd-ask-password-console.path
  +lrwxrwxrwx   1 root     root           27 date usr/lib/systemd/system/sysinit.target.wants/systemd-journald.service -> ../systemd-journald.service
  +lrwxrwxrwx   1 root     root           31 date usr/lib/systemd/system/sysinit.target.wants/systemd-modules-load.service -> ../systemd-modules-load.service
  +lrwxrwxrwx   1 root     root           25 date usr/lib/systemd/system/sysinit.target.wants/systemd-sysctl.service -> ../systemd-sysctl.service
  +lrwxrwxrwx   1 root     root           37 date usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup-dev.service -> ../systemd-tmpfiles-setup-dev.service
  +lrwxrwxrwx   1 root     root           33 date usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup.service -> ../systemd-tmpfiles-setup.service
  +lrwxrwxrwx   1 root     root           24 date usr/lib/systemd/system/sysinit.target.wants/systemd-udevd.service -> ../systemd-udevd.service
  +lrwxrwxrwx   1 root     root           31 date usr/lib/systemd/system/sysinit.target.wants/systemd-udev-trigger.service -> ../systemd-udev-trigger.service
  --rwxr-xr-x   1 root     root           20 Dec 15  2020 usr/lib/udev/console-setup
  -lrwxrwxrwx   1 root     root           48 date usr/lib/x86_64-linux-gnu/libacl.so.1 -> ../../../lib/x86_64-linux-gnu/libacl.so.1.1.2253
  -lrwxrwxrwx   1 root     root           48 date usr/lib/x86_64-linux-gnu/libacl.so -> ../../../lib/x86_64-linux-gnu/libacl.so.1.1.2253
  +lrwxrwxrwx   1 root     root           18 date usr/lib/x86_64-linux-gnu/libacl.so.1 -> libacl.so.1.1.2253
  +lrwxrwxrwx   1 root     root           18 date usr/lib/x86_64-linux-gnu/libacl.so -> libacl.so.1.1.2253
  -lrwxrwxrwx   1 root     root           50 date usr/lib/x86_64-linux-gnu/libapparmor.so.1 -> ../../../lib/x86_64-linux-gnu/libapparmor.so.1.6.3
  +lrwxrwxrwx   1 root     root           20 date usr/lib/x86_64-linux-gnu/libapparmor.so.1 -> libapparmor.so.1.6.3
  -lrwxrwxrwx   1 root     root           49 date usr/lib/x86_64-linux-gnu/libattr.so.1 -> ../../../lib/x86_64-linux-gnu/libattr.so.1.1.2448
  -lrwxrwxrwx   1 root     root           49 date usr/lib/x86_64-linux-gnu/libattr.so -> ../../../lib/x86_64-linux-gnu/libattr.so.1.1.2448
  +lrwxrwxrwx   1 root     root           19 date usr/lib/x86_64-linux-gnu/libattr.so.1 -> libattr.so.1.1.2448
  +lrwxrwxrwx   1 root     root           19 date usr/lib/x86_64-linux-gnu/libattr.so -> libattr.so.1.1.2448
  -lrwxrwxrwx   1 root     root           47 date usr/lib/x86_64-linux-gnu/libaudit.so.1 -> ../../../lib/x86_64-linux-gnu/libaudit.so.1.0.0
  -lrwxrwxrwx   1 root     root           47 date usr/lib/x86_64-linux-gnu/libaudit.so -> ../../../lib/x86_64-linux-gnu/libaudit.so.1.0.0
  +lrwxrwxrwx   1 root     root           17 date usr/lib/x86_64-linux-gnu/libaudit.so.1 -> libaudit.so.1.0.0
  +lrwxrwxrwx   1 root     root           17 date usr/lib/x86_64-linux-gnu/libaudit.so -> libaudit.so.1.0.0
  -lrwxrwxrwx   1 root     root           47 date usr/lib/x86_64-linux-gnu/libblkid.so.1 -> ../../../lib/x86_64-linux-gnu/libblkid.so.1.1.0
  -lrwxrwxrwx   1 root     root           47 date usr/lib/x86_64-linux-gnu/libblkid.so -> ../../../lib/x86_64-linux-gnu/libblkid.so.1.1.0
  +lrwxrwxrwx   1 root     root           17 date usr/lib/x86_64-linux-gnu/libblkid.so.1 -> libblkid.so.1.1.0
  +lrwxrwxrwx   1 root     root           17 date usr/lib/x86_64-linux-gnu/libblkid.so -> libblkid.so.1.1.0
  -lrwxrwxrwx   1 root     root           45 date usr/lib/x86_64-linux-gnu/libbpf.so.0 -> ../../../lib/x86_64-linux-gnu/libbpf.so.0.3.0
  +lrwxrwxrwx   1 root     root           15 date usr/lib/x86_64-linux-gnu/libbpf.so.0 -> libbpf.so.0.3.0
  -lrwxrwxrwx   1 root     root           46 date usr/lib/x86_64-linux-gnu/libbsd.so.0 -> ../../../lib/x86_64-linux-gnu/libbsd.so.0.11.3
  -lrwxrwxrwx   1 root     root           46 date usr/lib/x86_64-linux-gnu/libbsd.so -> ../../../lib/x86_64-linux-gnu/libbsd.so.0.11.3
  +lrwxrwxrwx   1 root     root           16 date usr/lib/x86_64-linux-gnu/libbsd.so.0 -> libbsd.so.0.11.3
  +lrwxrwxrwx   1 root     root           16 date usr/lib/x86_64-linux-gnu/libbsd.so -> libbsd.so.0.11.3
  -lrwxrwxrwx   1 root     root           48 date usr/lib/x86_64-linux-gnu/libcap-ng.so.0 -> ../../../lib/x86_64-linux-gnu/libcap-ng.so.0.0.0
  -lrwxrwxrwx   1 root     root           48 date usr/lib/x86_64-linux-gnu/libcap-ng.so -> ../../../lib/x86_64-linux-gnu/libcap-ng.so.0.0.0
  +lrwxrwxrwx   1 root     root           18 date usr/lib/x86_64-linux-gnu/libcap-ng.so.0 -> libcap-ng.so.0.0.0
  +lrwxrwxrwx   1 root     root           18 date usr/lib/x86_64-linux-gnu/libcap-ng.so -> libcap-ng.so.0.0.0
  -lrwxrwxrwx   1 root     root           44 date usr/lib/x86_64-linux-gnu/libcap.so.2 -> ../../../lib/x86_64-linux-gnu/libcap.so.2.44
  -lrwxrwxrwx   1 root     root           44 date usr/lib/x86_64-linux-gnu/libcap.so -> ../../../lib/x86_64-linux-gnu/libcap.so.2.44
  +lrwxrwxrwx   1 root     root           14 date usr/lib/x86_64-linux-gnu/libcap.so.2 -> libcap.so.2.44
  +lrwxrwxrwx   1 root     root           14 date usr/lib/x86_64-linux-gnu/libcap.so -> libcap.so.2.44
  -lrwxrwxrwx   1 root     root           46 date usr/lib/x86_64-linux-gnu/libcrypto.so -> ../../../lib/x86_64-linux-gnu/libcrypto.so.1.1
  +lrwxrwxrwx   1 root     root           16 date usr/lib/x86_64-linux-gnu/libcrypto.so -> libcrypto.so.1.1
  -lrwxrwxrwx   1 root     root           47 date usr/lib/x86_64-linux-gnu/libcrypt.so.1 -> ../../../lib/x86_64-linux-gnu/libcrypt.so.1.1.0
  -lrwxrwxrwx   1 root     root           43 date usr/lib/x86_64-linux-gnu/libcrypt.so -> ../../../lib/x86_64-linux-gnu/libcrypt.so.1
  +lrwxrwxrwx   1 root     root           17 date usr/lib/x86_64-linux-gnu/libcrypt.so.1 -> libcrypt.so.1.1.0
  +lrwxrwxrwx   1 root     root           13 date usr/lib/x86_64-linux-gnu/libcrypt.so -> libcrypt.so.1
  -lrwxrwxrwx   1 root     root           42 date usr/lib/x86_64-linux-gnu/libc.so.6 -> ../../../lib/x86_64-linux-gnu/libc-2.31.so
  +lrwxrwxrwx   1 root     root           12 date usr/lib/x86_64-linux-gnu/libc.so.6 -> libc-2.31.so
  -lrwxrwxrwx   1 root     root           43 date usr/lib/x86_64-linux-gnu/libdl.so.2 -> ../../../lib/x86_64-linux-gnu/libdl-2.31.so
  -lrwxrwxrwx   1 root     root           40 date usr/lib/x86_64-linux-gnu/libdl.so -> ../../../lib/x86_64-linux-gnu/libdl.so.2
  +lrwxrwxrwx   1 root     root           13 date usr/lib/x86_64-linux-gnu/libdl.so.2 -> libdl-2.31.so
  +lrwxrwxrwx   1 root     root           10 date usr/lib/x86_64-linux-gnu/libdl.so -> libdl.so.2
  -lrwxrwxrwx   1 root     root           45 date usr/lib/x86_64-linux-gnu/libelf.so.1 -> ../../../lib/x86_64-linux-gnu/libelf-0.183.so
  -lrwxrwxrwx   1 root     root           41 date usr/lib/x86_64-linux-gnu/libelf.so -> ../../../lib/x86_64-linux-gnu/libelf.so.1
  +lrwxrwxrwx   1 root     root           15 date usr/lib/x86_64-linux-gnu/libelf.so.1 -> libelf-0.183.so
  +lrwxrwxrwx   1 root     root           11 date usr/lib/x86_64-linux-gnu/libelf.so -> libelf.so.1
  -lrwxrwxrwx   1 root     root           49 date usr/lib/x86_64-linux-gnu/libgcrypt.so.20 -> ../../../lib/x86_64-linux-gnu/libgcrypt.so.20.2.8
  -lrwxrwxrwx   1 root     root           49 date usr/lib/x86_64-linux-gnu/libgcrypt.so -> ../../../lib/x86_64-linux-gnu/libgcrypt.so.20.2.8
  +lrwxrwxrwx   1 root     root           19 date usr/lib/x86_64-linux-gnu/libgcrypt.so.20 -> libgcrypt.so.20.2.8
  +lrwxrwxrwx   1 root     root           19 date usr/lib/x86_64-linux-gnu/libgcrypt.so -> libgcrypt.so.20.2.8
  -lrwxrwxrwx   1 root     root           52 date usr/lib/x86_64-linux-gnu/libgpg-error.so.0 -> ../../../lib/x86_64-linux-gnu/libgpg-error.so.0.29.0
  -lrwxrwxrwx   1 root     root           47 date usr/lib/x86_64-linux-gnu/libgpg-error.so -> ../../../lib/x86_64-linux-gnu/libgpg-error.so.0
  +lrwxrwxrwx   1 root     root           22 date usr/lib/x86_64-linux-gnu/libgpg-error.so.0 -> libgpg-error.so.0.29.0
  +lrwxrwxrwx   1 root     root           17 date usr/lib/x86_64-linux-gnu/libgpg-error.so -> libgpg-error.so.0
  -lrwxrwxrwx   1 root     root           47 date usr/lib/x86_64-linux-gnu/libip4tc.so.2 -> ../../../lib/x86_64-linux-gnu/libip4tc.so.2.0.0
  +lrwxrwxrwx   1 root     root           17 date usr/lib/x86_64-linux-gnu/libip4tc.so.2 -> libip4tc.so.2.0.0
  -lrwxrwxrwx   1 root     root           46 date usr/lib/x86_64-linux-gnu/libkmod.so.2 -> ../../../lib/x86_64-linux-gnu/libkmod.so.2.3.6
  +lrwxrwxrwx   1 root     root           16 date usr/lib/x86_64-linux-gnu/libkmod.so.2 -> libkmod.so.2.3.6
  +lrwxrwxrwx   1 root     root           16 date usr/lib/x86_64-linux-gnu/libkmod.so -> libkmod.so.2.3.6
  -lrwxrwxrwx   1 root     root           45 date usr/lib/x86_64-linux-gnu/liblz4.so.1 -> ../../../lib/x86_64-linux-gnu/liblz4.so.1.9.3
  -lrwxrwxrwx   1 root     root           45 date usr/lib/x86_64-linux-gnu/liblz4.so -> ../../../lib/x86_64-linux-gnu/liblz4.so.1.9.3
  +lrwxrwxrwx   1 root     root           15 date usr/lib/x86_64-linux-gnu/liblz4.so.1 -> liblz4.so.1.9.3
  +lrwxrwxrwx   1 root     root           15 date usr/lib/x86_64-linux-gnu/liblz4.so -> liblz4.so.1.9.3
  -lrwxrwxrwx   1 root     root           46 date usr/lib/x86_64-linux-gnu/liblzma.so.5 -> ../../../lib/x86_64-linux-gnu/liblzma.so.5.2.5
  -lrwxrwxrwx   1 root     root           46 date usr/lib/x86_64-linux-gnu/liblzma.so -> ../../../lib/x86_64-linux-gnu/liblzma.so.5.2.5
  +lrwxrwxrwx   1 root     root           16 date usr/lib/x86_64-linux-gnu/liblzma.so.5 -> liblzma.so.5.2.5
  +lrwxrwxrwx   1 root     root           16 date usr/lib/x86_64-linux-gnu/liblzma.so -> liblzma.so.5.2.5
  -lrwxrwxrwx   1 root     root           44 date usr/lib/x86_64-linux-gnu/libmd.so.0 -> ../../../lib/x86_64-linux-gnu/libmd.so.0.0.4
  -lrwxrwxrwx   1 root     root           44 date usr/lib/x86_64-linux-gnu/libmd.so -> ../../../lib/x86_64-linux-gnu/libmd.so.0.0.4
  +lrwxrwxrwx   1 root     root           14 date usr/lib/x86_64-linux-gnu/libmd.so.0 -> libmd.so.0.0.4
  +lrwxrwxrwx   1 root     root           14 date usr/lib/x86_64-linux-gnu/libmd.so -> libmd.so.0.0.4
  -lrwxrwxrwx   1 root     root           45 date usr/lib/x86_64-linux-gnu/libmnl.so.0 -> ../../../lib/x86_64-linux-gnu/libmnl.so.0.2.0
  -lrwxrwxrwx   1 root     root           45 date usr/lib/x86_64-linux-gnu/libmnl.so -> ../../../lib/x86_64-linux-gnu/libmnl.so.0.2.0
  +lrwxrwxrwx   1 root     root           15 date usr/lib/x86_64-linux-gnu/libmnl.so.0 -> libmnl.so.0.2.0
  +lrwxrwxrwx   1 root     root           15 date usr/lib/x86_64-linux-gnu/libmnl.so -> libmnl.so.0.2.0
  -lrwxrwxrwx   1 root     root           47 date usr/lib/x86_64-linux-gnu/libmount.so.1 -> ../../../lib/x86_64-linux-gnu/libmount.so.1.1.0
  -lrwxrwxrwx   1 root     root           47 date usr/lib/x86_64-linux-gnu/libmount.so -> ../../../lib/x86_64-linux-gnu/libmount.so.1.1.0
  +lrwxrwxrwx   1 root     root           17 date usr/lib/x86_64-linux-gnu/libmount.so.1 -> libmount.so.1.1.0
  +lrwxrwxrwx   1 root     root           17 date usr/lib/x86_64-linux-gnu/libmount.so -> libmount.so.1.1.0
  -lrwxrwxrwx   1 root     root           46 date usr/lib/x86_64-linux-gnu/libmpfr.so.6 -> ../../../lib/x86_64-linux-gnu/libmpfr.so.6.1.0
  +lrwxrwxrwx   1 root     root           16 date usr/lib/x86_64-linux-gnu/libmpfr.so.6 -> libmpfr.so.6.1.0
  -lrwxrwxrwx   1 root     root           42 date usr/lib/x86_64-linux-gnu/libm.so.6 -> ../../../lib/x86_64-linux-gnu/libm-2.31.so
  +lrwxrwxrwx   1 root     root           12 date usr/lib/x86_64-linux-gnu/libm.so.6 -> libm-2.31.so
  -lrwxrwxrwx   1 root     root           48 date usr/lib/x86_64-linux-gnu/libnss_dns.so.2 -> ../../../lib/x86_64-linux-gnu/libnss_dns-2.31.so
  -lrwxrwxrwx   1 root     root           45 date usr/lib/x86_64-linux-gnu/libnss_dns.so -> ../../../lib/x86_64-linux-gnu/libnss_dns.so.2
  +lrwxrwxrwx   1 root     root           18 date usr/lib/x86_64-linux-gnu/libnss_dns.so.2 -> libnss_dns-2.31.so
  +lrwxrwxrwx   1 root     root           15 date usr/lib/x86_64-linux-gnu/libnss_dns.so -> libnss_dns.so.2
  -lrwxrwxrwx   1 root     root           50 date usr/lib/x86_64-linux-gnu/libnss_files.so.2 -> ../../../lib/x86_64-linux-gnu/libnss_files-2.31.so
  -lrwxrwxrwx   1 root     root           47 date usr/lib/x86_64-linux-gnu/libnss_files.so -> ../../../lib/x86_64-linux-gnu/libnss_files.so.2
  +lrwxrwxrwx   1 root     root           20 date usr/lib/x86_64-linux-gnu/libnss_files.so.2 -> libnss_files-2.31.so
  +lrwxrwxrwx   1 root     root           17 date usr/lib/x86_64-linux-gnu/libnss_files.so -> libnss_files.so.2
  -lrwxrwxrwx   1 root     root           48 date usr/lib/x86_64-linux-gnu/libnvpair.so.3 -> ../../../lib/x86_64-linux-gnu/libnvpair.so.3.0.0
  +lrwxrwxrwx   1 root     root           18 date usr/lib/x86_64-linux-gnu/libnvpair.so.3 -> libnvpair.so.3.0.0
  -lrwxrwxrwx   1 root     root           46 date usr/lib/x86_64-linux-gnu/libpam.so.0 -> ../../../lib/x86_64-linux-gnu/libpam.so.0.85.1
  -lrwxrwxrwx   1 root     root           41 date usr/lib/x86_64-linux-gnu/libpam.so -> ../../../lib/x86_64-linux-gnu/libpam.so.0
  +lrwxrwxrwx   1 root     root           16 date usr/lib/x86_64-linux-gnu/libpam.so.0 -> libpam.so.0.85.1
  +lrwxrwxrwx   1 root     root           11 date usr/lib/x86_64-linux-gnu/libpam.so -> libpam.so.0
  -lrwxrwxrwx   1 root     root           50 date usr/lib/x86_64-linux-gnu/libpcre2-8.so.0 -> ../../../lib/x86_64-linux-gnu/libpcre2-8.so.0.10.1
  -lrwxrwxrwx   1 root     root           50 date usr/lib/x86_64-linux-gnu/libpcre2-8.so -> ../../../lib/x86_64-linux-gnu/libpcre2-8.so.0.10.1
  +lrwxrwxrwx   1 root     root           20 date usr/lib/x86_64-linux-gnu/libpcre2-8.so.0 -> libpcre2-8.so.0.10.1
  +lrwxrwxrwx   1 root     root           20 date usr/lib/x86_64-linux-gnu/libpcre2-8.so -> libpcre2-8.so.0.10.1
  -lrwxrwxrwx   1 root     root           47 date usr/lib/x86_64-linux-gnu/libpcre.so.3 -> ../../../lib/x86_64-linux-gnu/libpcre.so.3.13.3
  +lrwxrwxrwx   1 root     root           17 date usr/lib/x86_64-linux-gnu/libpcre.so.3 -> libpcre.so.3.13.3
  -lrwxrwxrwx   1 root     root           48 date usr/lib/x86_64-linux-gnu/libpthread.so.0 -> ../../../lib/x86_64-linux-gnu/libpthread-2.31.so
  -lrwxrwxrwx   1 root     root           45 date usr/lib/x86_64-linux-gnu/libpthread.so -> ../../../lib/x86_64-linux-gnu/libpthread.so.0
  +lrwxrwxrwx   1 root     root           18 date usr/lib/x86_64-linux-gnu/libpthread.so.0 -> libpthread-2.31.so
  +lrwxrwxrwx   1 root     root           15 date usr/lib/x86_64-linux-gnu/libpthread.so -> libpthread.so.0
  -lrwxrwxrwx   1 root     root           48 date usr/lib/x86_64-linux-gnu/libreadline.so.8 -> ../../../lib/x86_64-linux-gnu/libreadline.so.8.1
  -lrwxrwxrwx   1 root     root           46 date usr/lib/x86_64-linux-gnu/libreadline.so -> ../../../lib/x86_64-linux-gnu/libreadline.so.8
  +lrwxrwxrwx   1 root     root           18 date usr/lib/x86_64-linux-gnu/libreadline.so.8 -> libreadline.so.8.1
  +lrwxrwxrwx   1 root     root           16 date usr/lib/x86_64-linux-gnu/libreadline.so -> libreadline.so.8
  -lrwxrwxrwx   1 root     root           43 date usr/lib/x86_64-linux-gnu/librt.so.1 -> ../../../lib/x86_64-linux-gnu/librt-2.31.so
  -lrwxrwxrwx   1 root     root           40 date usr/lib/x86_64-linux-gnu/librt.so -> ../../../lib/x86_64-linux-gnu/librt.so.1
  +lrwxrwxrwx   1 root     root           13 date usr/lib/x86_64-linux-gnu/librt.so.1 -> librt-2.31.so
  +lrwxrwxrwx   1 root     root           10 date usr/lib/x86_64-linux-gnu/librt.so -> librt.so.1
  -lrwxrwxrwx   1 root     root           49 date usr/lib/x86_64-linux-gnu/libseccomp.so.2 -> ../../../lib/x86_64-linux-gnu/libseccomp.so.2.5.1
  +lrwxrwxrwx   1 root     root           19 date usr/lib/x86_64-linux-gnu/libseccomp.so.2 -> libseccomp.so.2.5.1
  -lrwxrwxrwx   1 root     root           45 date usr/lib/x86_64-linux-gnu/libselinux.so -> ../../../lib/x86_64-linux-gnu/libselinux.so.1
  +lrwxrwxrwx   1 root     root           15 date usr/lib/x86_64-linux-gnu/libselinux.so -> libselinux.so.1
  -lrwxrwxrwx   1 root     root           49 date usr/lib/x86_64-linux-gnu/libsigsegv.so.2 -> ../../../lib/x86_64-linux-gnu/libsigsegv.so.2.0.6
  +lrwxrwxrwx   1 root     root           19 date usr/lib/x86_64-linux-gnu/libsigsegv.so.2 -> libsigsegv.so.2.0.6
  -lrwxrwxrwx   1 root     root           51 date usr/lib/x86_64-linux-gnu/libsmartcols.so.1 -> ../../../lib/x86_64-linux-gnu/libsmartcols.so.1.1.0
  +lrwxrwxrwx   1 root     root           21 date usr/lib/x86_64-linux-gnu/libsmartcols.so.1 -> libsmartcols.so.1.1.0
  -lrwxrwxrwx   1 root     root           45 date usr/lib/x86_64-linux-gnu/libtinfo.so.6 -> ../../../lib/x86_64-linux-gnu/libtinfo.so.6.2
  -lrwxrwxrwx   1 root     root           43 date usr/lib/x86_64-linux-gnu/libtinfo.so -> ../../../lib/x86_64-linux-gnu/libtinfo.so.6
  +lrwxrwxrwx   1 root     root           15 date usr/lib/x86_64-linux-gnu/libtinfo.so.6 -> libtinfo.so.6.2
  +lrwxrwxrwx   1 root     root           13 date usr/lib/x86_64-linux-gnu/libtinfo.so -> libtinfo.so.6
  -lrwxrwxrwx   1 root     root           46 date usr/lib/x86_64-linux-gnu/libtspi.so.1 -> ../../../lib/x86_64-linux-gnu/libtspi.so.1.2.0
  +lrwxrwxrwx   1 root     root           16 date usr/lib/x86_64-linux-gnu/libtspi.so.1 -> libtspi.so.1.2.0
  -lrwxrwxrwx   1 root     root           46 date usr/lib/x86_64-linux-gnu/libudev.so.1 -> ../../../lib/x86_64-linux-gnu/libudev.so.1.7.0
  -lrwxrwxrwx   1 root     root           42 date usr/lib/x86_64-linux-gnu/libudev.so -> ../../../lib/x86_64-linux-gnu/libudev.so.1
  +lrwxrwxrwx   1 root     root           16 date usr/lib/x86_64-linux-gnu/libudev.so.1 -> libudev.so.1.7.0
  +lrwxrwxrwx   1 root     root           12 date usr/lib/x86_64-linux-gnu/libudev.so -> libudev.so.1
  -lrwxrwxrwx   1 root     root           46 date usr/lib/x86_64-linux-gnu/libuuid.so.1 -> ../../../lib/x86_64-linux-gnu/libuuid.so.1.3.0
  -lrwxrwxrwx   1 root     root           46 date usr/lib/x86_64-linux-gnu/libuuid.so -> ../../../lib/x86_64-linux-gnu/libuuid.so.1.3.0
  +lrwxrwxrwx   1 root     root           16 date usr/lib/x86_64-linux-gnu/libuuid.so.1 -> libuuid.so.1.3.0
  +lrwxrwxrwx   1 root     root           16 date usr/lib/x86_64-linux-gnu/libuuid.so -> libuuid.so.1.3.0
  -lrwxrwxrwx   1 root     root           47 date usr/lib/x86_64-linux-gnu/libuutil.so.3 -> ../../../lib/x86_64-linux-gnu/libuutil.so.3.0.0
  +lrwxrwxrwx   1 root     root           17 date usr/lib/x86_64-linux-gnu/libuutil.so.3 -> libuutil.so.3.0.0
  -lrwxrwxrwx   1 root     root           50 date usr/lib/x86_64-linux-gnu/libzfs_core.so.3 -> ../../../lib/x86_64-linux-gnu/libzfs_core.so.3.0.0
  +lrwxrwxrwx   1 root     root           20 date usr/lib/x86_64-linux-gnu/libzfs_core.so.3 -> libzfs_core.so.3.0.0
  -lrwxrwxrwx   1 root     root           45 date usr/lib/x86_64-linux-gnu/libzfs.so.4 -> ../../../lib/x86_64-linux-gnu/libzfs.so.4.1.0
  +lrwxrwxrwx   1 root     root           15 date usr/lib/x86_64-linux-gnu/libzfs.so.4 -> libzfs.so.4.1.0
  -lrwxrwxrwx   1 root     root           44 date usr/lib/x86_64-linux-gnu/libz.so.1 -> ../../../lib/x86_64-linux-gnu/libz.so.1.2.11
  -lrwxrwxrwx   1 root     root           44 date usr/lib/x86_64-linux-gnu/libz.so -> ../../../lib/x86_64-linux-gnu/libz.so.1.2.11
  +lrwxrwxrwx   1 root     root           14 date usr/lib/x86_64-linux-gnu/libz.so.1 -> libz.so.1.2.11
  +lrwxrwxrwx   1 root     root           14 date usr/lib/x86_64-linux-gnu/libz.so -> libz.so.1.2.11
  -lrwxrwxrwx   1 root     root           46 date usr/lib/x86_64-linux-gnu/libzstd.so.1 -> ../../../lib/x86_64-linux-gnu/libzstd.so.1.4.8
  -lrwxrwxrwx   1 root     root           46 date usr/lib/x86_64-linux-gnu/libzstd.so -> ../../../lib/x86_64-linux-gnu/libzstd.so.1.4.8
  +lrwxrwxrwx   1 root     root           16 date usr/lib/x86_64-linux-gnu/libzstd.so.1 -> libzstd.so.1.4.8
  +lrwxrwxrwx   1 root     root           16 date usr/lib/x86_64-linux-gnu/libzstd.so -> libzstd.so.1.4.8
  --rwxr-xr-x   1 root     root       517176 Nov  2  2019 usr/local/lib/libgmp.so.10.3.0
  +-rwxr-xr-x   1 root     staff      517176 Nov  2  2019 usr/local/lib/libgmp.so.10.3.0
  -lrwxrwxrwx   1 root     root           14 date usr/sbin/depmod -> ../../bin/kmod
  +lrwxrwxrwx   1 root     root           11 date usr/sbin/depmod -> ../bin/kmod
  -lrwxrwxrwx   1 root     root           19 date usr/sbin/halt -> ../../bin/systemctl
  +lrwxrwxrwx   1 root     root           16 date usr/sbin/halt -> ../bin/systemctl
  -lrwxrwxrwx   1 root     root           14 date usr/sbin/insmod -> ../../bin/kmod
  +lrwxrwxrwx   1 root     root           11 date usr/sbin/insmod -> ../bin/kmod
  -lrwxrwxrwx   1 root     root           12 date usr/sbin/ip -> ../../bin/ip
  +lrwxrwxrwx   1 root     root            9 date usr/sbin/ip -> ../bin/ip
  -lrwxrwxrwx   1 root     root           14 date usr/sbin/lsmod -> ../../bin/kmod
  -lrwxrwxrwx   1 root     root           14 date usr/sbin/modinfo -> ../../bin/kmod
  -lrwxrwxrwx   1 root     root           14 date usr/sbin/modprobe -> ../../bin/kmod
  +lrwxrwxrwx   1 root     root           11 date usr/sbin/lsmod -> ../bin/kmod
  +lrwxrwxrwx   1 root     root           11 date usr/sbin/modinfo -> ../bin/kmod
  +lrwxrwxrwx   1 root     root           11 date usr/sbin/modprobe -> ../bin/kmod
  -lrwxrwxrwx   1 root     root           19 date usr/sbin/poweroff -> ../../bin/systemctl
  +lrwxrwxrwx   1 root     root           16 date usr/sbin/poweroff -> ../bin/systemctl
  -lrwxrwxrwx   1 root     root           19 date usr/sbin/reboot -> ../../bin/systemctl
  -lrwxrwxrwx   1 root     root           14 date usr/sbin/rmmod -> ../../bin/kmod
  +lrwxrwxrwx   1 root     root           16 date usr/sbin/reboot -> ../bin/systemctl
  +lrwxrwxrwx   1 root     root           11 date usr/sbin/rmmod -> ../bin/kmod

Closes #1781

3 years agofix(dracut-install): convert_abs_rel: return valid path on error
наб [Thu, 28 Apr 2022 16:46:28 +0000 (18:46 +0200)] 
fix(dracut-install): convert_abs_rel: return valid path on error

convert_abs_rel() gets
  from  =/var/tmp/dracut.8dxnpY/initramfs/lib/x86_64-linux-gnu/libuuid.so.1.3.0
  target=/var/tmp/dracut.8dxnpY/initramfs/lib/x86_64-linux-gnu/libuuid.so
returning from is invalid; skip over the destdir:
  /lib/x86_64-linux-gnu/libuuid.so.1.3.0

3 years agoperf(dracut-install): strdup()+[dirlen]=0 => strndup
наб [Wed, 27 Apr 2022 17:14:33 +0000 (19:14 +0200)] 
perf(dracut-install): strdup()+[dirlen]=0 => strndup

3 years agofix(install.d): add --verbose if KERNEL_INSTALL_VERBOSE=1
Daan De Meyer [Tue, 14 Jun 2022 14:44:01 +0000 (10:44 -0400)] 
fix(install.d): add --verbose if KERNEL_INSTALL_VERBOSE=1

If KERNEL_INSTALL_VERBOSE=1, let's make sure dracut also produces
extended output for debugging purposes.

3 years agofix(dracut): typo error 'aggresive' -> 'aggressive'
Kairui Song [Tue, 21 Jun 2022 06:54:03 +0000 (14:54 +0800)] 
fix(dracut): typo error 'aggresive' -> 'aggressive'

This option was introduced not long ago, but unfortunately it was
misspelled and have affected following up commits. It's not a commonly
used option, at least not yet, so just rename and fix it.

Signed-off-by: Kairui Song <kasong@tencent.com>
3 years agofix(integrity): do not enable EVM if there is no key
Alberto Planas [Mon, 20 Jun 2022 15:13:19 +0000 (17:13 +0200)] 
fix(integrity): do not enable EVM if there is no key

Track when a key is successfully loaded, and return 1 if no key has been
loaded.  This will not enable EVM if there are no keys available in the
system.

Fix #1847

Signed-off-by: Alberto Planas <aplanas@suse.com>
3 years agofix(integrity): remove unused variable
Alberto Planas [Mon, 20 Jun 2022 13:49:48 +0000 (15:49 +0200)] 
fix(integrity): remove unused variable

Drop X509ID variable inside the `if`, and use the same comparison that
is already in evm_enable.

Signed-off-by: Alberto Planas <aplanas@suse.com>
3 years agofix(Makefile): reduce the number of shell invocations
Jóhann B. Guðmundsson [Thu, 2 Jun 2022 12:31:50 +0000 (12:31 +0000)] 
fix(Makefile): reduce the number of shell invocations

Makefile uses recursively expanded macros and as can be seen by simply
adding $(warning Call to shell) in front of $(shell ...) Foo's in the
Makefile, we are calling out to shell 9 times just to get the working
directory, a working directory which doesn't change during Make!

Let's save few pony's and reduce it to 2...

3 years agodocs: update NEWS.md and AUTHORS 057
Jóhann B. Guðmundsson [Sun, 19 Jun 2022 22:35:37 +0000 (22:35 +0000)] 
docs: update NEWS.md and AUTHORS

3 years agofeat(dracut): support parallel execution with --parallel
Martin Wilck [Thu, 9 Jun 2022 11:32:17 +0000 (13:32 +0200)] 
feat(dracut): support parallel execution with --parallel

Add an option --parallel which can currently be used with
--regenerate-all. With --regenerate-all --parallel, dracut will be
run in parallel for all kernels found.

Also introduce a config file equivalent setting: parallel="yes".
Making this work requires moving the code block that handles --regenerate-all
behind the code block for reading the config files.

Signed-off-by: Martin Wilck <mwilck@suse.com>
3 years agofeat(lvm): add new module lvmthinpool-monitor
Tao Liu [Fri, 10 Jun 2022 08:39:31 +0000 (16:39 +0800)] 
feat(lvm): add new module lvmthinpool-monitor

Previously dracut didn't support the feature of lvm thinpool autoextend.

The feature is useful to cases such as kdump, when vmcore to be saved to a
lvm thin volume. The thinpool should be able to autoextend, otherwise an
IO error will be caused and leaves an incomplete vmcore.

There is lvm2-monitor.service and dmeventd avaliable, however
considering [1], it is not suitable for kdump and memory limited cases.

This patch achieves the same by parallel looping a shell function in the
background, which calls lvextend periodically. If thredshold reaches,
autoextend it, if not then nothing happens.

[1]: https://lists.fedoraproject.org/archives/list/kexec@lists.fedoraproject.org/message/YF254ZO3PJ3U56P4OKHV3JNYP2PJUMYX/

Signed-off-by: Tao Liu <ltao@redhat.com>
3 years agofix(bluetooth): accept compressed firmwares in inst_multiple
наб [Tue, 26 Apr 2022 15:41:40 +0000 (17:41 +0200)] 
fix(bluetooth): accept compressed firmwares in inst_multiple

3 years agofeat(dracut-install): support ZSTD-compressed firmware with .zst suffix
наб [Tue, 26 Apr 2022 15:32:32 +0000 (17:32 +0200)] 
feat(dracut-install): support ZSTD-compressed firmware with .zst suffix

Coming in 5.19:
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/commit/?h=driver-core-next&id=23cfbc6ec44e5e80d5522976ff45ffcdcddfb230

3 years agofix(dracut): default to correct firmware search paths
наб [Tue, 26 Apr 2022 14:42:55 +0000 (16:42 +0200)] 
fix(dracut): default to correct firmware search paths

1. /sys/module/firmware_class/parameters/path (fw_path_para), if any
2. /lib/firmware/updates/$(uname -r)
3. /lib/firmware/updates
4. /lib/firmware/$(uname -r)
5. /lib/firmware

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/base/firmware_loader/main.c?h=v5.17#n406

3 years agotest: list only the required modules explicitly
Laszlo Gombos [Tue, 22 Feb 2022 14:25:44 +0000 (09:25 -0500)] 
test: list only the required modules explicitly

Test for module dependencies and increase test coverage.

3 years agofix(test): dmsquash-live test without an iso
Laszlo Gombos [Sun, 8 May 2022 04:46:15 +0000 (04:46 +0000)] 
fix(test): dmsquash-live test without an iso

Remove fedore specific parts and use squash filesystem as live root.

3 years agofix(Makefile): use of potentially unset variable
Conrad Hoffmann [Thu, 2 Jun 2022 08:31:50 +0000 (10:31 +0200)] 
fix(Makefile): use of potentially unset variable

`CWD` is not a Make variable. This may have worked accidentally for some
people if their shell happend to provide `CWD` and Make picked it up.

As is, this tends to pick up git versions of unrelated parent
directories, e.g. when packaging for distributions.

3 years agodocs(dracut.cmdline): add missing rd.nonvmf option
Antonio Alvarez Feijoo [Thu, 2 Jun 2022 07:07:34 +0000 (09:07 +0200)] 
docs(dracut.cmdline): add missing rd.nonvmf option

This is a specific option of the nvmf module.

3 years agofix(nvmf): deprecate old nvmf cmdline options
Antonio Alvarez Feijoo [Thu, 2 Jun 2022 06:59:21 +0000 (08:59 +0200)] 
fix(nvmf): deprecate old nvmf cmdline options

Fixes issue #1831

3 years agofix(integrity): do not display any error if there is no IMA certificate
Antonio Alvarez Feijoo [Tue, 24 May 2022 14:34:04 +0000 (16:34 +0200)] 
fix(integrity): do not display any error if there is no IMA certificate

IMA appraisal can be used without digital signatures, just by storing hash
digests instead.

3 years agodocs(dracut.cmdline): add missing evmx509 option
Antonio Alvarez Feijoo [Tue, 24 May 2022 10:28:58 +0000 (12:28 +0200)] 
docs(dracut.cmdline): add missing evmx509 option

This is a specific option of the integrity module.

3 years agofeat(gensplash): remove module
Laszlo Gombos [Mon, 9 May 2022 14:32:19 +0000 (14:32 +0000)] 
feat(gensplash): remove module

splashutils Gentoo package (a dependency for the gensplash dracut module)
is non existent in the official Gentoo repositories.

3 years agodocs(dracut.conf): regenerate_all not supported
Antonio Alvarez Feijoo [Thu, 12 May 2022 13:04:37 +0000 (15:04 +0200)] 
docs(dracut.conf): regenerate_all not supported

The regenerate_all option is used before sourcing the configuration files.

3 years agofix(dracut.sh): format usage and add missing options
Antonio Alvarez Feijoo [Mon, 9 May 2022 10:50:26 +0000 (12:50 +0200)] 
fix(dracut.sh): format usage and add missing options

Set common format to each option and add missing options:
    --no-machineid

3 years agodocs(dracut): format and add missing options
Antonio Alvarez Feijoo [Mon, 9 May 2022 10:41:39 +0000 (12:41 +0200)] 
docs(dracut): format and add missing options

Set common format to each option, correct default compression options and add
missing options:
    --rebuild
    --aggresive-strip
    --hostonly-mode
    --hostonly-nics
    --noimageifnotneeded

3 years agodocs(dracut.conf): format and add missing options
Antonio Alvarez Feijoo [Mon, 9 May 2022 10:30:55 +0000 (12:30 +0200)] 
docs(dracut.conf): format and add missing options

Set common format to each option, add/correct default values and add missing
options:
    force_add_dracutmodules
    libdirs
    squash_compress
    aggresive_strip
    do_hardlink
    prefix
    hostonly_mode
    hostonly_nics
    sshkey
    regenerate_all
    noimageifnotneeded
    uefi
    machine_id
    enhanced_cpio

3 years agofix(shell-completion): add missing options
Antonio Alvarez Feijoo [Mon, 9 May 2022 09:49:39 +0000 (11:49 +0200)] 
fix(shell-completion): add missing options

3 years agoci(integration): maintain only Fedora latest
Laszlo Gombos [Fri, 6 May 2022 11:55:10 +0000 (11:55 +0000)] 
ci(integration): maintain only Fedora latest

Alphabetically ordering the distributions in the container section

3 years agoci(virtiofs): add virtiofs label
German Maglione [Thu, 21 Apr 2022 11:04:10 +0000 (13:04 +0200)] 
ci(virtiofs): add virtiofs label

Add the label virtiofs to the label trigger file.

Signed-off-by: German Maglione <gmaglione@redhat.com>
3 years agofeat(virtiofs): virtiofs root filesystem support
German Maglione [Wed, 20 Apr 2022 16:15:23 +0000 (18:15 +0200)] 
feat(virtiofs): virtiofs root filesystem support

Currently dracut can't mount virtiofs as root filesystem.
Make possible to boot virtual machines off virtiofs,
passing "root=virtiofs:<mtag>", using the mount tag <mtag>
as root filesystem. Alternatively this module also supports
"rootfstype=virtiofs root=<mtag>"

Signed-off-by: German Maglione <gmaglione@redhat.com>
3 years agofix(iscsi): do not exit in handle_netroot() if discovery failed
Wenchao Hao [Fri, 29 Apr 2022 06:09:02 +0000 (14:09 +0800)] 
fix(iscsi): do not exit in handle_netroot() if discovery failed

User may specify multiple netroot in cmdline, failed to connect one netroot
do not mean all netroot are not accessible. So if one netroot failed, do
not exit the discovery and login flow.

Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
3 years agofix(test): remove stale comments
Laszlo Gombos [Wed, 4 May 2022 11:54:46 +0000 (11:54 +0000)] 
fix(test): remove stale comments

3 years agofix(test): add support for dpkg to pass the test on debian
Laszlo Gombos [Wed, 4 May 2022 02:11:59 +0000 (02:11 +0000)] 
fix(test): add support for dpkg to pass the test on debian

3 years agofix(lsinitrd.sh): always check that MACHINE_ID is not empty
Antonio Alvarez Feijoo [Tue, 3 May 2022 13:37:42 +0000 (15:37 +0200)] 
fix(lsinitrd.sh): always check that MACHINE_ID is not empty

3 years agofix(dracut.sh): always check that MACHINE_ID is not empty
Antonio Alvarez Feijoo [Tue, 3 May 2022 13:26:53 +0000 (15:26 +0200)] 
fix(dracut.sh): always check that MACHINE_ID is not empty

On new installations, /etc/machine-id may exist and be empty, and
also /efi or /boot/efi may be a mount point, leading to an invalid
initramfs output file.

3 years agoci: on debian, default shell is not bash
Laszlo Gombos [Tue, 3 May 2022 20:02:37 +0000 (20:02 +0000)] 
ci: on debian, default shell is not bash

3 years agoci: install sudo for the debian container 1744/head
Laszlo Gombos [Mon, 2 May 2022 01:22:55 +0000 (01:22 +0000)] 
ci: install sudo for the debian container

3 years agodocs(dracut.usage): fix dracut.cmdline reference from section 5 to 7
Morten Linderud [Mon, 14 Mar 2022 09:02:15 +0000 (10:02 +0100)] 
docs(dracut.usage): fix dracut.cmdline reference from section 5 to 7

Signed-off-by: Morten Linderud <morten@linderud.pw>
3 years agofix(dmsquash-live): mount live device with the correct type
Laszlo Gombos [Sat, 12 Mar 2022 18:01:49 +0000 (18:01 +0000)] 
fix(dmsquash-live): mount live device with the correct type

fstype is not the correct type for the live device.

3 years agoci: add Debian Linux to limited tests
Laszlo Gombos [Sat, 12 Mar 2022 15:06:45 +0000 (15:06 +0000)] 
ci: add Debian Linux to limited tests

3 years agofix(dracut.sh): avoid calling dfatal before dracut-logger is sourced
Antonio Alvarez Feijoo [Wed, 30 Mar 2022 07:27:17 +0000 (09:27 +0200)] 
fix(dracut.sh): avoid calling dfatal before dracut-logger is sourced

dracut-logger is sourced in dracut-init, so any earlier calls to logger
functions before dracut-init is sourced fail.

Fix issue #1758

3 years agofix(dracut.spec): add connman module
Jóhann B. Guðmundsson [Tue, 26 Apr 2022 06:58:04 +0000 (06:58 +0000)] 
fix(dracut.spec): add connman module

Add the connman module to the spec file

3 years agofeat(dracut-systemd): use Documentation= to point to man page
David Tardon [Mon, 25 Apr 2022 14:45:20 +0000 (16:45 +0200)] 
feat(dracut-systemd): use Documentation= to point to man page

3 years agofix(dracut-systemd): drop misleading man page reference
David Tardon [Mon, 25 Apr 2022 14:52:26 +0000 (16:52 +0200)] 
fix(dracut-systemd): drop misleading man page reference

dracut-shutdown.service is not a part of the boot process, therefore the
reference to dracut.bootup(7) is misleading.

3 years agofix(fedora.conf): vi binary is missing
Masahiro Matsuya [Tue, 15 Feb 2022 09:09:43 +0000 (18:09 +0900)] 
fix(fedora.conf): vi binary is missing

/usr/bin/vi is just a wrapper shell script to run /usr/libexec/vi which is the vi binary.
/usr/bin/vi is available in initrd.img, but /usr/libexec/vi is missing.
As as result, vi command never works.
This PR is to add /usr/libexec/vi.

3 years agofix(man): add missing default paths
Antonio Alvarez Feijoo [Fri, 22 Apr 2022 16:23:01 +0000 (18:23 +0200)] 
fix(man): add missing default paths

3 years agofix(lsinitrd.sh): add missing default paths
Antonio Alvarez Feijoo [Fri, 22 Apr 2022 16:22:25 +0000 (18:22 +0200)] 
fix(lsinitrd.sh): add missing default paths

3 years agofix(dracut.sh): add missing default output file paths
Antonio Alvarez Feijoo [Fri, 22 Apr 2022 16:21:45 +0000 (18:21 +0200)] 
fix(dracut.sh): add missing default output file paths

3 years agofix(kernel-network-modules): allow specifying empty --hostonly-nics
Coiby Xu [Sun, 24 Apr 2022 02:52:33 +0000 (10:52 +0800)] 
fix(kernel-network-modules): allow specifying empty --hostonly-nics

Commit 1e92f728 ("Add a --hostonly-nics option") allows only installing
the network drivers for specified NICs. But it doesn't allow an emtpy
--hostonly-nics. Specifying empty hostonly-nics is needed to address the
following use cases,
 - drivers/s390/net is installed regardless of --hostonly-nics. There is
   no need to repeat it.
 - get_dev_module couldn't find the driver for a bond or a bridge
   network interface so it's better for a module to install a bond
   or bridge driver itself
 - dracut kdump module wants to install the needed network drivers by
   itself because it can't add the --hostonly-nics option to dracut when
   itself is a dracut module

This patch distinguishes between an empty --hostonly-nics and --hostonly-nics
not added so a user can pass an empty --hostonly-nics option.

3 years agofix(nfs): give /run/rpcbind ownership to rpc user
Antonio Alvarez Feijoo [Wed, 20 Apr 2022 13:33:51 +0000 (15:33 +0200)] 
fix(nfs): give /run/rpcbind ownership to rpc user

Avoid errors when rpcbind tries to write to the /run/rpcbind directory.

3 years agofix(nfs): require and install needed binaries
Antonio Alvarez Feijoo [Wed, 20 Apr 2022 13:32:54 +0000 (15:32 +0200)] 
fix(nfs): require and install needed binaries

parse-nfsroot.sh requires sed, chmod and chown.

3 years agofix(lvm): add missing grep requirement
Antonio Alvarez Feijoo [Mon, 11 Apr 2022 06:33:17 +0000 (08:33 +0200)] 
fix(lvm): add missing grep requirement

Since commit https://github.com/dracutdevs/dracut/commit/7ffc5e38
lvm_scan.sh needs grep.

3 years agofix(resume): correct call to block_is_netdevice function
Antonio Alvarez Feijoo [Fri, 1 Apr 2022 08:04:30 +0000 (10:04 +0200)] 
fix(resume): correct call to block_is_netdevice function

The block_is_netdevice function requires the device in <maj:min>
format, but the swap_devs array is populated with the content of
/proc/swaps, which prints the devices using their paths from /dev.

This causes the check method to never detect if swap is mounted on a
network device.

3 years agofix(dracut-functions.sh): correct wrong comment
Antonio Alvarez Feijoo [Fri, 1 Apr 2022 07:28:16 +0000 (09:28 +0200)] 
fix(dracut-functions.sh): correct wrong comment

3 years agofix(dracut.cmdline.7): {=> must} also be specified
наб [Mon, 4 Apr 2022 15:44:46 +0000 (17:44 +0200)] 
fix(dracut.cmdline.7): {=> must} also be specified

3 years agofix(ifcfg): avoid calling unavailable dracut-logger functions
Antonio Alvarez Feijoo [Wed, 6 Apr 2022 08:25:23 +0000 (10:25 +0200)] 
fix(ifcfg): avoid calling unavailable dracut-logger functions

The dracut-logger functions are only available during the initrd
generation. For internal initrd scripts that run at boot,
dracut-lib provides warn() and info().

3 years agofix(network-manager): avoid calling unavailable dracut-logger functions
Antonio Alvarez Feijoo [Wed, 6 Apr 2022 08:23:53 +0000 (10:23 +0200)] 
fix(network-manager): avoid calling unavailable dracut-logger functions

The dracut-logger functions are only available during the initrd
generation. For internal initrd scripts that run at boot,
dracut-lib provides warn() and info().

3 years agofeat(man): add documentation for rd.luks.key.tout
Nicolas Porcel [Mon, 28 Feb 2022 19:31:56 +0000 (19:31 +0000)] 
feat(man): add documentation for rd.luks.key.tout

3 years agofix(crypt): add missing is_keysource parameter to cryptroot-ask
Nicolas Porcel [Mon, 28 Feb 2022 18:48:04 +0000 (18:48 +0000)] 
fix(crypt): add missing is_keysource parameter to cryptroot-ask

Without this change, rd.luks.key.tout is used, which is the number of
times cryptroot tries to find the key.

3 years agofix(man): add missing --libdirs section
Antonio Alvarez Feijoo [Mon, 4 Apr 2022 16:01:05 +0000 (18:01 +0200)] 
fix(man): add missing --libdirs section

3 years agofix(dracut.sh): add missing --libdirs usage
Antonio Alvarez Feijoo [Mon, 4 Apr 2022 15:50:23 +0000 (17:50 +0200)] 
fix(dracut.sh): add missing --libdirs usage

3 years agofix(nvmf): set executable bit on nvmf-autoconnect.sh
Benjamin Gilbert [Thu, 7 Apr 2022 22:10:35 +0000 (18:10 -0400)] 
fix(nvmf): set executable bit on nvmf-autoconnect.sh

It's installed in /sbin, and run via initqueue in the special case of FC
transport without a discovery.conf and without kernel arguments.  If the
executable bit is not set, initqueue fails with "Invalid command".

Caught by CI checking for non-executable files in binary directories.

3 years agofeat(url-lib.sh): add --retry-connrefused to default curl arguments
James Morris [Thu, 7 Apr 2022 16:57:48 +0000 (17:57 +0100)] 
feat(url-lib.sh): add --retry-connrefused to default curl arguments

Trigger the existing retry condition on connection refused
to mitigate transient connectivity issues.

3 years agofix(dracut-install): copy files preserving ownership attributes
Antonio Alvarez Feijoo [Mon, 4 Apr 2022 09:55:59 +0000 (11:55 +0200)] 
fix(dracut-install): copy files preserving ownership attributes

While the "clone copy" operation changes the ownership of the cloned
files, the "normal copy" using cp does not preserve it.

3 years agodocs: do not mention nullglob in cases where it's not needed
Pavel Valena [Fri, 25 Mar 2022 16:39:04 +0000 (17:39 +0100)] 
docs: do not mention nullglob in cases where it's not needed

3 years agofix(10i18n): stop leaking shell options
Pavel Valena [Fri, 25 Mar 2022 16:26:19 +0000 (17:26 +0100)] 
fix(10i18n): stop leaking shell options

Avoid using shell options in findkeymap, instead of using a wrapper[*]
to restore the previous options. Using mapfile and find to generate the list
of files also has the benefit of being more readable in this case.

[*] Reverted commit 35064768ebf14d3ec6bf3f7df52580fb4920ea3d
Original issue description from Michal Hecko <mhecko@redhat.com>:

The findkeymap function manipulates the shell options and relies on
restoring them using the trap. However, as the function might be called
recursively, each recursive invocation changes the signal handler to its
own. As the recursion is entered with shell options already modified,
the changed trap handler is replaced with restoration to the modified
shell options, not the original ones.

3 years agorevert(10i18n): stop leaking shell options
Pavel Valena [Fri, 25 Mar 2022 16:00:53 +0000 (17:00 +0100)] 
revert(10i18n): stop leaking shell options

This reverts commit 35064768ebf14d3ec6bf3f7df52580fb4920ea3d, to replace
the implementation.

3 years agofix(test): nullglob should not be needed
Pavel Valena [Fri, 25 Mar 2022 15:57:28 +0000 (16:57 +0100)] 
fix(test): nullglob should not be needed

3 years agofix(dracut-install): do not fail when SOURCE is optional and missing
Pavel Valena [Fri, 25 Mar 2022 15:20:16 +0000 (16:20 +0100)] 
fix(dracut-install): do not fail when SOURCE is optional and missing

When running dracut-install with '-o' (optional source), and nullglob
at the same time, when all of the arguments evaluate <null>, dracut-install
should not fail even when the source is not specified.

3 years agofix(bluetooth): nullglob should not be needed
Pavel Valena [Fri, 25 Mar 2022 15:39:55 +0000 (16:39 +0100)] 
fix(bluetooth): nullglob should not be needed

3 years agoci: obsolete Dockerfile with Fedora 33
Pavel Valena [Mon, 4 Apr 2022 04:40:26 +0000 (06:40 +0200)] 
ci: obsolete Dockerfile with Fedora 33

3 years agoci: add Dockerfile for Fedora 35
Pavel Valena [Mon, 4 Apr 2022 04:40:08 +0000 (06:40 +0200)] 
ci: add Dockerfile for Fedora 35

3 years agofix(dracut-initramfs-restore.sh): unpack uncompressed initrd as last option
Antonio Alvarez Feijoo [Fri, 18 Mar 2022 14:42:42 +0000 (15:42 +0100)] 
fix(dracut-initramfs-restore.sh): unpack uncompressed initrd as last option

Attempting to unpack the initrd assuming it is uncompressed when
it is delays the shutdown process by several seconds. This must
be the last check.

3 years agofix(configure): check for SYS-gettid during configure
Shreenidhi Shedi [Tue, 15 Mar 2022 11:30:14 +0000 (17:00 +0530)] 
fix(configure): check for SYS-gettid during configure

Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com>
3 years agofix(lvm): ignore expected error message from lvm config
David Teigland [Mon, 28 Mar 2022 14:35:11 +0000 (09:35 -0500)] 
fix(lvm): ignore expected error message from lvm config

The "lvm config" commands that check the filter settings will
often find nothing set and report an error message:
"Configuration node devices/filter not found"
Direct these messages to /dev/null so they do not appear as
noise in system logs.

3 years agofix(connman): copy netroot.sh from the network module and install it
Zoltán Böszörményi [Sat, 26 Mar 2022 11:36:05 +0000 (12:36 +0100)] 
fix(connman): copy netroot.sh from the network module and install it

As requested by johannbg.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
3 years agofeat(connman): introduce connman support module
Zoltán Böszörményi [Thu, 24 Mar 2022 09:48:00 +0000 (10:48 +0100)] 
feat(connman): introduce connman support module

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
3 years agofix(plymouth): hide dpkg-architecture stderr messages
Antonio Alvarez Feijoo [Wed, 16 Mar 2022 16:01:37 +0000 (17:01 +0100)] 
fix(plymouth): hide dpkg-architecture stderr messages

dpkg-architecture prints warnings and errors to stderr. If the system does
not have gcc installed, it issues a warning:

dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation)

This fix checks only the value of the queried variable.

3 years agostyle: remove accidental whitespace in front of comment line
nkraetzschmar [Wed, 23 Mar 2022 08:44:45 +0000 (09:44 +0100)] 
style: remove accidental whitespace in front of comment line

3 years agofeat: add aarch64 uefi support
nkraetzschmar [Tue, 22 Mar 2022 19:52:46 +0000 (20:52 +0100)] 
feat: add aarch64 uefi support

3 years agofix(udev-rules): add cdrom udev rules by default
Laszlo Gombos [Mon, 14 Mar 2022 16:56:04 +0000 (16:56 +0000)] 
fix(udev-rules): add cdrom udev rules by default

Include cdrom udev rules by default, even if
systemd-udevd or dmsquash-live dracut modules
are not installed.

3 years agofix(dracut-initramfs-restore.sh): check if SELINUXTYPE is set
David Tardon [Fri, 11 Mar 2022 13:04:16 +0000 (14:04 +0100)] 
fix(dracut-initramfs-restore.sh): check if SELINUXTYPE is set

It can happen that SELINUXTYPE is not set, e.g., in Fedora/RHEL
installation images /etc/selinux/config is an empty file. That means
that setfiles fails, which makes dracut-initramfs-restore fail too
because it uses "set -x", which means that dracut-shutdown.service
fails. But, after commit 7ab1d00227cad6f1b86ba01fdc766769faebb031, a
failure of dracut-shutdown.service means that the final switch back into
initrd is skipped. Let's just add an additional sanity check to
workaround that.

3 years agofix(bluetooth): make $dbussystem/bluetooth.conf optional
Antonio Alvarez Feijoo [Wed, 16 Mar 2022 08:08:34 +0000 (09:08 +0100)] 
fix(bluetooth): make $dbussystem/bluetooth.conf optional

Do not display an error message if $dbussystem/bluetooth.conf file don't exist.

3 years agofix(dracut-systemd): correct service dependencies
David Tardon [Mon, 14 Mar 2022 09:48:44 +0000 (10:48 +0100)] 
fix(dracut-systemd): correct service dependencies

dracut-systemd.service is not an early boot service, therefore it should
not use DefaultDependencies=no. This also fixes the service's ordering
dependencies, as in its current state it is missing
Before=shutdown.target umount.target