# efivar 도구를 사용하여 UEFI 환경 변수 관리

efivar 도구는 비휘발성 펌웨어 스토리지에 저장된 UEFI 환경 변수를 관리합니다. 이러한 변수를 사용하여 UEFI 펌웨어 및 해당 환경을 구성합니다.

efivar은 UEFI 펌웨어에 저장된 키-값 쌍입니다. 여기에는 부팅 구성, 시스템 상태 및 기타 필수 매개변수에 대한 설정이 저장됩니다. efivar는 부팅 항목과 펌웨어 설정을 관리하여, 시스템이 올바르게 부팅하고 구성을 유지 관리하도록 보장합니다.

UEFI 환경 변수를 조작하려면 다음 명령어를 사용하세요.

efivar [-n name] [-f file] [-p] [-w]
    Copy to clipboard

명령어 옵션:

-n name: Specify the name of the UEFI variable.
    -f file: Load or save variable contents from a file.
    -p: Print the value of the specified UEFI variable.
    -w: Write to the specified UEFI variable.
    Copy to clipboard

## OsIndications 변수 업데이트

OsIndications 변수를 업데이트하고 EFI 변수의 값을 확인하려면 다음을 수행합니다.

1. 특정 바이트 시퀀스 `04 00 00 00 00 00 00 00` 을 포함하는 `data.hex` 파일을 생성합니다.

echo -e -n "\x4\x0\x0\x0\x0\x0\x0\x0" > data.hex
        Copy to clipboard
2. `data.hex` 의 내용을 EFI 변수 `8be4df61-93ca-11d2-aa0d-00e098032b8c-OsIndications` 에 기록합니다.

efivar -n 8be4df61-93ca-11d2-aa0d-00e098032b8c-OsIndications -f data.hex -w
        Copy to clipboard
3. EFI 변수 `8be4df61-93ca-11d2-aa0d-00e098032b8c-OsIndications` 의 값을 확인하려면 다음 명령어를 실행합니다.

efivar -n 8be4df61-93ca-11d2-aa0d-00e098032b8c-OsIndications -p
        Copy to clipboard

    이전 명령어의 출력:

GUID: 8be4df61-93ca-11d2-aa0d-00e098032b8c
        Name: "OsIndications"
        Attributes:
              Non-Volatile
              Boot Service Access
              Runtime Service Access
        Value:
        00000000  04 00 00 00 00 00 00 00
        Copy to clipboard

자세한 내용은 [efivar 매뉴얼](https://man.freebsd.org/cgi/man.cgi?query=efivar&amp;sektion=8) 을 참조하세요.

Last Published: Dec 23, 2025

[Previous Topic
SD 카드에서 Linux 운영 체제 부팅](https://docs.qualcomm.com/bundle/publicresource/80-70020-27KO/topics/boot_linux_operating_system_from_sdcard.md) [Next Topic
사용자 지정 항목](https://docs.qualcomm.com/bundle/publicresource/80-70020-27KO/topics/user_customizations.md)