From ab41d3dd59c8013aa44d1f64f1d2ef4dde65288a Mon Sep 17 00:00:00 2001 From: Woodpecker CI Date: Mon, 6 Oct 2025 14:25:52 +0000 Subject: Woodpecker CI 0550e84f8f19424b5c1d77d476abd6d40ea65ddf [SKIP CI] --- linux/postinstall | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'linux/postinstall') diff --git a/linux/postinstall b/linux/postinstall index 04b6aa2f..f5e8be90 100755 --- a/linux/postinstall +++ b/linux/postinstall @@ -1,7 +1,11 @@ #!/bin/sh for i in /lib/modules/*; do - [ -f $i/current ] || continue - depmod ${i##*/} - mkinitrd -k ${i##*/} /boot/initrd-linux + [ -L $i ] || continue + case $(readlink $i) in + linux) + depmod ${i##*/} + mkinitrd -k ${i##*/} /boot/initrd-linux + break;; + esac done -- cgit v1.2.3