GRUB Change after update

Hi Everyone. Just for information. I update my Garuda Dragonized daily. A few days ago GRUB got updated which caused, after a couple of reboots, GRUB Menu to revert back to boring Arch one. I expect this was caused as I ran Pacdiff and allowed an over-write. No nice themed GRUB anymore. I used Snapper to go back a few days and ran updates again, this time running Pacdiff, deleted the new GRUB file.

All good now, Nice GRUB back
Be careful out there.

System:
  Kernel: 6.0.12-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen root=UUID=8faf2bda-acc0-4a7a-ab2c-aafa815fe876
    rw [email protected] quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    loglevel=3 ibt=off
  Desktop: KDE Plasma v: 5.26.4 tk: Qt v: 5.15.7 info: latte-dock wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: MSI model: A68HM-E33 V2 (MS-7721) v: 9.0 serial: <superuser required>
    UEFI: American Megatrends v: 8.5 date: 11/01/2018
CPU:
  Info: model: AMD Athlon X4 860K bits: 64 type: MT MCP arch: Steamroller level: v2 built: 2014
    process: GF 28nm family: 0x15 (21) model-id: 0x30 (48) stepping: 1 microcode: 0x6003106
  Topology: cpus: 1x cores: 4 smt: enabled cache: L1: 256 KiB desc: d-4x16 KiB; i-2x96 KiB
    L2: 4 MiB desc: 2x2 MiB
  Speed (MHz): avg: 3795 high: 3928 min/max: 1700/3700 boost: enabled scaling:
    driver: acpi-cpufreq governor: performance cores: 1: 3907 2: 3928 3: 3471 4: 3875 bogomips: 29544
  Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed mitigation: untrained return thunk; SMT vulnerable
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines, STIBP: disabled, RSB filling, PBRSB-eIBRS: Not
    affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Baffin [Radeon RX 460/560D / Pro 450/455/460/555/555X/560/560X]
    vendor: PC Partner / Sapphire driver: amdgpu v: kernel arch: GCN-4 code: Arctic Islands
    process: GF 14nm built: 2016-20 pcie: gen: 3 speed: 8 GT/s lanes: 8 ports:
    active: DP-1,HDMI-A-1 empty: DVI-D-1 bus-ID: 01:00.0 chip-ID: 1002:67ef class-ID: 0300
    temp: 46.0 C
  Device-2: Logitech BRIO Ultra HD Webcam type: USB
    driver: hid-generic,snd-usb-audio,usbhid,uvcvideo bus-ID: 7-2:3 chip-ID: 046d:085e class-ID: 0300
    serial: <filter>
  Display: x11 server: X.Org v: 21.1.5 with: Xwayland v: 22.1.6 compositor: kwin_x11 driver: X:
    loaded: amdgpu unloaded: modesetting alternate: fbdev,vesa dri: radeonsi gpu: amdgpu
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3600x1080 s-dpi: 96 s-size: 952x285mm (37.48x11.22") s-diag: 994mm (39.12")
  Monitor-1: DP-1 mapped: DisplayPort-0 pos: primary,left model: Dell S2721H serial: <filter>
    built: 2020 res: 1920x1080 hz: 60 dpi: 82 gamma: 1.2 size: 598x336mm (23.54x13.23")
    diag: 686mm (27") ratio: 16:9 modes: max: 1920x1080 min: 720x400
  Monitor-2: HDMI-A-1 mapped: HDMI-A-0 pos: right model: Dell P2217 serial: <filter> built: 2017
    res: 1680x1050 hz: 60 dpi: 90 gamma: 1.2 size: 474x296mm (18.66x11.65") diag: 559mm (22")
    ratio: 16:10 modes: max: 1680x1050 min: 720x400
  API: OpenGL v: 4.6 Mesa 22.3.1 renderer: AMD Radeon RX 460 Graphics (polaris11 LLVM 14.0.6 DRM
    3.48 6.0.12-zen1-1-zen) direct render: Yes
Audio:
  Device-1: AMD FCH Azalia vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus-ID: 7-2:3
    bus-ID: 00:14.2 chip-ID: 046d:085e chip-ID: 1022:780d class-ID: 0300 serial: <filter>
    class-ID: 0403
  Device-2: AMD Baffin HDMI/DP Audio [Radeon RX 550 640SP / 560/560X]
    vendor: PC Partner / Sapphire driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 8
    bus-ID: 01:00.1 chip-ID: 1002:aae0 class-ID: 0403
  Device-3: Logitech BRIO Ultra HD Webcam type: USB
    driver: hid-generic,snd-usb-audio,usbhid,uvcvideo
  Sound API: ALSA v: k6.0.12-zen1-1-zen running: yes
  Sound Server-1: PulseAudio v: 16.1 running: no
  Sound Server-2: PipeWire v: 0.3.63 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Micro-Star MSI
    driver: r8169 v:
 kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: d000 bus-ID: 02:00.0
    chip-ID: 10ec:8168 class-ID: 0200
  IF: enp2s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 1.35 TiB used: 277.64 GiB (20.1%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Crucial model: CT240M500SSD1 size: 223.57 GiB block-size:
    physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: MU05 scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Crucial model: CT240M500SSD1 size: 223.57 GiB block-size:
    physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: MU05 scheme: GPT
  ID-3: /dev/sdc maj-min: 8:32 vendor: Western Digital model: WD10EALX-009BA0 size: 931.51 GiB
    block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s type: N/A serial: <filter> rev: 1H15
    scheme: GPT
Partition:
  ID-1: / raw-size: 223.28 GiB size: 223.28 GiB (100.00%) used: 38.04 GiB (17.0%) fs: btrfs
    dev: /dev/sdb2 maj-min: 8:18
  ID-2: /boot/efi raw-size: 301 MiB size: 300.4 MiB (99.80%) used: 628 KiB (0.2%) fs: vfat
    dev: /dev/sdb1 maj-min: 8:17
  ID-3: /home raw-size: 223.28 GiB size: 223.28 GiB (100.00%) used: 38.04 GiB (17.0%) fs: btrfs
    dev: /dev/sdb2 maj-min: 8:18
  ID-4: /var/log raw-size: 223.28 GiB size: 223.28 GiB (100.00%) used: 38.04 GiB (17.0%)
    fs: btrfs dev: /dev/sdb2 maj-min: 8:18
  ID-5: /var/tmp raw-size: 223.28 GiB size: 223.28 GiB (100.00%) used: 38.04 GiB (17.0%)
    fs: btrfs dev: /dev/sdb2 maj-min: 8:18
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 15.58 GiB used: 1024 KiB (0.0%) priority: 100 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 34.6 C mobo: N/A gpu: amdgpu temp: 45.0 C
  Fan Speeds (RPM): N/A gpu: amdgpu fan: 1044
Info:
  Processes: 279 Uptime: 31m wakeups: 0 Memory: 15.58 GiB used: 3.64 GiB (23.3%) Init: systemd
  v: 252 default: graphical tool: systemctl Compilers: gcc: 12.2.0 clang: 14.0.6 Packages:
  pm: pacman pkgs: 1552 libs: 420 tools: octopi,pamac,paru Client: shell wrapper v: 5.1.16-release
  inxi: 3.3.24
Garuda (2.6.10-1):
  System install date:     2022-10-21
  Last full system update: 2022-12-16
  Is partially upgraded:   No
  Relevant software:       NetworkManager
  Windows dual boot:       Probably (Run as root to verify)
  Snapshots:               Snapper
  Failed units:            

Yep, the .pacnew is a generic one from the upstream package.
Does it say "please check and merge"?
Deleting it is not so good either, generally they're compatible, but it's better to... check and merge.

Yes, I've seen merge but it never works. Something about can't find the file or something like that. I would like to merge but it never works.

H

Maybe I'll try it again next time.

If you are trying to use the pacdiff tool, the error you are encountering may be caused by the fact that the tool calls the vim editor by default, which is not a package Garuda ships with. If you want to use this tool, you can either install vim (be warned: it is not an intuitive editor to use) or run with DIFFPROG=micro pacdiff.

A better tool (in my opinion) is meld, which makes it very easy to see what has changed from one file to the other. Copying over changes you want to keep is trivial. It is very easy to understand what is happening and it is perfect for handling .pac files.

sudo meld /etc/default/grub /etc/default/grub.pacnew
6 Likes

one for all

#!/usr/bin/bash
#   pacdiff : a simple pacnew/pacsave updater

Make alias in ~/.config/fish/config.fish

alias pacdif='sudo -H DIFFPROG=meld pacdiff'
( 7/14) Checking for .pacnew and .pacsave files...
.pac* files found:
/etc/default/grub.pacnew
/etc/mkinitcpio.d/linux-amd.preset.pacsave
/etc/pacman.d/mirrorlist.pacnew
Please check and merge
( 8/14) Reloading system bus configuration...
( 9/14) Compiling GSettings XML schema files...
(10/14) Updating icon theme caches...
(11/14) Checking which packages need to be rebuilt
(12/14) Updating the desktop file MIME type cache...
(13/14) Performing snapper post snapshots for the following configurations...
==> root: 569
(14/14) Syncing all file systems...

--> Updating AUR packages with paru..
:: Looking for AUR upgrades...
:: Looking for devel upgrades...
:: Pakete nicht im AUR: safesync
es gibt nichts zu tun

Checking for plugin updates
Nothing to install / update

System updated! 🐧

╭─[email protected] in ~ took 25s
🕙 23:57:58
╰─λ pacdif
==> pacnew file found for /etc/default/grub
:: (V)iew, (M)erge, (S)kip, (R)emove pacnew, (O)verwrite with pacnew, (Q)uit: [v/m/s/r/o/q]

pacdiff

pacman-contrib provides the simple pacdiff(8) tool for managing .pac* files. It will search all .pacnew and .pacsave files and ask for any actions on them. It uses vimdiff by default, but you may specify a different tool with

DIFFPROG=your_editor pacdiff

See List of applications/Utilities#Comparison, diff, merge for other common comparison tools.

3 Likes

Thanks all, sorted.

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.