Skip to content

Commit

Permalink
Set owner after restoring counters folder during warmboot (#13507)
Browse files Browse the repository at this point in the history
Why I did it
After warm reboot, show environment prints the following error:
failed to import plugin show.plugins.macsec: [Errno 13] Permission denied: '/tmp/cache/macsec'

How I did it
Set owner back to admin after restoring counters folder.

How to verify it
sudo warm-reboot, then ensure show environement does not print errors.

Signed-off-by: Oleksandr Kolomeiets <[email protected]>
  • Loading branch information
oleksandrx-kolomeiets authored Mar 27, 2023
1 parent d630b2f commit 4da51b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions files/image_config/warmboot-finalizer/finalize-warmboot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ function restore_counters_folder()
cache_counters_folder="/host/counters"
if [[ -d $cache_counters_folder ]]; then
mv $cache_counters_folder /tmp/cache
chown -R admin:admin /tmp/cache
fi
}

Expand Down

0 comments on commit 4da51b0

Please sign in to comment.