search for: grubenv

Displaying 20 results from an estimated 25 matches for "grubenv".

2023 Mar 15
1
Kernel updates do not boot - always boots oldest kernel
> > > > I have only changed GRUB_DEFAULT from "saved" to "0" > > > > I have also run > > > > /usr/sbin/grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg > > I may be wrong here but IIRC, using grub2-mkconfig as described in the > Grub docs didn't work for me when I tried to use it years ago. > > I think you have to find out
2023 Mar 14
1
Kernel updates do not boot - always boots oldest kernel
...t; GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console" GRUB_CMDLINE_LINUX="crashkernel=auto rd.md.uuid=066ffecb:69137a0b:4e579b4f:dfbf1696 rd.md.uuid=bd87f682:e6df10e2:d2a6e247:834133f7 rhgb quiet" GRUB_DISABLE_RECOVERY="true" the /boot/grub2/grubenv contains # GRUB Environment Block saved_entry=CentOS Linux (3.10.0-1160.88.1.el7.x86_64) 7 (Core) ########################################################################################################################################################################################################...
2023 Mar 14
2
Kernel updates do not boot - always boots oldest kernel
...0.88.1.el7.x86_64 or any one of the others, except for vmlinuz-3.10.0-1160.36.2.el7.x86_64 hence a manual selection from the grub menu when in front of the machine will only load the 36.2 kernel I found that under /boot/grub2 there were two .rpmnew files that mucked up the symbolic link to the grubenv file - so fixed that and did a reinstall of the latest kernel. Now all the grub and efi files appear to update correctly - progress. Now just need to work out why the efi boot process can see the old (original) kernel (36.2) but none of the later ones. Any ideas of where to look for this? seem...
2023 Mar 14
1
Kernel updates do not boot - always boots oldest kernel
...of the others, except for vmlinuz-3.10.0-1160.36.2.el7.x86_64 > > hence a manual selection from the grub menu when in front of the machine > will only load the 36.2 kernel > > I found that under /boot/grub2 there were two .rpmnew files that mucked > up the symbolic link to the grubenv file - so fixed that and did a > reinstall of the latest kernel. > > Now all the grub and efi files appear to update correctly - progress. > > Now just need to work out why the efi boot process can see the old > (original) kernel (36.2) but none of the later ones. > > A...
2012 Aug 12
13
raw partition or LV for btrfs?
I notice this question on the wiki/faq: https://btrfs.wiki.kernel.org/index.php/UseCases#What_is_best_practice_when_partitioning_a_device_that_holds_one_or_more_btr-filesystems and as it hasn''t been answered, can anyone make any comments on the subject Various things come to mind: a) partition the disk, create an LVM partition, and create lots of small LVs, format each as btrfs b)
2023 Jan 08
1
RAID1 setup
...d handle a drive > failure correctly either (since it's outside the scope of UEFI), so IIRC > there's been some consideration in Fedora of dropping this support. > > And... I'm not sure if GRUB2 handles RAID 1 /boot fully correctly, for > things where it writes to the FS (grubenv updates for "savedefault" for > example). But, there's other issues with GRUB2's FS handling anyway, so > this case is probably far down the list. > > I think that having RAID 1 for /boot and/or /boot/efi can be helpful > (and I've set it up, definitely not say...
2023 Jan 06
2
Looking for a RAID1 box
...most UEFI firmwares would handle a drive failure correctly either (since it's outside the scope of UEFI), so IIRC there's been some consideration in Fedora of dropping this support. And... I'm not sure if GRUB2 handles RAID 1 /boot fully correctly, for things where it writes to the FS (grubenv updates for "savedefault" for example). But, there's other issues with GRUB2's FS handling anyway, so this case is probably far down the list. I think that having RAID 1 for /boot and/or /boot/efi can be helpful (and I've set it up, definitely not saying "don't do t...
2018 Feb 01
5
Re-enable grub boot in UEFI (Windows took over it)
...ng from a USB drive w/ CentOS7 LiveGnome, I could use its grub command prompt to inspect the UEFI of the local SSD drive, see that the centos/ sub-directory and files are still there. /boot/efi/EFI/centos/: BOOT.CSV BOOTX64.CSV fonts grub.cfg grub.cfg.1501243846.rpmsave grub.cfg.1505469290.rpmsave grubenv grubx64.efi mmx64.efi shim.efi shimx64-centos.efi shimx64.efi maybe /boot/efi/EFI/Boot/ contents has been altered? /boot/efi/EFI/Boot/: bootx64.efi fbx64.efi I had a backup of the full efi partition (`dd`) but it's outdated and I feel it's a bad idea to restore the partition from it. St...
2023 Jan 09
2
RAID1 setup
...;> failure correctly either (since it's outside the scope of UEFI), so IIRC >> there's been some consideration in Fedora of dropping this support. >> >> And... I'm not sure if GRUB2 handles RAID 1 /boot fully correctly, for >> things where it writes to the FS (grubenv updates for "savedefault" for >> example). But, there's other issues with GRUB2's FS handling anyway, so >> this case is probably far down the list. >> >> I think that having RAID 1 for /boot and/or /boot/efi can be helpful >> (and I've set it up...
2019 Dec 27
2
The case of the missing /boot/grub2/grub.cfg in centos8
So I installed centos8. And I was looking for the grub config file: [root at testbox ~]# ls -l /etc/grub2.cfg lrwxrwxrwx. 1 root root 22 Oct 2 13:01 /etc/grub2.cfg -> ../boot/grub2/grub.cfg [root at testbox ~]# But [root at testbox ~]# ls /boot/grub2/ grubenv [root at testbox ~]# Why is it not there? FYI, I did try 'yum reinstall grub2' and no /boot/grub2/grub.cfg for me.
2023 Mar 14
1
Kernel updates do not boot - always boots oldest kernel
Change it to GRUB_DEFAULT=0 (I encountered the same issue week ago with a workstation booted for three month with an older kernel because of https://bugzilla.redhat.com/show_bug.cgi?id=2143438 , and solved it this way) Regards, Petko On 3/14/23 10:51, Rob Kampen wrote: > Can I edit /etc/default/grub and change > > GRUB_DEFAULT=saved > > to something else? -- Petko Alov
2018 Feb 05
0
Re-enable grub boot in UEFI (Windows took over it)
...ts grub > command prompt to inspect the UEFI of the local SSD drive, see that the > centos/ sub-directory and files are still there. > > /boot/efi/EFI/centos/: > BOOT.CSV > BOOTX64.CSV > fonts > grub.cfg > grub.cfg.1501243846.rpmsave > grub.cfg.1505469290.rpmsave > grubenv > grubx64.efi > mmx64.efi > shim.efi > shimx64-centos.efi > shimx64.efi > > maybe /boot/efi/EFI/Boot/ contents has been altered? > > /boot/efi/EFI/Boot/: > bootx64.efi > fbx64.efi > > I had a backup of the full efi partition (`dd`) but it's outdated and...
2013 Sep 29
2
Bug#603391: Workaround PyGrub issue
...literal for int() with base 10: 'ev/xvda' Contents of grub.cfg triggering the error: # # DO NOT EDIT THIS FILE # # It is automatically generated by grub-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; then load_env fi set default="0" if [ "${prev_saved_entry}" ]; then set saved_entry="${prev_saved_entry}" save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=true fi function savedefault { if [ -z "${boot_once}&quot...
2010 Jul 13
9
Xen 4 Ubuntu Lucid panics
I have tried 4 time unsuccessfully to install Xen 4 on Ubuntu Lucid (10.4) 64 bit version using the tutorial at http://bderzhavets.wordpress.com/2010/04/24/set-up-ubuntu-10-04-server-pv-domu-at-xen-4-0-dom0-pvops-2-6-32-10-kernel-dom0-on-top-of-ubuntu-10-04-server/ on a Lenovo thinkcentre workstation. When I boot I get a kernel panic. If I boot the Linux kernel that I compiled using the
2013 Jun 26
1
[PATCH] pygrub: add fedora 19 grub.cfg example
...0..9790064 --- /dev/null +++ b/tools/pygrub/examples/fedora-19.grub2 @@ -0,0 +1,117 @@ +# +# DO NOT EDIT THIS FILE +# +# It is automatically generated by grub2-mkconfig using templates +# from /etc/grub.d and settings from /etc/default/grub +# + +### BEGIN /etc/grub.d/00_header ### +if [ -s $prefix/grubenv ]; then + load_env +fi +if [ "${next_entry}" ] ; then + set default="${next_entry}" + set next_entry= + save_env next_entry + set boot_once=true +else + set default="${saved_entry}" +fi + +if [ x"${feature_menuentry_id}" = xy ]; then + menuentry_i...
2013 Sep 22
0
UEFI boot - no console will be available to OS
...ng the grub boot I can select the arch linux boot image or the xen boot image. /boot directory: efi/ grub/ initramfs-linux-fallback.img initramfs-linux.img vmlinuz-linux xen-4.2.2.gz xen-syms-4.2.2 grub.cfg: ### BEGIN /etc/grub.d/00_header ### insmod part_gpt insmod part_msdos if [ -s $prefix/grubenv ]; then load_env fi if [ "${next_entry}" ] ; then set default="${next_entry}" set next_entry= save_env next_entry set boot_once=true else set default="0" fi if [ x"${feature_menuentry_id}" = xy ]; then menuentry_id_option="--id"...
2013 Oct 10
1
[PATCH] pygrub: Support (/dev/xvda) style disk specifications
...2 --- /dev/null +++ b/tools/pygrub/examples/debian-wheezy-hvm.grub2 @@ -0,0 +1,104 @@ + +# +# DO NOT EDIT THIS FILE +# +# It is automatically generated by grub-mkconfig using templates +# from /etc/grub.d and settings from /etc/default/grub +# + +### BEGIN /etc/grub.d/00_header ### +if [ -s $prefix/grubenv ]; then + load_env +fi +set default="0" +if [ "${prev_saved_entry}" ]; then + set saved_entry="${prev_saved_entry}" + save_env saved_entry + set prev_saved_entry= + save_env prev_saved_entry + set boot_once=true +fi + +function savedefault { + if [ -z "${bo...
2011 Oct 09
3
GRUB2 configuration for Xen 4 on Ubuntu Linux 10.04
Hello, I have installed the Xen 4.1.1 and a working kernel 2.6.32.43 which supports Xen on a Ubuntu Linux 10.04 LTS. However, I have never successfully booted the Hypervisor and Dom0. The screen is always black after some kernel messages rapidly go by. I think that I may pass the wrong parameters to the kernel or Hypervisor with GRUB2. Can any one share his/her working grub.cfg for GRUB2 with
2013 Oct 01
0
Bug#603391: Bug#603391: Workaround PyGrub issue
...2 --- /dev/null +++ b/tools/pygrub/examples/debian-wheezy-hvm.grub2 @@ -0,0 +1,104 @@ + +# +# DO NOT EDIT THIS FILE +# +# It is automatically generated by grub-mkconfig using templates +# from /etc/grub.d and settings from /etc/default/grub +# + +### BEGIN /etc/grub.d/00_header ### +if [ -s $prefix/grubenv ]; then + load_env +fi +set default="0" +if [ "${prev_saved_entry}" ]; then + set saved_entry="${prev_saved_entry}" + save_env saved_entry + set prev_saved_entry= + save_env prev_saved_entry + set boot_once=true +fi + +function savedefault { + if [ -z "${bo...
2018 Feb 07
2
/dev/md1 => 93% Used. Warning. Disk Filling up. - what would be safe to delete in /boot ?
...170 20. Okt 22:56 .vmlinuz-3.10.0-693.5.2.el7.x86_64.hmac # cat /etc/grub2.cfg # # DO NOT EDIT THIS FILE # # It is automatically generated by grub2-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### set pager=1 if [ -s $prefix/grubenv ]; then load_env fi if [ "${next_entry}" ] ; then set default="${next_entry}" set next_entry= save_env next_entry set boot_once=true else set default="${saved_entry}" fi if [ x"${feature_menuentry_id}" = xy ]; then menuentry_id_option=&quo...