mirror of
https://github.com/theupriser/steamify-cachyos-live-iso.git
synced 2026-10-02 15:10:26 +02:00
🚧 util-iso: prevent archlinux-keyring timer from starting on the ISO
This commit is contained in:
1 file changed
+13
+13
@@ -100,6 +100,16 @@ EOF
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
modify_mkarchiso() {
|
||||||
|
if [ ! grep -q 'archlinux-keyring-wkd-sync.timer' /usr/bin/mkarchiso ]; then
|
||||||
|
msg "Patching mkarchiso with disabled arch keyrings timer..."
|
||||||
|
|
||||||
|
sudo sed 's/_run_once _make_customize_airootfs/_run_once _make_customize_airootfs\n\trm -f "${pacstrap_dir}\/usr\/lib\/systemd\/system\/timers.target.wants\/archlinux-keyring-wkd-sync.timer"\n/' -i /usr/bin/mkarchiso
|
||||||
|
else
|
||||||
|
msg "mkarchiso is already patched!"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
prepare_profile(){
|
prepare_profile(){
|
||||||
profile=$1
|
profile=$1
|
||||||
|
|
||||||
@@ -148,6 +158,9 @@ run_build() {
|
|||||||
|
|
||||||
msg "Start [Build ISO]"
|
msg "Start [Build ISO]"
|
||||||
|
|
||||||
|
# insert removal of archlinux keyrings timer on the ISO before pack
|
||||||
|
modify_mkarchiso
|
||||||
|
|
||||||
[ -d "$outFolder/$_profile" ] || mkdir -p "$outFolder/$_profile"
|
[ -d "$outFolder/$_profile" ] || mkdir -p "$outFolder/$_profile"
|
||||||
cd ${work_dir}/archiso/
|
cd ${work_dir}/archiso/
|
||||||
sudo mkarchiso -v -w ${work_dir} -o "$outFolder/$_profile" ${work_dir}/archiso/
|
sudo mkarchiso -v -w ${work_dir} -o "$outFolder/$_profile" ${work_dir}/archiso/
|
||||||
|
|||||||
Reference in new issue
Block a user