From 56da8cfdf4bb7b1849e81091b5db3723d47d01e8 Mon Sep 17 00:00:00 2001 From: matthiasberner Date: Thu, 31 Oct 2024 22:18:45 +0100 Subject: [PATCH] bastille-init aktualisiert --- bastille-init | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bastille-init b/bastille-init index 2fcdc21..4ecd2b2 100644 --- a/bastille-init +++ b/bastille-init @@ -1129,6 +1129,10 @@ get_versions() exit 0 } +rcordered_list() { + bastille_ordered_list=$(rcorder -s nostart ${CWDIR}/jails/*/jail.conf | xargs dirname | xargs basename -a | tr "\n" " ") +} + ext_start() { if sysrc -f ${CWDIR}${EXTCONF} -qn LINUX_COMPAT_SUPPORT | grep -q "YES"; then @@ -1138,7 +1142,7 @@ ext_start() # Start bastille jails. if [ -d "${CWDIR}/jails" ]; then - JAIL_LIST=$(bastille list jail) + JAIL_LIST=$bastille_ordered_list for jail in ${JAIL_LIST}; do if grep -qw "${jail}_AUTO_START=\"YES\"" ${CWDIR}${EXTCONF}; then if ! jls | sed "1 d" | awk '{print $3}' | grep -qw ${jail}; then