diff options
author | Moritz Maxeiner <[email protected]> | 2016-09-01 18:15:10 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-09-09 10:16:52 -0700 |
commit | 61c73494394fc9de9283b3fd4f00bcdf4bd300a7 (patch) | |
tree | e0ba542d206df1926353f72f3cb297f7579d3171 /contrib/dracut/90zfs | |
parent | 679d73e98bf5e51a02bc8d550253e4a3f15d58ca (diff) |
Adapt genkernel fix for zfsonlinux/zfs#4749 to zfs dracut module
Signed-off-by: Moritz Maxeiner <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Closes #4749
Closes #5058
Diffstat (limited to 'contrib/dracut/90zfs')
-rwxr-xr-x | contrib/dracut/90zfs/module-setup.sh.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/dracut/90zfs/module-setup.sh.in b/contrib/dracut/90zfs/module-setup.sh.in index 70eac8790..6dff2a824 100755 --- a/contrib/dracut/90zfs/module-setup.sh.in +++ b/contrib/dracut/90zfs/module-setup.sh.in @@ -38,6 +38,12 @@ install() { dracut_install grep dracut_install @sbindir@/zfs dracut_install @sbindir@/zpool + # Include libgcc_s.so.1 to workaround zfsonlinux/zfs#4749 + if type gcc-config 2>&1 1>/dev/null; then + dracut_install "/usr/lib/gcc/$(s=$(gcc-config -c); echo ${s%-*}/${s##*-})/libgcc_s.so.1" + else + dracut_install /usr/lib/gcc/*/*/libgcc_s.so.1 + fi dracut_install @sbindir@/mount.zfs dracut_install @udevdir@/vdev_id dracut_install @udevdir@/zvol_id |