bugGNU GRUB - Bugs: bug #41666, grub2-reboot grubenv on lvm2...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #41666: grub2-reboot grubenv on lvm2 continues to boot "temporary" image

Submitted by:  Diego Ercolani <dercol>
Submitted on:  Sat 22 Feb 2014 09:26:28 AM UTC  
 
Category: Disk & PartitionSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: DuplicatePrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: 2.00Reproducibility: Every Time
Planned Release: None

Sat 22 Feb 2014 09:26:28 AM UTC, original submission:

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....

Diego Ercolani <dercol>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by phcoder (Updated the item)
  • -unavailable- added by dercol (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 22 Feb 2014 09:38:24 AM UTCphcoderStatusNone=>Duplicate
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1