mirror of
https://github.com/theupriser/steamify-cachyos-live-iso.git
synced 2026-10-02 15:10:26 +02:00
👷 util-iso: generate version tag to check ISO version
This commit is contained in:
1 file changed
+13
-1
+13
-1
@@ -100,6 +100,14 @@ EOF
|
||||
fi
|
||||
}
|
||||
|
||||
generate_version_tag() {
|
||||
local _profile="$1"
|
||||
local _version="$2"
|
||||
if [ "$_profile" == "desktop" ]; then
|
||||
echo "${_version}" > ${src_dir}/archiso/airootfs/etc/version-tag
|
||||
fi
|
||||
}
|
||||
|
||||
modify_mkarchiso() {
|
||||
local _is_hack_applied="$(grep -q 'archlinux-keyring-wkd-sync.timer' /usr/bin/mkarchiso; echo $?)"
|
||||
if [ $_is_hack_applied -ne 0 ]; then
|
||||
@@ -116,7 +124,8 @@ prepare_profile(){
|
||||
|
||||
info "Profile: [%s]" "${profile}"
|
||||
|
||||
change_grub_version "$(date +%y%m%d)"
|
||||
local _iso_version="$(date +%y%m%d)"
|
||||
change_grub_version "${_iso_version}"
|
||||
|
||||
# Fetch up-to-date version of CachyOS repo mirrorlist
|
||||
fetch_cachyos_mirrorlist
|
||||
@@ -133,6 +142,9 @@ prepare_profile(){
|
||||
|
||||
generate_environment "${profile}"
|
||||
|
||||
# Write out version to be able to check ISO version
|
||||
generate_version_tag "${profile}" "${_iso_version}"
|
||||
|
||||
iso_file=$(gen_iso_fn).iso
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user