Skip to content

Commit a96f5ba

Browse files
committed
skip header install if already present
1 parent 98516fe commit a96f5ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

root/etc/cont-init.d/30-config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ else
2020
fi
2121

2222
# install headers if necessary
23-
if [ "$SKIP_COMPILE" != "true" ]; then
23+
if [ "$SKIP_COMPILE" != "true" ] && [ ! -e /lib/modules/$(uname -r)/build ]; then
2424
echo "**** Attempting kernel header install ****"
2525
apt-get update
2626
if apt-cache show linux-headers-$(uname -r) 2&>1 >/dev/null; then

0 commit comments

Comments
 (0)