Update-grub error during garuda-update

I performed a garuda-update today and it updated several packages, including the kernel, so the grub-mkconfig was called near the end but received an error:

(18/26) GRUB update after transactions...
/usr/bin/grub-mkconfig: 67: /etc/default/grub: source: not found
error: command failed to execute correctly

I've tried running sudo update-grub and receive the same error.
I have not rebooted as I'm worried that I don't have a good grub bootloader image due to the failures above.

Any thoughts on this error and how to correct?

garuda-inxi output:

System:
Kernel: 6.2.8-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=665229aa-37b6-4878-9c5e-61281c5c5f87 rw rootflags=subvol=@
quiet
cryptdevice=UUID=2af5f77a-f6e7-4d8b-9936-4506451a7031:luks-2af5f77a-f6e7-4d8b-9936-4506451a7031
root=/dev/mapper/luks-2af5f77a-f6e7-4d8b-9936-4506451a7031 quiet splash
rd.udev.log_priority=3 vt.global_cursor_default=0
resume=/dev/mapper/luks-88c91599-3c88-4e63-823a-9ed064b2f860 loglevel=3
Desktop: KDE Plasma v: 5.27.3 tk: Qt v: 5.15.8 wm: kwin_x11 vt: 1 dm: SDDM
Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
Mobo: ASUSTeK model: TUF GAMING B550-PLUS (WI-FI) v: Rev X.0x
serial: <superuser required> UEFI: American Megatrends v: 2806
date: 10/27/2022
CPU:
Info: model: AMD Ryzen 7 5800X bits: 64 type: MT MCP arch: Zen 3+ gen: 4
level: v3 note: check built: 2022 process: TSMC n6 (7nm) family: 0x19 (25)
model-id: 0x21 (33) stepping: 0 microcode: 0xA201016
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB
L3: 32 MiB desc: 1x32 MiB
Speed (MHz): avg: 3668 high: 4556 min/max: 2200/4850 boost: enabled
scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 3646 2: 4531
3: 3644 4: 3639 5: 3649 6: 3647 7: 3630 8: 3649 9: 2200 10: 4556 11: 3641
12: 3645 13: 3647 14: 3651 15: 3679 16: 3649 bogomips: 121599
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities: <filter>
Graphics:
Device-1: AMD Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] vendor: Tul /
PowerColor Red Devil driver: amdgpu v: kernel arch: RDNA-2 code: Navi-2x
process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 4 speed: 16 GT/s
lanes: 16 ports: active: DP-1,DP-2 empty: DP-3,HDMI-A-1 bus-ID: 0a:00.0
chip-ID: 1002:73bf class-ID: 0300
Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.1
compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting,radeon
alternate: fbdev,vesa dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 6000x1440 s-dpi: 96 s-size: 1587x381mm (62.48x15.00")
s-diag: 1632mm (64.26")
Monitor-1: DP-1 mapped: DisplayPort-0 pos: primary,right
model: LG (GoldStar) 34GK950F serial: <filter> built: 2020 res: 3440x1440
hz: 144 dpi: 109 gamma: 1.2 size: 800x335mm (31.5x13.19")
diag: 867mm (34.1") modes: max: 3440x1440 min: 640x480
Monitor-2: DP-2 mapped: DisplayPort-1 pos: left model: Acer XF270HU
serial: <filter> built: 2018 res: 2560x1440 dpi: 109 gamma: 1.2
size: 597x336mm (23.5x13.23") diag: 685mm (27") ratio: 16:9 modes:
max: 2560x1440 min: 720x400
API: OpenGL v: 4.6 Mesa 23.0.1 renderer: AMD Radeon RX 6900 XT (navi21
LLVM 15.0.7 DRM 3.49 6.2.8-zen1-1-zen) direct-render: Yes
Audio:
Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel pcie:
gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 0a:00.1 chip-ID: 1002:ab28
class-ID: 0403
Device-2: AMD Starship/Matisse HD Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 0c:00.4 chip-ID: 1022:1487 class-ID: 0403
API: ALSA v: k6.2.8-zen1-1-zen status: kernel-api with: aoss
type: oss-emulator tools: N/A
Server-1: PipeWire v: 0.3.67 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: gen: 2
speed: 5 GT/s lanes: 1 bus-ID: 06:00.0 chip-ID: 8086:2723 class-ID: 0280
IF: wlp6s0 state: down mac: <filter>
Device-2: Realtek RTL8125 2.5GbE vendor: ASUSTeK driver: r8169 v: kernel
pcie: gen: 2 speed: 5 GT/s lanes: 1 port: f000 bus-ID: 07:00.0
chip-ID: 10ec:8125 class-ID: 0200
IF: enp7s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
Device-1: Cambridge Silicon Radio Bluetooth Dongle (HCI mode) type: USB
driver: btusb v: 0.8 bus-ID: 1-4:2 chip-ID: 0a12:0001 class-ID: e001
Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
Local Storage: total: 9.55 TiB used: 2.58 TiB (27.0%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Seagate model: FireCuda 520 SSD
ZP2000GM30002 size: 1.82 TiB block-size: physical: 512 B logical: 512 B
speed: 63.2 Gb/s lanes: 4 type: SSD serial: <filter> rev: STNSC014
temp: 48.9 C scheme: GPT
ID-2: /dev/nvme1n1 maj-min: 259:4 vendor: Samsung model: SSD 960 EVO 1TB
size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 type: SSD serial: <filter> rev: 3B7QCXE7 temp: 38.9 C scheme: GPT
ID-3: /dev/sda maj-min: 8:0 vendor: Western Digital
model: WD10EZEX-08WN4A0 size: 931.51 GiB block-size: physical: 4096 B
logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter>
rev: 1A02 scheme: GPT
ID-4: /dev/sdb maj-min: 8:16 vendor: Samsung model: SSD 850 EVO 500GB
size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: <filter> rev: 1B6Q scheme: GPT
ID-5: /dev/sdc maj-min: 8:32 type: USB vendor: Western Digital
model: WD60EZAZ-00ZGHB0 size: 5.46 TiB block-size: physical: 4096 B
logical: 512 B type: HDD rpm: 5400 serial: <filter> rev: 1021 scheme: GPT
Partition:
ID-1: / raw-size: 1.79 TiB size: 1.79 TiB (100.00%) used: 774.53 GiB (42.4%)
fs: btrfs dev: /dev/dm-1 maj-min: 254:1
mapped: luks-2af5f77a-f6e7-4d8b-9936-4506451a7031
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 752 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 1.79 TiB size: 1.79 TiB (100.00%)
used: 774.53 GiB (42.4%) fs: btrfs dev: /dev/dm-1 maj-min: 254:1
mapped: luks-2af5f77a-f6e7-4d8b-9936-4506451a7031
ID-4: /var/log raw-size: 1.79 TiB size: 1.79 TiB (100.00%)
used: 774.53 GiB (42.4%) fs: btrfs dev: /dev/dm-1 maj-min: 254:1
mapped: luks-2af5f77a-f6e7-4d8b-9936-4506451a7031
ID-5: /var/tmp raw-size: 1.79 TiB size: 1.79 TiB (100.00%)
used: 774.53 GiB (42.4%) fs: btrfs dev: /dev/dm-1 maj-min: 254:1
mapped: luks-2af5f77a-f6e7-4d8b-9936-4506451a7031
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 31.26 GiB used: 1.83 GiB (5.8%)
priority: 100 dev: /dev/zram0
ID-2: swap-2 type: partition size: 34.38 GiB used: 0 KiB (0.0%)
priority: -2 dev: /dev/dm-2 maj-min: 254:2
mapped: luks-88c91599-3c88-4e63-823a-9ed064b2f860
Sensors:
System Temperatures: cpu: 63.2 C mobo: N/A gpu: amdgpu temp: 57.0 C
mem: 58.0 C
Fan Speeds (RPM): N/A gpu: amdgpu fan: 1216
Info:
Processes: 428 Uptime: 3d 20h 49m wakeups: 0 Memory: 31.26 GiB
used: 6.42 GiB (20.5%) Init: systemd v: 253 default: graphical
tool: systemctl Compilers: gcc: 12.2.1 clang: 15.0.7 Packages: pm: pacman
pkgs: 1664 libs: 492 tools: octopi,paru,yay Shell: fish v: 3.6.1
running-in: yakuake inxi: 3.3.26
Garuda (2.6.16-1):
System install date:     2022-12-30
Last full system update: 2023-04-04 ↻
Is partially upgraded:   No
Relevant software:       snapper NetworkManager mkinitcpio
Windows dual boot:       No/Undetected
Failed units:

Check if you have some snapshots*, check if you have a USB live ISO from Garuda Linux.
Can you please post the full update log?
*if, you can boot from there if something failed after normal boot.

Also, to be secure, backup your needed data.

The full update log is:

:: Synchronizing package databases...
garuda is up to date
core                                  154.2 KiB   605 KiB/s 00:00 [------------------------------------] 100%
extra                                1746.2 KiB  4.30 MiB/s 00:00 [------------------------------------] 100%
community                               7.2 MiB  13.5 MiB/s 00:01 [------------------------------------] 100%
multilib                              161.3 KiB   620 KiB/s 00:00 [------------------------------------] 100%
chaotic-aur                             2.4 MiB  6.91 MiB/s 00:00 [------------------------------------] 100%

--> Refreshing mirrorlists using rate-mirrors, please be patient..🍵
:: Synchronizing package databases...
garuda downloading...
core downloading...
extra downloading...
community downloading...
multilib downloading...
chaotic-aur downloading...
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (53) adobe-source-code-pro-fonts-2.040u+1.060i+1.024vf-1  beautyline-1:20230402-1  corectrl-1.3.5-1
coreutils-9.2-3  downgrade-11.3.0-1  dxvk-mingw-git-2.1.r52.gf212cc8f-1  faudio-23.04-1
foomatic-db-3:20230402-1  foomatic-db-nonfree-3:20230402-1
foomatic-db-nonfree-ppds-3:20230402-1  foomatic-db-ppds-3:20230402-1  fuse-common-3.14.1-1
fuse3-3.14.1-1  gettext-0.21.1-5  lib32-libva-mesa-driver-23.0.1-2
lib32-mangohud-0.6.8+140+g1b3f8b2-1  lib32-mesa-23.0.1-2  lib32-mesa-vdpau-23.0.1-2
lib32-vulkan-intel-23.0.1-2  lib32-vulkan-mesa-layers-23.0.1-2  lib32-vulkan-radeon-23.0.1-2
libnghttp2-1.52.0-2  libupnp-1.14.16-1  libva-mesa-driver-23.0.1-2  libvips-8.14.2-1
linux-zen-6.2.9.zen1-1  linux-zen-headers-6.2.9.zen1-1  mangoapp-0.6.8+140+g1b3f8b2-1
mangohud-0.6.8+140+g1b3f8b2-1  mangohud-common-0.6.8+140+g1b3f8b2-1  mesa-23.0.1-2
mesa-vdpau-23.0.1-2  mkinitcpio-systemd-tool-37-3  ndctl-76.1-1  noto-fonts-20230401-1
pacman-contrib-1.9.0-1  python-pyopenssl-23.1.1-1  rpcs3-git-0.0.27.14840.842edbcbe7-1
signal-desktop-6.12.0-1  sweet-theme-full-git-r311.8a5d5a7-1  systemd-253.2-2
systemd-libs-253.2-2  systemd-sysvcompat-253.2-2  texinfo-7.0.3-1  ufw-0.36.1-3
vulkan-intel-23.0.1-2  vulkan-mesa-layers-23.0.1-2  vulkan-radeon-23.0.1-2
vulkan-swrast-23.0.1-2  wine-8.5-1  xfsprogs-6.2.0-1  yay-12.0.2-1  yuzu-mainline-bin-0.1389-1

Total Download Size:    656.09 MiB
Total Installed Size:  2064.41 MiB
Net Upgrade Size:       -17.30 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
yuzu-mainline-bin-0.1389-1-x86_64      75.0 MiB  27.2 MiB/s 00:03 [------------------------------------] 100%
foomatic-db-ppds-3:20230402-1-any      48.1 MiB  17.2 MiB/s 00:03 [------------------------------------] 100%
linux-zen-headers-6.2.9.zen1-1-x...    30.1 MiB  23.0 MiB/s 00:01 [------------------------------------] 100%
rpcs3-git-0.0.27.14840.842edbcbe...    23.8 MiB  32.2 MiB/s 00:01 [------------------------------------] 100%
noto-fonts-20230401-1-any              26.9 MiB  13.5 MiB/s 00:02 [------------------------------------] 100%
mesa-23.0.1-2-x86_64                   14.7 MiB  12.9 MiB/s 00:01 [------------------------------------] 100%
lib32-mesa-23.0.1-2-x86_64             12.8 MiB  11.6 MiB/s 00:01 [------------------------------------] 100%
wine-8.5-1-x86_64                      68.0 MiB  10.8 MiB/s 00:06 [------------------------------------] 100%
sweet-theme-full-git-r311.8a5d5a...     7.7 MiB  23.5 MiB/s 00:00 [------------------------------------] 100%
dxvk-mingw-git-2.1.r52.gf212cc8f...     7.5 MiB  14.0 MiB/s 00:01 [------------------------------------] 100%
systemd-253.2-2-x86_64                  7.2 MiB  14.3 MiB/s 00:01 [------------------------------------] 100%
beautyline-1:20230402-1-any             4.2 MiB  17.5 MiB/s 00:00 [------------------------------------] 100%
vulkan-intel-23.0.1-2-x86_64            3.8 MiB  13.2 MiB/s 00:00 [------------------------------------] 100%
lib32-vulkan-intel-23.0.1-2-x86_64      3.7 MiB  15.2 MiB/s 00:00 [------------------------------------] 100%
yay-12.0.2-1-x86_64                     3.6 MiB  15.9 MiB/s 00:00 [------------------------------------] 100%
libva-mesa-driver-23.0.1-2-x86_64       3.5 MiB  11.0 MiB/s 00:00 [------------------------------------] 100%
lib32-mesa-vdpau-23.0.1-2-x86_64        3.5 MiB  10.9 MiB/s 00:00 [------------------------------------] 100%
mesa-vdpau-23.0.1-2-x86_64              3.4 MiB  13.1 MiB/s 00:00 [------------------------------------] 100%
lib32-libva-mesa-driver-23.0.1-2...     3.4 MiB  13.6 MiB/s 00:00 [------------------------------------] 100%
coreutils-9.2-3-x86_64                  2.7 MiB  10.7 MiB/s 00:00 [------------------------------------] 100%
lib32-vulkan-radeon-23.0.1-2-x86_64     2.2 MiB  6.27 MiB/s 00:00 [------------------------------------] 100%
vulkan-radeon-23.0.1-2-x86_64           2.2 MiB  7.27 MiB/s 00:00 [------------------------------------] 100%
gettext-0.21.1-5-x86_64              1825.9 KiB  8.70 MiB/s 00:00 [------------------------------------] 100%
libvips-8.14.2-1-x86_64              1817.6 KiB  8.62 MiB/s 00:00 [------------------------------------] 100%
vulkan-swrast-23.0.1-2-x86_64        1724.9 KiB  7.76 MiB/s 00:00 [------------------------------------] 100%
texinfo-7.0.3-1-x86_64               1609.9 KiB  8.23 MiB/s 00:00 [------------------------------------] 100%
xfsprogs-6.2.0-1-x86_64              1031.0 KiB  10.4 MiB/s 00:00 [------------------------------------] 100%
systemd-libs-253.2-2-x86_64          1017.0 KiB  7.88 MiB/s 00:00 [------------------------------------] 100%
adobe-source-code-pro-fonts-2.04...   934.3 KiB  6.04 MiB/s 00:00 [------------------------------------] 100%
foomatic-db-3:20230402-1-any          879.4 KiB  6.93 MiB/s 00:00 [------------------------------------] 100%
corectrl-1.3.5-1-x86_64               855.6 KiB  12.1 MiB/s 00:00 [------------------------------------] 100%
mangohud-0.6.8+140+g1b3f8b2-1-x86_64  715.8 KiB  4.96 MiB/s 00:00 [------------------------------------] 100%
lib32-mangohud-0.6.8+140+g1b3f8b...   768.7 KiB  5.00 MiB/s 00:00 [------------------------------------] 100%
ndctl-76.1-1-x86_64                   363.4 KiB  6.82 MiB/s 00:00 [------------------------------------] 100%
lib32-vulkan-mesa-layers-23.0.1-...   271.7 KiB  4.35 MiB/s 00:00 [------------------------------------] 100%
libupnp-1.14.16-1-x86_64              231.4 KiB  5.38 MiB/s 00:00 [------------------------------------] 100%
vulkan-mesa-layers-23.0.1-2-x86_64    262.1 KiB  3.46 MiB/s 00:00 [------------------------------------] 100%
signal-desktop-6.12.0-1-x86_64        104.3 MiB  11.0 MiB/s 00:09 [------------------------------------] 100%
mangoapp-0.6.8+140+g1b3f8b2-1-x86_64  676.4 KiB  1313 KiB/s 00:01 [------------------------------------] 100%
ufw-0.36.1-3-any                      183.1 KiB  4.06 MiB/s 00:00 [------------------------------------] 100%
foomatic-db-nonfree-ppds-3:20230...   159.8 KiB  4.22 MiB/s 00:00 [------------------------------------] 100%
faudio-23.04-1-x86_64                 125.5 KiB  3.50 MiB/s 00:00 [------------------------------------] 100%
fuse3-3.14.1-1-x86_64                 124.1 KiB  4.66 MiB/s 00:00 [------------------------------------] 100%
python-pyopenssl-23.1.1-1-any          90.4 KiB  2.76 MiB/s 00:00 [------------------------------------] 100%
pacman-contrib-1.9.0-1-x86_64          48.5 KiB  1515 KiB/s 00:00 [------------------------------------] 100%
downgrade-11.3.0-1-any                 27.3 KiB   329 KiB/s 00:00 [------------------------------------] 100%
libnghttp2-1.52.0-2-x86_64             95.2 KiB   370 KiB/s 00:00 [------------------------------------] 100%
mangohud-common-0.6.8+140+g1b3f8...    16.7 KiB   186 KiB/s 00:00 [------------------------------------] 100%
mkinitcpio-systemd-tool-37-3-any       21.3 KiB  71.7 KiB/s 00:00 [------------------------------------] 100%
foomatic-db-nonfree-3:20230402-1-any   16.3 KiB   239 KiB/s 00:00 [------------------------------------] 100%
systemd-sysvcompat-253.2-2-x86_64       5.9 KiB   257 KiB/s 00:00 [------------------------------------] 100%
fuse-common-3.14.1-1-x86_64             2.6 KiB   105 KiB/s 00:00 [------------------------------------] 100%
linux-zen-6.2.9.zen1-1-x86_64         178.0 MiB  16.0 MiB/s 00:11 [------------------------------------] 100%
Total (53/53)                         656.1 MiB  58.8 MiB/s 00:11 [------------------------------------] 100%
(53/53) checking keys in keyring                                   [------------------------------------] 100%
(53/53) checking package integrity                                 [------------------------------------] 100%
(53/53) loading package files                                      [------------------------------------] 100%
(53/53) checking for file conflicts                                [------------------------------------] 100%
(53/53) checking available disk space                              [------------------------------------] 100%
:: Running pre-transaction hooks...
(1/4) Performing snapper pre snapshots for the following configurations...
==> root: 1819
(2/4) Saving Linux kernel modules...
(3/4) Removing linux initcpios...
(4/4) Remove DKMS modules
==> dkms remove --no-depmod hid-xpadneo/v0.9.5 -k 6.2.8-zen1-1-zen
==> dkms remove --no-depmod vboxhost/7.0.6_OSE -k 6.2.8-zen1-1-zen
==> depmod 6.2.8-zen1-1-zen
:: Processing package changes...
( 1/53) upgrading adobe-source-code-pro-fonts                      [------------------------------------] 100%
( 2/53) upgrading beautyline                                       [------------------------------------] 100%
( 3/53) upgrading systemd-libs                                     [------------------------------------] 100%
( 4/53) upgrading libnghttp2                                       [------------------------------------] 100%
( 5/53) upgrading coreutils                                        [------------------------------------] 100%
( 6/53) upgrading systemd                                          [------------------------------------] 100%
( 7/53) upgrading mesa                                             [------------------------------------] 100%
( 8/53) upgrading corectrl                                         [------------------------------------] 100%
( 9/53) upgrading gettext                                          [------------------------------------] 100%
(10/53) upgrading pacman-contrib                                   [------------------------------------] 100%
(11/53) upgrading downgrade                                        [------------------------------------] 100%
(12/53) upgrading wine                                             [------------------------------------] 100%
(13/53) upgrading dxvk-mingw-git                                   [------------------------------------] 100%
(14/53) upgrading faudio                                           [------------------------------------] 100%
(15/53) upgrading foomatic-db                                      [------------------------------------] 100%
(16/53) upgrading foomatic-db-nonfree                              [------------------------------------] 100%
(17/53) upgrading foomatic-db-nonfree-ppds                         [------------------------------------] 100%
(18/53) upgrading foomatic-db-ppds                                 [------------------------------------] 100%
(19/53) upgrading fuse-common                                      [------------------------------------] 100%
(20/53) upgrading fuse3                                            [------------------------------------] 100%
(21/53) upgrading lib32-libva-mesa-driver                          [------------------------------------] 100%
(22/53) upgrading mangohud-common                                  [------------------------------------] 100%
(23/53) upgrading lib32-mangohud                                   [------------------------------------] 100%
(24/53) upgrading lib32-mesa                                       [------------------------------------] 100%
(25/53) upgrading lib32-mesa-vdpau                                 [------------------------------------] 100%
(26/53) upgrading lib32-vulkan-intel                               [------------------------------------] 100%
(27/53) upgrading vulkan-mesa-layers                               [------------------------------------] 100%
(28/53) upgrading lib32-vulkan-mesa-layers                         [------------------------------------] 100%
(29/53) upgrading vulkan-radeon                                    [------------------------------------] 100%
(30/53) upgrading lib32-vulkan-radeon                              [------------------------------------] 100%
(31/53) upgrading libupnp                                          [------------------------------------] 100%
(32/53) upgrading libva-mesa-driver                                [------------------------------------] 100%
(33/53) upgrading libvips                                          [------------------------------------] 100%
(34/53) upgrading linux-zen                                        [------------------------------------] 100%
(35/53) upgrading linux-zen-headers                                [------------------------------------] 100%
(36/53) upgrading mangohud                                         [------------------------------------] 100%
(37/53) upgrading mangoapp                                         [------------------------------------] 100%
(38/53) upgrading mesa-vdpau                                       [------------------------------------] 100%
(39/53) upgrading mkinitcpio-systemd-tool                          [------------------------------------] 100%
(40/53) upgrading ndctl                                            [------------------------------------] 100%
(41/53) upgrading noto-fonts                                       [------------------------------------] 100%
(42/53) upgrading python-pyopenssl                                 [------------------------------------] 100%
(43/53) upgrading rpcs3-git                                        [------------------------------------] 100%
(44/53) upgrading signal-desktop                                   [------------------------------------] 100%
(45/53) upgrading sweet-theme-full-git                             [------------------------------------] 100%
(46/53) upgrading systemd-sysvcompat                               [------------------------------------] 100%
(47/53) upgrading texinfo                                          [------------------------------------] 100%
New optional dependencies for texinfo
perl-archive-zip: EPUB file output via texi2any
(48/53) upgrading ufw                                              [------------------------------------] 100%
(49/53) upgrading vulkan-intel                                     [------------------------------------] 100%
(50/53) upgrading vulkan-swrast                                    [------------------------------------] 100%
(51/53) upgrading xfsprogs                                         [------------------------------------] 100%
(52/53) upgrading yay                                              [------------------------------------] 100%
(53/53) upgrading yuzu-mainline-bin                                [------------------------------------] 100%
:: Running post-transaction hooks...
( 1/26) Restoring Linux kernel modules...
+ uname -r
+ KVER=6.2.8-zen1-1-zen
+ test -e /usr/lib/modules/backup/6.2.8-zen1-1-zen
+ rsync -AHXal --ignore-existing /usr/lib/modules/backup/6.2.8-zen1-1-zen /usr/lib/modules/
+ rm -rf /usr/lib/modules/backup
( 2/26) Creating system user accounts...
( 3/26) Registering binary formats...
( 4/26) Updating journal message catalog...
( 5/26) Reloading system manager configuration...
( 6/26) Updating udev hardware database...
( 7/26) Applying kernel sysctl settings...
( 8/26) Creating temporary files...
( 9/26) Reloading device manager configuration...
(10/26) Arming ConditionNeedsUpdate...
(11/26) Updating module dependencies...
(12/26) Install DKMS modules
==> dkms install --no-depmod hid-xpadneo/v0.9.5 -k 6.2.9-zen1-1-zen
==> dkms install --no-depmod vboxhost/7.0.6_OSE -k 6.2.9-zen1-1-zen
==> depmod 6.2.9-zen1-1-zen
(13/26) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'default'
-> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts.img --microcode /boot/amd-ucode.img
==> Starting build: '6.1.22-1-lts'
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
-> Running build hook: [plymouth]
-> Running build hook: [encrypt]
==> WARNING: Possibly missing firmware for module: 'qat_4xxx'
-> Running build hook: [lvm2]
-> Running build hook: [openswap]
-> Running build hook: [resume]
-> Running build hook: [filesystems]
-> Running build hook: [grub-btrfs-overlayfs]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-lts.img'
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'fallback'
-> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts-fallback.img -S autodetect --microcode /boot/amd-ucode.img
==> Starting build: '6.1.22-1-lts'
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'aic94xx'
==> WARNING: Possibly missing firmware for module: 'bfa'
==> WARNING: Possibly missing firmware for module: 'qed'
==> WARNING: Possibly missing firmware for module: 'qla1280'
==> WARNING: Possibly missing firmware for module: 'qla2xxx'
==> WARNING: Possibly missing firmware for module: 'wd719x'
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
-> Running build hook: [plymouth]
-> Running build hook: [encrypt]
==> WARNING: Possibly missing firmware for module: 'qat_4xxx'
-> Running build hook: [lvm2]
-> Running build hook: [openswap]
-> Running build hook: [resume]
-> Running build hook: [filesystems]
-> Running build hook: [grub-btrfs-overlayfs]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-lts-fallback.img'
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'default'
-> -k /boot/vmlinuz-linux-zen -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-zen.img --microcode /boot/amd-ucode.img
==> Starting build: '6.2.9-zen1-1-zen'
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
-> Running build hook: [plymouth]
-> Running build hook: [encrypt]
==> WARNING: Possibly missing firmware for module: 'qat_4xxx'
-> Running build hook: [lvm2]
-> Running build hook: [openswap]
-> Running build hook: [resume]
-> Running build hook: [filesystems]
-> Running build hook: [grub-btrfs-overlayfs]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-zen.img'
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'fallback'
-> -k /boot/vmlinuz-linux-zen -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-zen-fallback.img -S autodetect --microcode /boot/amd-ucode.img
==> Starting build: '6.2.9-zen1-1-zen'
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'aic94xx'
==> WARNING: Possibly missing firmware for module: 'bfa'
==> WARNING: Possibly missing firmware for module: 'qed'
==> WARNING: Possibly missing firmware for module: 'qla1280'
==> WARNING: Possibly missing firmware for module: 'qla2xxx'
==> WARNING: Possibly missing firmware for module: 'wd719x'
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
-> Running build hook: [plymouth]
-> Running build hook: [encrypt]
==> WARNING: Possibly missing firmware for module: 'qat_4xxx'
-> Running build hook: [lvm2]
-> Running build hook: [openswap]
-> Running build hook: [resume]
-> Running build hook: [filesystems]
-> Running build hook: [grub-btrfs-overlayfs]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-zen-fallback.img'
==> Image generation successful
(14/26) Refreshing PackageKit...
(15/26) Foreign/AUR package notification
simplescreenrecorder 0.4.4-2
weakauras-companion-bin 4.1.5-1
xivlauncher-git 1:1.0.3.r0.gc2e02fd-1
(16/26) Orphaned package notification...
=> No orphans found.
(17/26) Checking for .pacnew and .pacsave files...
(18/26) GRUB update after transactions...
/usr/bin/grub-mkconfig: 67: /etc/default/grub: source: not found
error: command failed to execute correctly
(19/26) Reloading system bus configuration...
(20/26) Updating fontconfig cache...
(21/26) Updating 32-bit fontconfig cache...
(22/26) Updating icon theme caches...
(23/26) Updating the info directory file...
(24/26) Updating the desktop file MIME type cache...
(25/26) Performing snapper post snapshots for the following configurations...
==> root: 1820
(26/26) Syncing all file systems...

Throwing a little caution to the wind (and trusting in snapper snapshots and a trusty Garuda Live ISO at the ready) I went ahead and rebooted, and it rebooted normally and no errors in dmesg.

update-grub is still failing with the same error tho.

I have no idea about encrypted drives, but you also have the lts kernel to boot to be on the safe side.
Let’s see if someone else can help you.

The problem is also discussed in the search engines, I have just seen, have you looked there?

1 Like

I think you could reinstall grub

sudo pacman -S grub

And update-grub again

sudo update-grub

I’ve been searching and haven’t found anything with this error, so this is why I opened a ticket. Luckily it wasn’t system breaking for me but wanted to bring light to it in case it’s a bigger problem possibly coming down the pipe.

I just tried this and grub reinstalled and errored on the update-grub step with the same error:

warning: grub-2:2.06.r456.g65bc45963-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) grub-2:2.06.r456.g65bc45963-1

Total Installed Size:  33.25 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring                                     [------------------------------------] 100%
(1/1) checking package integrity                                   [------------------------------------] 100%
(1/1) loading package files                                        [------------------------------------] 100%
(1/1) checking for file conflicts                                  [------------------------------------] 100%
(1/1) checking available disk space                                [------------------------------------] 100%
:: Running pre-transaction hooks...
(1/1) Performing snapper pre snapshots for the following configurations...
==> root: 1825
:: Processing package changes...
(1/1) reinstalling grub                                            [------------------------------------] 100%
:: To use the new features provided in this GRUB update, it is recommended
to install it to the MBR or UEFI. Due to potential configuration
incompatibilities, it is advised to run both, installation and generation
of configuration:
$ grub-install ...
$ grub-mkconfig -o /boot/grub/grub.cfg
:: Running post-transaction hooks...
( 1/12) Enabling os-prober...
( 2/12) Arming ConditionNeedsUpdate...
( 3/12) Refreshing PackageKit...
( 4/12) Foreign/AUR package notification
simplescreenrecorder 0.4.4-2
weakauras-companion-bin 4.1.5-1
xivlauncher-git 1:1.0.3.r0.gc2e02fd-1
( 5/12) Updating grub binary in EFI


The GRUB bootloader at EFI/Garuda is being updated!


Installing for x86_64-efi platform.
Installation finished. No error reported.
/usr/bin/grub-mkconfig: 67: /etc/default/grub: source: not found
( 6/12) Orphaned package notification...
=> No orphans found.
( 7/12) Checking for .pacnew and .pacsave files...
( 8/12) GRUB update after transactions...
/usr/bin/grub-mkconfig: 67: /etc/default/grub: source: not found
error: command failed to execute correctly
( 9/12) Fix 'grub' and 'os-prober'
(10/12) Updating the info directory file...
(11/12) Performing snapper post snapshots for the following configurations...
==> root: 1826
(12/12) Syncing all file systems...
1 Like

Have you ever used Grub Customizer? Something it implements is broken on the most recent version of Grub.

1 Like

I personally have not, This is a recent Garuda install and I left grub alone as I never want to challenge my computer from starting. :slight_smile:

That's good, Grub Customizer can be a bit of a wrecking ball. :joy:

Can you post your /etc/default/grub into the thread?

1 Like

/etc/default/grub

# GRUB boot loader configuration

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Garuda"
GRUB_CMDLINE_LINUX_DEFAULT="quiet cryptdevice=UUID=2af5f77a-f6e7-4d8b-9936-4506451a7031:luks-2af5f77a-f6e7-4d8b-9936-4506451a7031 root=/dev/mapper/luks-2af5f77a-f6e7-4d8b-9936-4506451a7031 quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0 resume=/dev/mapper/luks-88c91599-3c88-4e63-823a-9ed064b2f860 loglevel=3"
GRUB_CMDLINE_LINUX=""

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y

# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE=menu

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `videoinfo'
GRUB_GFXMODE=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY=true

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
GRUB_THEME="/usr/share/grub/themes/garuda-dr460nized/theme.txt"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT=true

# Uncomment to disable submenus in boot menu
#GRUB_DISABLE_SUBMENU=y

# Probing for other operating systems is disabled for security reasons. Read
# documentation on GRUB_DISABLE_OS_PROBER, if still want to enable this
# functionality install os-prober and uncomment to detect and include other
# operating systems.
GRUB_DISABLE_OS_PROBER=false
GRUB_ENABLE_CRYPTODISK=y

# This config file imports drop-in files from /etc/default/grub.d/.
for garuda_grub_d in ${sysconfdir}/default/grub.d/*.cfg ; do if [ -e "${garuda_grub_d}" ]; then source "${garuda_grub_d}"; fi; done

Can you try commenting out this last line, then try sudo update-grub again?

2 Likes

Commenting that line out did allow update-grub to work.

I was curious if it was that line since it was the only place I could find the "source" command in the configs. Not sure what impact that will have as I do have 1 file in the /etc/default/grub.d folder
00_garuda-kernel-params.cfg

if [[ ! $GRUB_CMDLINE_LINUX_DEFAULT =~ ibt=[^[:space:]]+ ]]; then
GRUB_CMDLINE_LINUX_DEFAULT="${GRUB_CMDLINE_LINUX_DEFAULT:+$GRUB_CMDLINE_LINUX_DEFAULT }ibt=off"
fi
if [ -z "${GRUB_DISABLE_OS_PROBER+x}" ]; then
GRUB_DISABLE_OS_PROBER=false
fi

What could have put that line in there?
I don’t have something like this.

I'm not sure as this should be a standard install.
I checked and the file is owned by garuda-common-settings

ď ˝ /etc/default/grub.d > pacman -Qo /etc/default/grub.d/00_garuda-kernel-params.cfg
/etc/default/grub.d/00_garuda-kernel-params.cfg is owned by garuda-common-settings 2.6.16-1
2 Likes

Late to the party, I confirm having that line at the end of /etc/default/grub.
Surely added by some recent update, right after a comment about os-prober I put there in the past.

I may have found the "root" cause of this....
I found some info deep in the arch forums about source not being defined if the default shell is changed away from bash to dash as dash does not support the source command...

Needless to say I did change to dash as I've used that for awhile in my Linux distros. I'm going to change the default shell back to bash and see if the problem still exists. Will update the thread once I find out.

3 Likes

So yes, this does seem to be my issue.

I un-commented the line in my /etc/default/grub file and changed the default shell back to bash. Upon doing this and rebooting update-grub is working normally.

Luckily Garuda uses bash for the default shell so it won't cause problems with most users.
Learned something today :slight_smile:

I maybe should just leave the default shell as bash...

4 Likes

So further digging (I'm not a developer, just what I'm finding with Google-Fo)....

The "source" command is left-over from older shells and is included with bash for sh compatibility. The newer style of using source is to replace source with a "." (period). In all modern shells the period will call the "source" function.

To test this I changed my shell back to dash and modified my /etc/default/grub line from source to .

for garuda_grub_d in ${sysconfdir}/default/grub.d/*.cfg ; do if [ -e "${garuda_grub_d}" ]; then . "${garuda_grub_d}"; fi; done

and update-grub works normally. I also tested this in bash and works normally.
Not sure if this should be updated (again I'm not a developer) but seems like a small change that could prevent custom configs from working or if bash ever drops the source compatibility.

Also, I want to thank everyone for assisting with this so quickly. I was worried I was going to have an unbootable system for the first time in years, but crisis adverted and everyone answered the call so quick! TY!

3 Likes

Actually, you helped us (I exclude myself as I did not help at all here lolll) help you with your excellently formatted posts containing information that allowed others to troubleshoot quickly. This good one’s on you, totally. :smiley:

3 Likes