From 6122fd8e1c6c8f81297a826d716a0bce21c10689 Mon Sep 17 00:00:00 2001 From: Philip Date: Sat, 21 Mar 2015 23:27:38 +0100 Subject: [PATCH] [util-iso-calamares] fix thus.conf --- lib/util-iso-calamares.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/util-iso-calamares.sh b/lib/util-iso-calamares.sh index a220523..62bff8d 100644 --- a/lib/util-iso-calamares.sh +++ b/lib/util-iso-calamares.sh @@ -135,10 +135,16 @@ configure_thus(){ if [[ -f $1/usr/bin/thus ]];then msg2 "Configuring Thus ..." local conf="$1/etc/thus.conf" - sed -i "s|_version_|$dist_release|g" $conf - sed -i "s|_kernel_|$kernel|g" $conf - sed -i "s|_root-image_|/bootmnt/${iso_name}/${arch}/root-image.sqfs|g" $conf - sed -i "s|_desktop-image_|/bootmnt/${iso_name}/${arch}/${custom}-image.sqfs|g" $conf + echo "[distribution]" > "$conf" + echo "DISTRIBUTION_NAME = \"${dist_name} Linux\"" >> "$conf" + echo "DISTRIBUTION_VERSION = \"${dist_release}\"" >> "$conf" + echo "SHORT_NAME = \"${dist_name}\"" >> "$conf" + echo "[install]" >> "$conf" + echo "LIVE_MEDIA_SOURCE = \"/bootmnt/${iso_name}/${arch}/root-image.sqfs\"" >> "$conf" + echo "LIVE_MEDIA_DESKTOP = \"/bootmnt/${iso_name}/${arch}/${custom}-image.sqfs\"" >> "$conf" + echo "LIVE_MEDIA_TYPE = \"squashfs\"" >> "$conf" + echo "LIVE_USER_NAME = \"${username}\"" >> "$conf" + echo "KERNEL = \"${kernel}\"" >> "$conf" mkdir -p $1/home/${username}/Desktop cp $1/usr/share/applications/thus.desktop $1/home/${username}/Desktop/thus.desktop chmod a+x $1/home/${username}/Desktop/thus.desktop