
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
12 lines
163 B
Bash
Executable File
12 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
|