Closed
Description
System information
Type | Version/Name |
---|---|
Distribution Name | openSUSE |
Distribution Version | Tumbleweed-20210311 |
Linux Kernel | 5.11.4-1-default |
Architecture | x86_64 |
ZFS Version | 2.0.4-1 |
SPL Version | 2.0.4-1 |
Describe the problem you're observing
When making initrd, the inclusion of zfs dracut module failed because libgcc_s.so is not under /usr/lib .
The result of locate libgcc_s.so
is:
# locate libgcc_s.so
/lib64/libgcc_s.so.1
/usr/lib64/gcc/x86_64-suse-linux/10/libgcc_s.so
The problem might be caused by contrib/dracut/90zfs/module-setup.sh.in
in source tree. After editing the path for libgcc_s.so installation in /usr/lib/dracut/modules.d/90zfs/module-setup.sh
, this module can be added to initrd.
Describe how to reproduce the problem
executing dracut -f
to build the initrd, when adding zfs to initrd, it will fail at dracut-install libgcc_s.so , and zfs module is not included in the initrd.
Include any warning/errors/backtraces from the system logs
dracut-install: ERROR: installing '/usr/lib/gcc/*/*/libgcc_s.so*'
dracut: FAILED: /usr/lib/dracut/dracut-install -D /var/tmp/dracut.ELz0Yb/initramfs -a /usr/lib/gcc/*/*/libgcc_s.so*