mirror of
https://github.com/theupriser/steamify-cachyos-live-iso.git
synced 2026-10-02 15:10:26 +02:00
feat: add /etc/edition-tag for edition detection
Signed-off-by: SoulHarsh007 <harsh.peshwani@outlook.com>
This commit is contained in:
1 parent
31136c4827
commit
eab8d7a4f3
1 file changed
+11
+11
@@ -108,6 +108,14 @@ generate_version_tag() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
generate_edition_tag() {
|
||||||
|
local _profile="$1"
|
||||||
|
local _edition="$2"
|
||||||
|
if [ "$_profile" == "desktop" ]; then
|
||||||
|
echo "${_edition}" > ${src_dir}/archiso/airootfs/etc/edition-tag
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
modify_mkarchiso() {
|
modify_mkarchiso() {
|
||||||
local _is_hack_applied="$(grep -q 'archlinux-keyring-wkd-sync.timer' /usr/bin/mkarchiso; echo $?)"
|
local _is_hack_applied="$(grep -q 'archlinux-keyring-wkd-sync.timer' /usr/bin/mkarchiso; echo $?)"
|
||||||
if [ $_is_hack_applied -ne 0 ]; then
|
if [ $_is_hack_applied -ne 0 ]; then
|
||||||
@@ -145,6 +153,9 @@ prepare_profile(){
|
|||||||
# Write out version to be able to check ISO version
|
# Write out version to be able to check ISO version
|
||||||
generate_version_tag "${profile}" "${_iso_version}"
|
generate_version_tag "${profile}" "${_iso_version}"
|
||||||
|
|
||||||
|
# Write out edition to be able to check ISO edition
|
||||||
|
generate_edition_tag "${profile}" "desktop"
|
||||||
|
|
||||||
iso_file=$(gen_iso_fn).iso
|
iso_file=$(gen_iso_fn).iso
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user