|
|
@ -90,13 +90,10 @@ case "$COMMAND" in
|
|
|
|
[[ -d "$BLS_DIR" ]] || mkdir -m 0700 -p "$BLS_DIR"
|
|
|
|
[[ -d "$BLS_DIR" ]] || mkdir -m 0700 -p "$BLS_DIR"
|
|
|
|
BLS_ID="${MACHINE_ID}-${KERNEL_VERSION}"
|
|
|
|
BLS_ID="${MACHINE_ID}-${KERNEL_VERSION}"
|
|
|
|
BLS_TARGET="${BLS_DIR}/${BLS_ID}.conf"
|
|
|
|
BLS_TARGET="${BLS_DIR}/${BLS_ID}.conf"
|
|
|
|
if [[ -f "${KERNEL_DIR}/bls.conf" ]]; then
|
|
|
|
|
|
|
|
cp -aT "${KERNEL_DIR}/bls.conf" "${BLS_TARGET}" || exit $?
|
|
|
|
mkbls "${KERNEL_VERSION}" \
|
|
|
|
else
|
|
|
|
"$(date -u +%Y%m%d%H%M%S -d "$(stat -c '%y' "${KERNEL_DIR}")")" \
|
|
|
|
mkbls "${KERNEL_VERSION}" \
|
|
|
|
>"${BLS_TARGET}"
|
|
|
|
"$(date -u +%Y%m%d%H%M%S -d "$(stat -c '%y' "${KERNEL_DIR}")")" \
|
|
|
|
|
|
|
|
>"${BLS_TARGET}"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LINUX="$(grep '^linux[ \t]' "${BLS_TARGET}" | sed -e 's,^linux[ \t]*,,')"
|
|
|
|
LINUX="$(grep '^linux[ \t]' "${BLS_TARGET}" | sed -e 's,^linux[ \t]*,,')"
|
|
|
|
INITRD="$(grep '^initrd[ \t]' "${BLS_TARGET}" | sed -e 's,^initrd[ \t]*,,')"
|
|
|
|
INITRD="$(grep '^initrd[ \t]' "${BLS_TARGET}" | sed -e 's,^initrd[ \t]*,,')"
|
|
|
|