forked from artix/artools
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
5d7f006ad9
|
|||
|
72104728ac
|
|||
|
423896750a
|
|||
|
ad09046044
|
|||
|
c335cab68c
|
@@ -8,26 +8,31 @@ yaml_array() {
|
|||||||
local array yaml
|
local array yaml
|
||||||
|
|
||||||
for entry in "$@"; do
|
for entry in "$@"; do
|
||||||
yaml="{name: ${entry}, action: enable, alias: add, target: default}"
|
yaml="{name: ${entry}, action: enable}"
|
||||||
array="${array:-}${array:+,} ${yaml}"
|
array="${array:-}${array:+,} ${yaml}"
|
||||||
done
|
done
|
||||||
printf "%s\n" "[${array}]"
|
printf "%s\n" "[${array}]"
|
||||||
}
|
}
|
||||||
|
|
||||||
configure_calamares(){
|
configure_calamares(){
|
||||||
local mods="$1/etc/calamares/modules"
|
for config in online offline; do
|
||||||
|
local mods="$1/etc/calamares-$config/modules"
|
||||||
if [[ -d "$mods" ]];then
|
if [[ -d "$mods" ]];then
|
||||||
msg2 "Configuring: Calamares"
|
msg2 "Configuring: Calamares %s" "$config"
|
||||||
|
|
||||||
if [[ -f "$mods"/services-artix.conf ]]; then
|
if [[ -f "$mods"/services-artix.conf ]]; then
|
||||||
local svc init
|
local svc
|
||||||
init="${INITSYS}" svc=$(yaml_array "${SERVICES[@]}") \
|
svc=$(yaml_array "${SERVICES[@]}") \
|
||||||
yq -P 'with(.;
|
yq -P 'with(.;
|
||||||
.manager = env(init) |
|
.command = "artix-service" |
|
||||||
.services = env(svc) )' \
|
.services = env(svc) )' \
|
||||||
-i "$mods"/services-artix.conf
|
-i "$mods"/services-artix.conf
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
done
|
||||||
|
if [[ -d "$1"/etc/calamares-offline ]]; then
|
||||||
|
ln -sf calamares-offline "$1"/etc/calamares
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
#}}}
|
#}}}
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ prepare_boot_extras(){
|
|||||||
done
|
done
|
||||||
|
|
||||||
cp "$src"/boot/memtest86+/memtest.bin "$dest"/memtest
|
cp "$src"/boot/memtest86+/memtest.bin "$dest"/memtest
|
||||||
cp "$src"/usr/share/licenses/common/GPL2/license.txt "$dest"/memtest.COPYING
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#}}}
|
#}}}
|
||||||
|
|||||||
Reference in New Issue
Block a user