File tree 1 file changed +9
-5
lines changed
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 46
46
if : ${{ steps.cache-kernel-sources.outputs.cache-hit != 'true' }}
47
47
run : |
48
48
sudo mkdir -p /usr/src
49
- sudo git clone --depth 1 --branch v$(uname -r) git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git /usr/src/linux
50
- sudo rm /lib/modules/$(uname -r)/build
51
- sudo ln -s /usr/src/linux-headers-$(uname -r)/ /lib/modules/$(uname -r)/build
52
- sudo rm /lib/modules/$(uname -r)/source
53
- sudo ln -s /usr/src/linux-headers-$(uname -r)/ /lib/modules/$(uname -r)/source
49
+ sudo git clone --depth 1 --branch v$KERNEL_RELEASE git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git /usr/src/linux
50
+
51
+ - name : Create proper symlinks
52
+ shell : bash
53
+ run : |
54
+ sudo rm /lib/modules/$KERNEL_RELEASE/build
55
+ sudo ln -s /usr/src/linux-headers-$KERNEL_RELEASE/ /lib/modules/$KERNEL_RELEASE/build
56
+ sudo rm /lib/modules/$KERNEL_RELEASE/source
57
+ sudo ln -s /usr/src/linux-headers-$KERNEL_RELEASE/ /lib/modules/$KERNEL_RELEASE/source
You can’t perform that action at this time.
0 commit comments