URL:
  <http://savannah.gnu.org/bugs/?41666>

                 Summary: grub2-reboot grubenv on lvm2 continues to boot
"temporary" image
                 Project: GNU GRUB
            Submitted by: dercol
            Submitted on: sab 22 feb 2014 09:26:28 GMT
                Category: Disk &amp; Partition
                Severity: Major
                Priority: 5 - Normal
              Item Group: Software Error
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 
                 Release: 2.00
         Reproducibility: Every Time
         Planned Release: None

    _______________________________________________________

Details:

In my environment I have a problem to halt the system, every time I halt th
systsem, the kernel issues a reboot. (for reference see:
https://bugzilla.novell.com/show_bug.cgi?id=812592)
To circumvent the problem I use the grubenv feature of grub issuing a:
"grub2-reboot 'halt'" and a "shutdown -h now"
obviously there is an entry in the grub2 config file that is:

menuentry 'halt' --class opensuse --class halt {
  echo "halting system"
  sleep 5
  set saved_entry=0
  save_env saved_entry
  halt
}

so when I firstly run shutdown -h now, the kernel issue a reboot but observing
the grub2-reboot 'halt' command, grub shutdown the system. Then I can power on
my system and grub "forget" to boot 'halt' and boots properly.

This work when the boot filesystem is on a real partition but, as I have
bought a new hard disk, and grub2 permit the full use of lvm2 (insmod lvm) I
configured my system also with the boot partition as lvm2 logical volume.
Normal boot works but, when I issue grub2-mkboot 'halt' the grub correctly use
it and halt the system but, when I power-up again it continues to boot 'halt'
so I'm in a dead lock. Probably there is a issue in grub2 that don't permit to
upgrade (from grub) the grubenv file....




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?41666>

_______________________________________________
  Messaggio inviato con/da Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-grub

Reply via email to