forked from mirrored-repos/manjaro-tools
Compare commits
21 commits
master
...
stable-0.1
Author | SHA1 | Date | |
---|---|---|---|
|
a0986ae472 | ||
|
83de201055 | ||
|
53b3ce5dc1 | ||
|
bdf55196c3 | ||
|
26cca31fb1 | ||
|
2a3c20e3a9 | ||
|
ef9d9e34fa | ||
|
f2d646b371 | ||
|
b4389f1c06 | ||
|
0c40ad7d35 | ||
|
0d61fc0869 | ||
|
9b478fdc2e | ||
|
c61f1ac9ba | ||
|
c99ffacc8e | ||
|
0990d44bf4 | ||
|
c5c8c5e5ff | ||
|
31970d78a2 | ||
|
360da72fc6 | ||
|
3a37521eed | ||
|
4d6b18c660 | ||
|
0f7ba32e56 |
2 changed files with 25 additions and 1 deletions
|
@ -194,6 +194,29 @@ configure_system(){
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
configure_thus(){
|
||||||
|
msg2 "Configuring Thus ..."
|
||||||
|
source "$1/etc/mkinitcpio.d/${kernel}.preset"
|
||||||
|
local conf="$1/etc/thus.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}/${target_arch}/root-image.sqfs\"" >> "$conf"
|
||||||
|
echo "LIVE_MEDIA_DESKTOP = \"/bootmnt/${iso_name}/${target_arch}/${profile}-image.sqfs\"" >> "$conf"
|
||||||
|
echo "LIVE_MEDIA_TYPE = \"squashfs\"" >> "$conf"
|
||||||
|
echo "LIVE_USER_NAME = \"${username}\"" >> "$conf"
|
||||||
|
echo "KERNEL = \"${kernel}\"" >> "$conf"
|
||||||
|
echo "VMLINUZ = \"$(echo ${ALL_kver} | sed s'|/boot/||')\"" >> "$conf"
|
||||||
|
echo "INITRAMFS = \"$(echo ${default_image} | sed s'|/boot/||')\"" >> "$conf"
|
||||||
|
echo "FALLBACK = \"$(echo ${fallback_image} | sed s'|/boot/||')\"" >> "$conf"
|
||||||
|
|
||||||
|
if [[ -f $1/usr/share/applications/thus.desktop && -f $1/usr/bin/kdesu ]];then
|
||||||
|
sed -i -e 's|sudo|kdesu|g' $1/usr/share/applications/thus.desktop
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
configure_live_image(){
|
configure_live_image(){
|
||||||
msg "Configuring [live-image]"
|
msg "Configuring [live-image]"
|
||||||
configure_hosts "$1"
|
configure_hosts "$1"
|
||||||
|
@ -202,6 +225,7 @@ configure_live_image(){
|
||||||
configure_system "$1"
|
configure_system "$1"
|
||||||
configure_services "$1"
|
configure_services "$1"
|
||||||
configure_calamares "$1"
|
configure_calamares "$1"
|
||||||
|
[[ ${edition} == "sonar" ]] && configure_thus "$1"
|
||||||
write_live_session_conf "$1"
|
write_live_session_conf "$1"
|
||||||
msg "Done configuring [live-image]"
|
msg "Done configuring [live-image]"
|
||||||
}
|
}
|
||||||
|
|
|
@ -173,7 +173,7 @@ write_welcome_conf(){
|
||||||
echo "showReleaseNotesUrl: true" >> "$conf"
|
echo "showReleaseNotesUrl: true" >> "$conf"
|
||||||
echo '' >> "$conf"
|
echo '' >> "$conf"
|
||||||
echo "requirements:" >> "$conf"
|
echo "requirements:" >> "$conf"
|
||||||
echo " requiredStorage: 5.5" >> "$conf"
|
echo " requiredStorage: 7.9" >> "$conf"
|
||||||
echo " requiredRam: 1.0" >> "$conf"
|
echo " requiredRam: 1.0" >> "$conf"
|
||||||
echo " check:" >> "$conf"
|
echo " check:" >> "$conf"
|
||||||
echo " - storage" >> "$conf"
|
echo " - storage" >> "$conf"
|
||||||
|
|
Loading…
Reference in a new issue