Skip to content

Commit e5fc204

Browse files
authored
Merge pull request dracutdevs#82 from lnussel/usrmerge
fix(suse-initrd): need to handle relative links too
2 parents f65e559 + 35a9875 commit e5fc204

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

suse/mkinitrd-suse.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ default_kernel_images() {
197197
# check for usrmerged kernel. in That case the link point to
198198
# /usr/lib/modules
199199
link=$(readlink "$boot_dir/$kernel_image")
200-
[ "${link#/usr/lib/modules}" = "$link" ] && continue
200+
[ "${link#/usr/lib/modules}" = "$link" ] && \
201+
[ "${link#../usr/lib/modules}" = "$link" ] && continue
201202
fi
202203
[ "${kernel_image%%.gz}" != "$kernel_image" ] && continue
203204

0 commit comments

Comments
 (0)