[util-iso-calamares] source kernel preset

This commit is contained in:
Philip 2015-04-20 22:16:56 +02:00
parent 939e0bddba
commit 3f1798f25c

View file

@ -146,6 +146,7 @@ configure_calamares(){
configure_thus(){ configure_thus(){
if [[ -f $1/usr/bin/thus ]];then if [[ -f $1/usr/bin/thus ]];then
msg2 "Configuring Thus ..." msg2 "Configuring Thus ..."
source "$1/etc/mkinitcpio.d/${kernel}.preset"
local conf="$1/etc/thus.conf" local conf="$1/etc/thus.conf"
echo "[distribution]" > "$conf" echo "[distribution]" > "$conf"
echo "DISTRIBUTION_NAME = \"${dist_name} Linux\"" >> "$conf" echo "DISTRIBUTION_NAME = \"${dist_name} Linux\"" >> "$conf"