Grub Pacnew files - questions about the new version

I was trying to work through my pacnew files to merge changes and I saw one on grub that made me pause because the pacnew version didn't make a lot of sense to me.

I am using pacdiff to see the differences and trying to determine whether to replace or merge the differences. The file on the right below is the pacnew file for /etc/default/grub, which replaces distributor of "Garuda" with "Arch" and seems to remove the garuda theme. I'm not sure how that could be the "new" file.

The files:

.rw-r--r-- 1.8k root 25 Feb 14:04 grub
.rw-r--r-- 1.8k root 21 Feb 14:55 grub.pacnew

The pacnew file is dated from Feb. 21, which the current grub file is dated from Feb. 25. Probably this is just a holdover from an earlier update that I never dealt with. I think I have an old pacnew file that I need to just delete, can someone confirm based on the contents? I am wary when it comes to messing with grub configuration.

  # GRUB boot loader configuration          |  # GRUB boot loader configuration
                                            |
  GRUB_DEFAULT=0                            |  GRUB_DEFAULT=0
  GRUB_TIMEOUT=5                            |  GRUB_TIMEOUT=5
  GRUB_DISTRIBUTOR="Arch"                   |  GRUB_DISTRIBUTOR="Garuda"
  GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 qui|  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash
  GRUB_CMDLINE_LINUX=""                     |  GRUB_CMDLINE_LINUX=""
                                            |
  # Preload both GPT and MBR modules so that|  # Preload both GPT and MBR modules so tha
  GRUB_PRELOAD_MODULES="part_gpt part_msdos"|  GRUB_PRELOAD_MODULES="part_gpt part_msdos
                                            |
  # Uncomment to enable booting from LUKS en|  # Uncomment to enable booting from LUKS e
+ +-- 28 lines: GRUB_ENABLE_CRYPTODISK=y----|+ +-- 28 lines: GRUB_ENABLE_CRYPTODISK=y---
  # modes only.  Entries specified as foregr|  # modes only.  Entries specified as foreg
  #GRUB_COLOR_NORMAL="light-blue/black"     |  #GRUB_COLOR_NORMAL="light-blue/black"
  #GRUB_COLOR_HIGHLIGHT="light-cyan/blue"   |  #GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
                                            |
  # Uncomment one of them for the gfx desire|  # Uncomment one of them for the gfx desir
  #GRUB_BACKGROUND="/path/to/wallpaper"     |  #GRUB_BACKGROUND="/path/to/wallpaper"
  #GRUB_THEME="/path/to/gfxtheme"           |  GRUB_THEME="/usr/share/grub/themes/garuda
                                            |
  # Uncomment to get a beep at GRUB start   |  # Uncomment to get a beep at GRUB start
  #GRUB_INIT_TUNE="480 440 1"               |  #GRUB_INIT_TUNE="480 440 1"
                                            |
  # Uncomment to make GRUB remember the last|  # Uncomment to make GRUB remember the las
  # setting 'GRUB_DEFAULT=saved' above.     |  # setting 'GRUB_DEFAULT=saved' above.
  #GRUB_SAVEDEFAULT=true                    |  #GRUB_SAVEDEFAULT="true"
                                            |  -----------------------------------------
  # Uncomment to disable submenus in boot me|  -----------------------------------------
  #GRUB_DISABLE_SUBMENU=y                   |  -----------------------------------------

~                                           |~
/etc/default/grub.pacnew  1,1            All /etc/default/grub        1,1            All


I can't read your output :wink:

After merging it looks like this

# GRUB boot loader configuration

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Garuda"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0 systemd.unified_cgroup_hierarchy=1 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 `vbeinfo'
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/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

I use this alias

alias | grep pacdif
pacdif='sudo -H DIFFPROG=meld pacdiff' 
-----------------------------------------------
pacdif               
[sudo] Passwort für sgs:    
==> pacnew file found for /etc/pacman.d/mirrorlist
:: (V)iew, (S)kip, (R)emove pacnew, (O)verwrite with pacnew, (Q)uit: [v/s/r/o/q] 

then I use "v" and meld show me nicely both files and difference. Save your changes in meld and close, then you can skip, remove or quit. I never use overwrite

4 Likes

Thanks. You confirmed what version was correct, thanks.

1 Like

Opps. I just found another one. /etc/mkinitcpio.conf

I have a harder time knowing what the right version is on this one.

Should the file contain MODULES="crc32c-intel"? The pacnew version has MODULES=(). Should I be looking on gitlab at the current files to see what the right version is?

I don’t think this is needed any more. From https://wiki.archlinux.org/index.php/Btrfs#Checksum_hardware_acceleration:

Therefore, MODULES=() will be fine.

4 Likes

I just removed the new config files. It didn't seem to add anything of use. Maybe I'm wrong about this.

Yes, but this thread is solved.

3 Likes

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