Skip to content

Commit

Permalink
nitro-enclaves-allocator: Set local language to English
Browse files Browse the repository at this point in the history
The parsing logic from the nitro-enclaves-allocator script doesn't work
properly when a different language than English is set in the locale
configuration (e.g. /etc/locale.conf).

Set the language to English in the nitro-enclaves-allocator script to
fix this possible issue.

Signed-off-by: Andra Paraschiv <[email protected]>
  • Loading branch information
andraprs committed Dec 6, 2022
1 parent 69ec086 commit 65065d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bootstrap/nitro-enclaves-allocator
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
# Its purpose is to reserve the requested memory and CPUs (specified in
# /etc/nitro_enclaves/allocator.yaml).

# Set language to English. This way the parsing logic from the current script
# works properly when a different language is set in the locale configuration
# (e.g. /etc/locale.conf).
LANG=en_US.UTF-8

# The file which holds the CPU pool.
CPU_POOL_FILE="/sys/module/nitro_enclaves/parameters/ne_cpus"

Expand Down

0 comments on commit 65065d3

Please sign in to comment.