diff options
| author | Woodpecker CI <emmett1.2miligrams@protonmail.com> | 2025-10-06 14:25:52 +0000 |
|---|---|---|
| committer | Woodpecker CI <emmett1.2miligrams@protonmail.com> | 2025-10-06 14:25:52 +0000 |
| commit | ab41d3dd59c8013aa44d1f64f1d2ef4dde65288a (patch) | |
| tree | 7ba22a638232de4b74d3574c7482b2183eb625c4 /linux/postinstall | |
| parent | b3e65826e02015ecfff8bf8a3fefbade6b145d34 (diff) | |
| download | alicelinux-ab41d3dd59c8013aa44d1f64f1d2ef4dde65288a.tar.gz alicelinux-ab41d3dd59c8013aa44d1f64f1d2ef4dde65288a.zip | |
Woodpecker CI 0550e84f8f19424b5c1d77d476abd6d40ea65ddf [SKIP CI]
Diffstat (limited to 'linux/postinstall')
| -rwxr-xr-x | linux/postinstall | 10 |
1 files changed, 7 insertions, 3 deletions
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 |