efivar | Tools and libraries to work with EFI variables
kandi X-RAY | efivar Summary
kandi X-RAY | efivar Summary
Tools and libraries to manipulate EFI variables.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of efivar
efivar Key Features
efivar Examples and Code Snippets
Community Discussions
Trending Discussions on efivar
QUESTION
As part of installation of linux, I would like to set the "console device properties"(example, console=ttyS0,115200n1) via the kernel cmdline for Intel based platform.
There is No VGA console, only serial consoles via COM interface. On these systems BIOS already has the required settings to interact using the appropriate serial port.
I see that EFI has variables ConIn, ConOut, ConErr which I am able to see from /sys/firmware/efi but unable to decode the contents of it.
Is it possible to identify which COM port is being used by the BIOS by examining the efi variables.
Example, of the EFI var on my box.
...ANSWER
Answered 2020-Jul-05 at 12:06In my case since I know that console port is a "Serial IOPORT", I could get the details now as follows. a. Get hold of the /sys/firmware/acpi/tables/SPC table. b. Read the Address offset 44-52. Actually one the last two bytes suffice.
Reference: a. https://docs.microsoft.com/en-us/windows-hardware/drivers/serports/serial-port-console-redirection-table states that
QUESTION
As Salam-o-Alikum, I have written an Ansible playbook for setting GRUB bootloader password on RedHat and Ubuntu, there are no error and i can see changes in Grub2.cfg on both locations. It's weird that when i reboot my both machines, Ubuntu machine asks for username and password but Redhat machine don't. I have seen 50+ tutorials procedure is the same and its pretty easy but i don't why its behaving like that. Any help would be greatly appreciated.
Here is what i've tried.
Hardening.yml
...ANSWER
Answered 2020-Jan-15 at 11:46grub-redhat.j2 has some typos.
Line 11: set supperusers="{{ grub_user }}"
Change to: set superusers="{{ grub_user }}"
Line 12: password_pbkdf2 {{ grub_user }} {{ grub_password_v2_passwd }}
Change to:password_pbkdf2 {{ grub_user }} {{ grub_password_v2_passwd }}
If you're going to use the same grub password on multiple machines, you might want to consider using ansible-vault encrypt_string to encrypt the raw password, then create an additional task which runs grub2-mkpasswd-pbkdf2 (part of grub2-tools-minimal) with the command module and pass it the vaulted variable. Registering the output of that task (e.g. as grub_password_v2_passwd) would result in every target that you run the playbook against receiving a unique hash even though the underlying password would be the same. The expect module works great for this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install efivar
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page