"Could not prepare Boot variable: Interrupted system call" with efibootmgr

So, EFI hates me.

Machine: Lenovo IdeaPad 320-15IAP

Manjaro version: latest kde iso

Issue: When I try to install manjaro and the grub installer tries to run

efibootmgr -c -d /dev/sda -p 1 -w -L Manjaro -l \EFI\Manjaro\grubx64.efi

I just get this:

Skipping unreadable variable "Boot0000": Interrupted system call
Skipping unreadable variable "Boot0001": Interrupted system call
Skipping unreadable variable "Boot0002": Interrupted system call
Skipping unreadable variable "Boot2001": Interrupted system call
Skipping unreadable variable "Boot2002": Interrupted system call
Skipping unreadable variable "Boot2003": Interrupted system call
Could not prepare Boot variable: Interrupted system call

I would like to dual boot with Windows, but that’s a bit besides the point.

I’ve disabled secure boot and all that jazz.

I have tried a fresh install (including deleting all the partitions including the EFI partition) multiple times, without Windows as well.

Now, I have had this problem in the past. But then, it used to work if I downgraded efibootmgr (to v15 iirc). This doesn’t work any more.

Ive also tried using rEFInd instead of GRUB. It just tells me essentially the same:

Notice: Backed up existing icons directory as icons-backup.
Existing refind.conf file found; copying sample file as refind.conf-sample
to avoid overwriting your customizations.

show_order(): Interrupted system call
show_order(): Interrupted system call
show_order(): Interrupted system call
Creating new NVRAM entry

ALERT: There were problems running the efibootmgr program! You may need to
rename the refind_x64.efi binary to the default name (EFI/BOOT/bootx64.efi
on x86-64 systems, EFI/BOOT/bootia32.efi on x86 systems, or
EFI/BOOT/bootaa64.efi on ARM64 systems) to have it run!

(and yes, I have tried the suggestion with renaming refind_x64.efi as well)

And I tried every version of efibootmgr from 0.12 to the latest (17) to no avail.

I know laptops like to be a bit weird sometimes, but at this point I’m out of ideas. Any help?

what are the output for

sudo efibootmgr -v

Hello @anon768 and welcome :wink:

Try to clear the nvram (reset the uefi)… you might need to recreate the entries…

@anon768 I’ve formatted the post for better readability. Please use </> button to format terminal output.

@stephane

output of efibootmgr -v:

Skipping unreadable variable "Boot0000": Interrupted system call
Skipping unreadable variable "Boot0001": Interrupted system call
Skipping unreadable variable "Boot0002": Interrupted system call
Skipping unreadable variable "Boot2001": Interrupted system call
Skipping unreadable variable "Boot2002": Interrupted system call
Skipping unreadable variable "Boot2003": Interrupted system call
show_order(): Interrupted system call

@megavolt

Try to clear the nvram (reset the uefi)… you might need to recreate the entries…

So, as far as I can tell, this generally happens via the EFI? As its par for the course for laptops, the settings in there aren’t exactly plentiful, and I haven’t found any option to do that in there. I have tried just resetting everything to the default variables as well as resetting the secure boot stuff, but I don’t think that did the trick (and the output of efibootmgr hasn’t changed, either). (and secure boot is disabled anyway)

Any pointers, are there any tools which might be able to accomplish this?

Could you first tell of what system we are talking about?

sudo inxi --full --admin --filter --width 80

What says this?

sudo efivar --list

Maybe consider to up- or downgrade the UEFI…

Could you first tell of what system we are talking about?

System:
  Kernel: 5.14.7-2-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.14-x86_64 
  root=UUID=4fe35259-778d-49e6-8502-f17d83cda44d rw "acpi_osi=!Windows 2012" 
  acpi=force acpi_enforce_resources=lax i915.enable_rc6=1 i915.enable_fbc=1 
  i915.lvds_downclock=1 i915.semaphores=1 quiet apparmor=1 security=apparmor 
  udev.log_priority=3 
  Console: tty pts/1 wm: kwin_x11 DM: SDDM Distro: Manjaro Linux 
  base: Arch Linux 
Machine:
  Type: Laptop System: LENOVO product: 80XR v: Lenovo ideapad 320-15IAP 
  serial: <filter> Chassis: type: 10 v: Lenovo ideapad 320-15IAP 
  serial: <filter> 
  Mobo: LENOVO model: LNVNB161216 v: SDK0J40709 WIN serial: <filter> 
  UEFI: LENOVO v: 5RCN36WW date: 08/06/2018 
Battery:
  ID-1: BAT0 charge: 19.9 Wh (100.0%) condition: 19.9/30.0 Wh (66.5%) 
  volts: 8.4 min: 7.5 model: SMP L16M2PB1 type: Li-poly serial: <filter> 
  status: Full 
CPU:
  Info: Quad Core model: Intel Pentium N4200 socket: U3E1 bits: 64 type: MCP 
  arch: Goldmont family: 6 model-id: 5C (92) stepping: 9 microcode: 44 cache: 
  L1: 56 KiB L2: 1024 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 8756 
  Speed: 796 MHz min/max: 800/2500 MHz base/boost: 1100/1100 volts: 0.9 V 
  ext-clock: 100 MHz Core speeds (MHz): 1: 796 2: 820 3: 2084 4: 1226 
  Vulnerabilities: Type: itlb_multihit status: Not affected 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  Type: spec_store_bypass status: Not affected 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: disabled, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel Celeron N3350/Pentium N4200/Atom E3900 Series Integrated 
  Graphics 
  vendor: Lenovo driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:5a84 
  class-ID: 0300 
  Device-2: IMC Networks EasyCamera type: USB driver: uvcvideo bus-ID: 1-7:2 
  chip-ID: 13d3:5a02 class-ID: 0e02 serial: <filter> 
  Display: server: X.Org 1.20.13 compositor: kwin_x11 driver: 
  loaded: modesetting alternate: fbdev,vesa display-ID: :0 screens: 1 
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") 
  s-diag: 582mm (22.9") 
  Monitor-1: eDP-1 res: 1920x1080 hz: 60 dpi: 142 size: 344x193mm (13.5x7.6") 
  diag: 394mm (15.5") 
  OpenGL: renderer: Mesa Intel HD Graphics 505 (APL 3) v: 4.6 Mesa 21.2.2 
  direct render: Yes 
Audio:
  Device-1: Intel Celeron N3350/Pentium N4200/Atom E3900 Series Audio Cluster 
  vendor: Lenovo driver: snd_hda_intel v: kernel 
  alternate: snd_soc_skl,snd_sof_pci_intel_apl bus-ID: 00:0e.0 
  chip-ID: 8086:5a98 class-ID: 0403 
  Sound Server-1: ALSA v: k5.14.7-2-MANJARO running: yes 
  Sound Server-2: JACK v: 1.9.19 running: no 
  Sound Server-3: PulseAudio v: 15.0 running: yes 
  Sound Server-4: PipeWire v: 0.3.37 running: yes 
Network:
  Device-1: Realtek RTL810xE PCI Express Fast Ethernet vendor: Lenovo 
  driver: r8169 v: kernel port: 2000 bus-ID: 02:00.0 chip-ID: 10ec:8136 
  class-ID: 0200 
  IF: enp2s0 state: down mac: <filter> 
  Device-2: Realtek RTL8821AE 802.11ac PCIe Wireless Network Adapter 
  vendor: Lenovo driver: rtl8821ae v: kernel port: 1000 bus-ID: 03:00.0 
  chip-ID: 10ec:8821 class-ID: 0280 
  IF: wlp3s0 state: up mac: <filter> 
Bluetooth:
  Device-1: Realtek RTL8821A Bluetooth type: USB driver: btusb v: 0.8 
  bus-ID: 1-8:3 chip-ID: 0bda:0821 class-ID: e001 serial: <filter> 
  Report: rfkill ID: hci0 rfk-id: 3 state: down bt-service: enabled,running 
  rfk-block: hardware: no software: yes address: see --recommends 
Drives:
  Local Storage: total: 1.14 TiB used: 11.84 GiB (1.0%) 
  ID-1: /dev/sda maj-min: 8:0 vendor: Ramaxel model: RTNRB256RFM4KWDL 
  size: 238.47 GiB block-size: physical: 512 B logical: 512 B sata: 3.0 
  speed: 6.0 Gb/s type: SSD serial: <filter> rev: 1 temp: 24 C scheme: GPT 
  SMART: yes state: enabled health: PASSED on: 291d 16h cycles: 3587 
  read: 981 KiB written: 1.6 MiB 
  ID-2: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST1000LM048-2E7172 
  family: Barracuda 2.5 5400 size: 931.51 GiB block-size: physical: 4096 B 
  logical: 512 B sata: 3.1 speed: 6.0 Gb/s type: HDD rpm: 5400 
  serial: <filter> rev: SDM1 temp: 23 C scheme: MBR 
  SMART: yes state: enabled health: PASSED on: 325d 23h cycles: 3796 
  read: 3.82 TiB written: 5.34 TiB Pre-Fail: attribute: Spin_Retry_Count 
  value: 100 worst: 100 threshold: 97 
Partition:
  ID-1: / raw-size: 30 GiB size: 29.36 GiB (97.87%) used: 9.23 GiB (31.4%) 
  fs: ext4 block-size: 4096 B dev: /dev/sda7 maj-min: 8:7 
  ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%) used: 8.6 MiB (8.9%) 
  fs: vfat block-size: 512 B dev: /dev/sda1 maj-min: 8:1 
  ID-3: /home raw-size: 20 GiB size: 19.56 GiB (97.80%) used: 2.61 GiB (13.3%) 
  fs: ext4 block-size: 4096 B dev: /dev/sda8 maj-min: 8:8 
Swap:
  Alert: No swap data was found. 
Sensors:
  System Temperatures: cpu: 32.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 184 Uptime: 11h 22m wakeups: 1 Memory: 7.6 GiB 
  used: 2.46 GiB (32.4%) Init: systemd v: 249 tool: systemctl Compilers: 
  gcc: 11.1.0 Packages: pacman: 1222 lib: 327 flatpak: 0 Shell: Bash (sudo) 
  v: 5.1.8 running-in: konsole inxi: 3.3.06

sudo efivar --list

8be4df61-93ca-11d2-aa0d-00e098032b8c-dbxDefault
8be4df61-93ca-11d2-aa0d-00e098032b8c-dbDefault
8be4df61-93ca-11d2-aa0d-00e098032b8c-KEKDefault
8be4df61-93ca-11d2-aa0d-00e098032b8c-PKDefault
8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot0005
8be4df61-93ca-11d2-aa0d-00e098032b8c-OsIndications
8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot0004
77fa9abd-0359-4d32-bd60-28f4e78f784b-Kernel_DriverSiStatus
77fa9abd-0359-4d32-bd60-28f4e78f784b-Kernel_ATPSiStatus
77fa9abd-0359-4d32-bd60-28f4e78f784b-Kernel_WinSiStatus
77fa9abd-0359-4d32-bd60-28f4e78f784b-Kernel_SkuSiStatus
77fa9abd-0359-4d32-bd60-28f4e78f784b-Kernel_RvkSiStatus
77fa9abd-0359-4d32-bd60-28f4e78f784b-Kernel_SiStatus
a56074db-65fe-45f7-bd21-2d2bdd8e9652-LegacyDevOrder
bbd1fd65-5668-4fb2-8999-231095717a07-VBiosInfo
eaec226f-c9a3-477a-a826-ddc716cdc0e3-UnlockIDCopy
77fa9abd-0359-4d32-bd60-28f4e78f784b-CurrentPolicy
6acce65d-da35-4b39-b64b-5ed927a7dc7e-TouchPadCount
41be3a6f-4f29-c80f-1eb6-7c8e97e629d8-LcfcI2cTouchPadId
8be4df61-93ca-11d2-aa0d-00e098032b8c-ConOut
eaec226f-c9a3-477a-a826-ddc716cdc0e3-OfflineUniqueIDEKPubCRC
eaec226f-c9a3-477a-a826-ddc716cdc0e3-OfflineUniqueIDEKPub
8be4df61-93ca-11d2-aa0d-00e098032b8c-BootOrder
0d9a1427-e02a-437d-926b-aa521fd722ba-PciLanInfo
9669e125-fedf-43f7-891a-5af85efcdefc-L05OkrData
59d1c24f-50f1-401a-b101-f33e0daed443-TargetHddDevPath
59d1c24f-50f1-401a-b101-f33e0daed443-PhysicalBootOrder
8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot0000
8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot2003
8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot2002
8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot2001
8be4df61-93ca-11d2-aa0d-00e098032b8c-ConIn
04b37fe8-f6ae-480b-bdd5-37d98c5e89aa-VarErrorFlag
74d69abb-57c3-4d7f-bfb4-26a2549610f1-L05ConfigVar
a04a27f4-df00-4d42-b552-39511302113d-Custom
59d1c24f-50f1-401a-b101-f33e0daed443-CustomPlatformLang
6acce65d-da35-4b39-b64b-5ed927a7dc7e-LfcPowerOnCount
8be4df61-93ca-11d2-aa0d-00e098032b8c-Timeout
59d1c24f-50f1-401a-b101-f33e0daed443-CheckFirstBoot
382af2bb-ffff-abcd-aaee-cce099338877-SecureFlashInfo
8be4df61-93ca-11d2-aa0d-00e098032b8c-PlatformLang
8be4df61-93ca-11d2-aa0d-00e098032b8c-Lang
eb704011-1402-11d3-8e77-00a0c969723b-MTC
aeb9c5c1-94f1-4d02-bfd9-4602db2d3c54-Tcg2PhysicalPresence
aeb9c5c1-94f1-4d02-bfd9-4602db2d3c54-Tcg2PhysicalPresenceFlags
e20939be-32d4-41be-a150-897f85d49829-MemoryOverwriteRequestControl
59d1c24f-50f1-401a-b101-f33e0daed443-CustomSecurity
59d1c24f-50f1-401a-b101-f33e0daed443-RestoreFactoryDefault
59d1c24f-50f1-401a-b101-f33e0daed443-SecureBootEnforce
d719b2cb-3d3a-4596-a3bc-dad00e67656f-dbx
59d1c24f-50f1-401a-b101-f33e0daed443-certdb
59d1c24f-50f1-401a-b101-f33e0daed443-AdministerSecureBoot
8be4df61-93ca-11d2-aa0d-00e098032b8c-DeployedMode
8be4df61-93ca-11d2-aa0d-00e098032b8c-AuditMode
8be4df61-93ca-11d2-aa0d-00e098032b8c-SecureBoot
8be4df61-93ca-11d2-aa0d-00e098032b8c-SetupMode
aaf32c78-947b-439a-a180-2e144ec37792-AuthVarKeyDatabase
bb983ccf-151d-40e1-a07b-4a17be168292-MemoryOverwriteRequestControlLock
a04a27f4-df00-4d42-b552-39511302113d-Setup
5bce4c83-6a97-444b-63b4-672c014742ff-IrsiInfo
9cfa1ece-4488-49be-9a4b-e9b511826577-SSRAMBASE
146b234d-4052-4e07-b326-11220f8e1fe8-lBoot0004
146b234d-4052-4e07-b326-11220f8e1fe8-lBoot0000
8be4df61-93ca-11d2-aa0d-00e098032b8c-BootCurrent
39473de5-df3b-49a1-9fa6-41b35b36fa39-DynamicBar
39473de5-df3b-49a1-9fa6-41b35b36fa39-FixedBar
8be4df61-93ca-11d2-aa0d-00e098032b8c-ErrOutDev
8be4df61-93ca-11d2-aa0d-00e098032b8c-ConInDev
59d1c24f-50f1-401a-b101-f33e0daed443-ConOutCandidateDev
8be4df61-93ca-11d2-aa0d-00e098032b8c-ConOutDev
59d1c24f-50f1-401a-b101-f33e0daed443-ConInCandidateDev
6acce65d-da35-4b39-b64b-5ed927a7dc7e-LvarSmiReadyFlag
19ad5244-fd6b-4e5c-826a-414646d6da6a-PlatformInfo
8be4df61-93ca-11d2-aa0d-00e098032b8c-PlatformLangCodes
8be4df61-93ca-11d2-aa0d-00e098032b8c-LangCodes
8be4df61-93ca-11d2-aa0d-00e098032b8c-VendorKeys
8be4df61-93ca-11d2-aa0d-00e098032b8c-SignatureSupport
8be4df61-93ca-11d2-aa0d-00e098032b8c-OsIndicationsSupported

Maybe consider to up- or downgrade the UEFI…

I’m using the latest version. (5RCN36WW)

@anon768 Could you run efibootmgr with strace?

strace -f -s 1024 efibootmgr -v

Yes, I can. With the caveat that this won’t be particularly useful.

Because… the issue seems to be fixed now!

I have no idea why though. Neither efibootmgr, nor any obvious dependencies have seen any update as far as I can tell. I haven’t fiddled with anything, either (aside from keeping Manjaro up to date).

In any case, efibootmgr works just fine now. Thanks to everybody who offered their help!