Fix non-etc overlay detection

This commit is contained in:
Dennis ten Hoove 2023-10-23 19:12:24 +00:00
parent 7b019b2783
commit 4017d097e1

4
arkdep
View file

@ -387,11 +387,11 @@ deploy () {
# Add overlay if enabled
if [[ $enable_overlay -eq 1 ]]; then
printf "\e[1;34m-->\e[0m\e[1m Copying overlay to deployment\e[0m\n"
overlay_files=$(ls $arkdep_dir/overlay/)
declare -r overlay_files=$(ls $arkdep_dir/overlay/)
# Check if only /etc is present, if it is we do not have to unlock the root volume
for file in ${overlay_files[*]}; do
if [[ ! $file -eq etc ]]; then
if [[ ! $file == 'etc' ]]; then
printf "\e[1;33m<!>\e[0m\e[1m ${data[0]} Non /etc file or directory detected, root will be temporarily unlocked\e[0m\n"
overlay_unlock_root=1
fi