forked from mirrored-repos/manjaro-tools
[util-iso-calamares] fix thus.conf
This commit is contained in:
parent
739e6f6808
commit
d76b67d084
1 changed files with 10 additions and 4 deletions
|
@ -135,10 +135,16 @@ configure_thus(){
|
||||||
if [[ -f $1/usr/bin/thus ]];then
|
if [[ -f $1/usr/bin/thus ]];then
|
||||||
msg2 "Configuring Thus ..."
|
msg2 "Configuring Thus ..."
|
||||||
local conf="$1/etc/thus.conf"
|
local conf="$1/etc/thus.conf"
|
||||||
sed -i "s|_version_|$dist_release|g" $conf
|
echo "[distribution]" > "$conf"
|
||||||
sed -i "s|_kernel_|$kernel|g" $conf
|
echo "DISTRIBUTION_NAME = \"${dist_name} Linux\"" >> "$conf"
|
||||||
sed -i "s|_root-image_|/bootmnt/${iso_name}/${arch}/root-image.sqfs|g" $conf
|
echo "DISTRIBUTION_VERSION = \"${dist_release}\"" >> "$conf"
|
||||||
sed -i "s|_desktop-image_|/bootmnt/${iso_name}/${arch}/${custom}-image.sqfs|g" $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
|
mkdir -p $1/home/${username}/Desktop
|
||||||
cp $1/usr/share/applications/thus.desktop $1/home/${username}/Desktop/thus.desktop
|
cp $1/usr/share/applications/thus.desktop $1/home/${username}/Desktop/thus.desktop
|
||||||
chmod a+x $1/home/${username}/Desktop/thus.desktop
|
chmod a+x $1/home/${username}/Desktop/thus.desktop
|
||||||
|
|
Loading…
Reference in a new issue