Always update ucode even if not already installed
This commit is contained in:
parent
db06baeede
commit
0f27bd3b33
1 changed files with 3 additions and 6 deletions
3
arkdep
3
arkdep
|
@ -702,13 +702,10 @@ deploy () {
|
||||||
|
|
||||||
for ucode in $(ls $arkdep_dir/deployments/${data[0]}/rootfs/usr/lib/ | grep ucode); do
|
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 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
|
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) ||
|
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'
|
cleanup_and_quit 'Failed to copy microcode'
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue