Why do we have two Default GRUB2 files/paths?

New to Debian (Or Linux in general)? Ask your questions here!

Why do we have two Default GRUB2 files/paths?

Postby Xeno Idaltu » 2020-03-11 20:56

OS: Debian Buster (UEFI)

I noticed we have two identical files, not symlinks, for Default GRUB.
1) The one we often edit is on:
/etc/default/grub

2) And then we have an identical file in:
/use/share/grub/default/grub

Is this a backup file, remnants of GRUB1, or UEFI related?
User avatar
Xeno Idaltu
 
Posts: 31
Joined: 2019-08-15 05:36
Location: Free-Source Technocracy

Re: Why do we have two Default GRUB2 files/paths?

Postby sunrat » 2020-03-11 21:35

IIRC the one in /usr/share/grub/default/ (it's usr not use) is just a default template, the one in /etc/ is the active one.
They are not identical on my system.
Last edited by sunrat on 2020-03-12 00:20, edited 1 time in total.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 2998
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: Why do we have two Default GRUB2 files/paths?

Postby Deb-fan » 2020-03-11 22:54

Dorkish clarification post:

You've both been struck by typos, it's /usr/share. Yep, is a template-backup, not with custom changes of course. Generally a good idea getting into the habit of making and stashing copies of system files someone changes, including comments of where it was/is located(full path to where it is), reason, what/why you've changed it. I keep a directory named systemfiles.bak for this. Include system files I've created for whatever reason too. Old convention is renaming backup files to end with .bak, can even leave them in place next to the working original and doesn't cause issues. Only I prefer having them all in one place. :)

You have been clarified! By a dork no less! :P
Deb-fan
 
Posts: 693
Joined: 2012-08-14 12:27

Re: Why do we have two Default GRUB2 files/paths?

Postby sunrat » 2020-03-12 00:21

Deb-fan wrote:You have been clarified! By a dork no less! :P


You talk too much. Typo fixed, thanks.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 2998
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: Why do we have two Default GRUB2 files/paths?

Postby Deb-fan » 2020-03-12 01:36

^True ... no worries, typos are one of the banes of humanity. They're always lurking, waiting to pounce. :P
Deb-fan
 
Posts: 693
Joined: 2012-08-14 12:27


Return to Beginners Questions

Who is online

Users browsing this forum: arzgi and 8 guests

fashionable