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:14,960 So GRUB2 is used to load the kernel and the initial RAM file system. 3 00:00:14,960 --> 00:00:19,600 InitRAMFS if you're on Red Hat, InitRD if you are on Ubuntu. 4 00:00:19,600 --> 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 that is where it all starts. 10 00:00:53,759 --> 00:01:00,639 And here you can find the line GRUB-cmdline-linux with all the different options. 11 00:01:00,639 --> 00:01:04,919 But there is also this GRUB-enable-bls-cfg is true. 12 00:01:04,919 --> 00:01:11,080 And this option makes it you don't write it here anymore, but you need to write it somewhere else. 13 00:01:11,080 --> 00:01:12,320 Let me show you. 14 00:01:12,320 --> 00:01:16,279 If you go to the boot directory, in the boot directory you will find everything that is 15 00:01:16,279 --> 00:01:24,120 needed for booting, including the GRUB2 configuration directory and the loader directory. 16 00:01:24,120 --> 00:01:26,959 And in this loader directory, you have the entries. 17 00:01:26,959 --> 00:01:32,320 And the entries correspond to all the different entries in your GRUB boot menu. 18 00:01:32,320 --> 00:01:39,239 Now the thing is that before you would edit the etc-default GRUB file, but that was generic. 19 00:01:39,239 --> 00:01:43,000 What are you going to do in a configuration with multiple boot entries, 20 00:01:43,000 --> 00:01:46,959 where you want to specify one specific entry? 21 00:01:46,959 --> 00:01:52,519 That is what this bls-cfg option that we have just seen is all about. 22 00:01:52,519 --> 00:01:55,199 So what you edit is in boot loader entries. 23 00:01:55,199 --> 00:02:02,040 And the entry, well, you need to find what corresponds to your current configuration. 24 00:02:02,040 --> 00:02:10,839 And in my case, that is the dash 6.6 and so on. 25 00:02:10,839 --> 00:02:12,199 This is the one. 26 00:02:12,199 --> 00:02:18,880 So if I want to change anything, like I want to remove this rh-gb and quiet, 27 00:02:18,880 --> 00:02:20,199 I go to the options line. 28 00:02:20,199 --> 00:02:27,160 And at the end of the options line, I'm removing my rh-gb and quiet. 29 00:02:27,160 --> 00:02:33,720 This is important to realize, because before it was more straightforward. 30 00:02:33,720 --> 00:02:37,880 You would just remove the options from the GRUB CMD line Linux. 31 00:02:37,880 --> 00:02:43,119 But now that we have GRUB enable bls-cfg, that doesn't work anymore. 32 00:02:43,119 --> 00:02:53,639 What still works is GRUB2-mkconfig-o boot-grub2-grub.cfg. 33 00:02:53,639 --> 00:02:59,320 That's going to write the options and make sure that your changes are saved persistently. 34 00:02:59,320 --> 00:03:03,080 So when I'm going to reboot, I should see the difference. 35 00:03:03,080 --> 00:03:07,320 It always starts with a few seconds of cursor in the upper left corner. 36 00:03:07,320 --> 00:03:08,759 This is the difference. 37 00:03:08,759 --> 00:03:12,919 I now no longer see this graphical screen hiding my boot messages. 38 00:03:12,919 --> 00:03:15,639 I actually see what is going on on my system.