f91df5dfc6
dib-run-parts filters the acceptable characters in script names, and "." is not allowed (see $allowed_regex there), so 01-clean-old-kernels.sh is never executed. Rename it to drop its .sh extension, so it is executed for real. Change-Id: Ieb633b31214f1accf03b92a2b06590fdf2127b6b
11 lines
163 B
Bash
Executable file
11 lines
163 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
install-packages yum-utils
|
|
|
|
package-cleanup --oldkernels -y --count=1
|