1
00:00:00,000 --> 00:00:10,800
In this video, I will tell you how to manage the GRUB2 configuration.

2
00:00:10,800 --> 00:00:16,360
So GRUB2 is used to load the kernel and the initial RAM file system, init-ramfs if you're

3
00:00:16,360 --> 00:00:19,680
on Red Hat, init-rd if you are on Ubuntu.

4
00:00:19,680 --> 00:00:25,840
GRUB2 works with an input file, which normally is an etc-default GRUB.

5
00:00:25,840 --> 00:00:31,360
All configuration settings are stored in the etc-grub.d configuration.

6
00:00:31,360 --> 00:00:40,680
Now from the input file, you can use the grub2-mkconfig-o boot-grub2-grub.cfg file.

7
00:00:40,680 --> 00:00:45,360
And that is combining the changes in the input file to the configuration file.

8
00:00:45,360 --> 00:00:48,080
Let's check it out.

9
00:00:48,080 --> 00:00:53,759
So etc-default has the file grub, and this is where it all starts.

10
00:00:53,759 --> 00:01:00,599
And here you can find the line grub-cmd-line-linux with all the different options.

11
00:01:00,599 --> 00:01:04,879
But there is also this grub-enable-bls-cfg is true.

12
00:01:04,879 --> 00:01:10,279
And this option makes it you don't write it here anymore, but you need to write it somewhere

13
00:01:10,279 --> 00:01:11,279
else.

14
00:01:11,279 --> 00:01:12,279
Let me show you.

15
00:01:12,279 --> 00:01:16,239
If you go to the boot directory, in the boot directory, you will find everything that is

16
00:01:16,239 --> 00:01:24,279
needed for booting, including the grub2 configuration directory and the loader directory.

17
00:01:24,279 --> 00:01:28,800
And in this loader directory, you have the entries, and the entries correspond to all

18
00:01:28,800 --> 00:01:32,440
the different entries in your grub boot menu.

19
00:01:32,440 --> 00:01:39,400
Now the thing is that before you would edit the etc-default grub file, but that was generic.

20
00:01:39,400 --> 00:01:43,519
What are you going to do in a configuration with multiple boot entries where you want

21
00:01:43,519 --> 00:01:47,099
to specify one specific entry?

22
00:01:47,099 --> 00:01:52,639
That is what this bls-cfg option that we have just seen is all about.

23
00:01:52,639 --> 00:01:58,120
So what you edit is in boot loader entries, and the entry, well, you need to find what

24
00:01:58,120 --> 00:02:02,279
corresponds to your current configuration.

25
00:02:02,279 --> 00:02:11,000
And in my case, that is the dash 6.6 and so on.

26
00:02:11,000 --> 00:02:12,320
This is the one.

27
00:02:12,320 --> 00:02:19,440
So if I want to change anything, like I want to remove this rh-zb and quiet, I go to the

28
00:02:19,440 --> 00:02:27,320
options line, and at the end of the options line, I'm removing my rh-zb and quiet.

29
00:02:27,320 --> 00:02:33,759
This is important to realize, because before it was more straightforward.

30
00:02:33,759 --> 00:02:38,559
You would just remove the options from the grub-cmd-line Linux, but now that we have

31
00:02:38,559 --> 00:02:43,279
grub-enable-bls-cfg, that doesn't work anymore.

32
00:02:43,279 --> 00:02:53,839
What still works is grub2-mkconfig-o boot-grub2-grub.cfg.

33
00:02:53,839 --> 00:02:59,440
That's going to write the options and make sure that your changes are saved persistently.

34
00:02:59,440 --> 00:03:03,199
So when I'm going to reboot, I should see the difference.

35
00:03:03,199 --> 00:03:07,559
It always starts with a few seconds of cursor in the upper left corner.

36
00:03:07,559 --> 00:03:08,759
This is the difference.

37
00:03:08,759 --> 00:03:13,000
I now no longer see this graphical screen hiding my boot messages.

38
00:03:13,000 --> 00:03:15,600
I actually see what is going on on my system.

