From 0f27bd3b33027421c8b4b6297cd0e1d9519f8551 Mon Sep 17 00:00:00 2001 From: Dennis ten Hoove Date: Wed, 28 Feb 2024 19:15:04 +0100 Subject: [PATCH] Always update ucode even if not already installed --- arkdep | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/arkdep b/arkdep index 43447c9..bf16069 100755 --- a/arkdep +++ b/arkdep @@ -702,12 +702,9 @@ deploy () { for ucode in $(ls $arkdep_dir/deployments/${data[0]}/rootfs/usr/lib/ | grep ucode); do # If CPU firmware present in both image and install - if [[ -f $(readlink -m $arkdep_boot/$ucode) ]] && [[ -f $arkdep_dir/deployments/${data[0]}/rootfs/usr/lib/$ucode ]]; then - # Check if they match, if not update - if ! cmp --silent $(readlink -m $arkdep_boot/$ucode) $arkdep_dir/deployments/${data[0]}/rootfs/usr/lib/$ucode; then - cp -v $(readlink -m $arkdep_dir/deployments/${data[0]}/rootfs/usr/lib/$ucode) $(readlink -m $arkdep_boot/$ucode) || - cleanup_and_quit 'Failed to copy microcode' - fi + if ! cmp --silent $(readlink -m $arkdep_boot/$ucode) $arkdep_dir/deployments/${data[0]}/rootfs/usr/lib/$ucode; then + cp -v $(readlink -m $arkdep_dir/deployments/${data[0]}/rootfs/usr/lib/$ucode) $(readlink -m $arkdep_boot/$ucode) || + cleanup_and_quit 'Failed to copy microcode' fi done