summarylogtreecommitdiffstats
path: root/make-kmod-cache
blob: 22379d8a09394f694e5cd4740f18770aaf63acc7 (plain)
1
2
3
4
5
6
7
8
#!/bin/bash -e

moddir=/lib/modules/`uname -r`
[ -d "$moddir" ]
rm -f /var/cache/kmods/osrelease
rm -rf /var/cache/kmods
cp -r -L --preserve=all --reflink=auto "$moddir" /var/cache/kmods
cp -a /proc/sys/kernel/osrelease /var/cache/kmods/osrelease