bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #41666] grub2-reboot grubenv on lvm2 continues to boot "temporary"


From: Diego Ercolani
Subject: [bug #41666] grub2-reboot grubenv on lvm2 continues to boot "temporary" image
Date: Sat, 22 Feb 2014 09:26:30 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]