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
9
arkdep
9
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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue