grub update overwrites config

Asked by Kermit

Hello
We have set a grub password (to prevent users using the repair functions) and set the default options to unrestricted in /etc/grub.d/10_linux
Now an upgrade of grub-common has overwritten this file, which made the system unbootable for the user
I could repair via live CD, but how do I prevent this from happening again ?
And is this a bug? In my understanding files in a .d config folder should be update-safe

Version is xenial

Best regards, Kermit

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

As far as I can see from https://launchpadlibrarian.net/494780808/grub2_2.02~beta2-36ubuntu3.27_2.02~beta2-36ubuntu3.28.diff.gz the last update has modified /etc/grub.d/10_linux (via /etc/grub.d/10_linux.in).

How was that update initiated?
The update process should have asked how to handle the modifications to that file (keep the old file, install the new one, display differences, etc.)

Revision history for this message
Kermit (kermit42) said :
#2

According to the user it was asked graphically to install updates and there were no questions

When I reproduced I was asked by the updater, so not sure if this problem is user based.

Anyway I would like to blacklist this file as admin (and maybe later other config files)

Is this possible somehow?

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

I suggest that you put your modifications into a specific file, e.g. /etc/grub.d/11_linux_myorg
Such file will not be overwritten.

Revision history for this message
Kermit (kermit42) said :
#4

Well I added the "--unrestricted " to the menu entry line
Is it possible to move that to another file?

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

Sorry, as far as I know modifying a "standard" entry is not possible by adding a file like 11_linux_myorg. You have to modify the "standard" 10_linux file.

Revision history for this message
Launchpad Janitor (janitor) said :
#6

This question was expired because it remained in the 'Open' state without activity for the last 15 days.