bugGNU GRUB - Bugs: bug #47980, grub2 does not support the legacy...

 
 

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

bug #47980: grub2 does not support the legacy command "write"

Submitted by:  Elmar Stellnberger <estellnb>
Submitted on:  Sun 22 May 2016 04:17:34 PM UTC  
 
Category: BootingSeverity: Major
Priority: 3 - LowItem Group: Software Error
Status: NonePrivacy: Public
Assigned to: NoneOriginator Name: Elmar Stellnberger
Open/Closed: OpenRelease: 
Release: otherReproducibility: Every Time
Planned Release: 2.03+

Sun 22 May 2016 04:18:18 PM UTC, comment #1:

My idea about the write command is that it could serve as a
replacement for kernel parameters whenever an OS needs to be
chainloaded. That way also non-directly supported OSes like Windows or DOS or any new not yet supported ones could be customized.

The command found for fdubcd.img.gz is:
write --offset=15 /bin/setargs.bat ubcdcmd=keydisk\r\n

It simply replaces the given file for the given string at the given offset. The file itself contains sufficient spaces at the given position in order to hold for the parameter passed via write. As already said there are no additional security/safety considerations necessary as long as the file resides inside a RAM disk.

Elmar Stellnberger <estellnb>
Sun 22 May 2016 04:17:34 PM UTC, original submission:

Package: grub
Version: 1:2.02.beta2-6

I have tried to dd the boot image of the Ultimate Boot CD into a hard disk partition in order to boot it from there. Then I have converted the menu.lst as used by Grub1 on that CD image by grub-menulst2cfg. As it turned out most entries are no more bootable with grub2 because of the 'write' command being no more supported. As Jordan_U has told me on #grub this command would no more be supported due to security reasons.
However my objection against abandoning support for the write command is that it can happily and safely be used together with ram disks as the Ultimate Boot CD does.
Anyone here who would mind to implement the write command for Grub2?
I would really believe that Grub2 should be backward compatible!
Using Grub1 in addition to Grub2 has not proven to be a good
alternative as it can not access iso9660 file systems when booted over a virtual floppy image. Up to now there is also no CD emulation; what works with Grub1 though is to enter the following manually when booting with another old physical grub1-bootcd:

root (hd0,17)
configfile (hd0,17)/boot/grub/menu.lst

Elmar Stellnberger <estellnb>

 

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 estellnb (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
    Tue 11 Oct 2016 12:41:51 PM UTCphcoderPriority5 - Normal=>3 - Low
      Planned ReleaseNone=>2.03+

    Back to the top


    Powered by Savane 3.1-cleanup1