Re: Some ideas about new features of grub

2009-09-11 Thread Pavel Roskin
On Sun, 2009-08-23 at 14:56 +0200, Robert Millan wrote: > On Thu, Jul 02, 2009 at 04:48:56PM +0800, Bean wrote: > > > > LUA integration. > > LUA is quite powerful, it's more suitable to do complicated task than > > sh script. For example, we can use it to detect os at runtime, > > implement simple

Re: Some ideas about new features of grub

2009-08-23 Thread Robert Millan
On Sun, Aug 23, 2009 at 06:58:43PM +0200, Vladimir 'phcoder' Serbinenko wrote: > >> But I know both Marco and Pavel feel strongly about this.  Please can you > >> comment? > >> > > > > I am against a configure flag (if configure is the one from configure, make, > > make install) but a configure fla

Re: Some ideas about new features of grub

2009-08-23 Thread Vladimir 'phcoder' Serbinenko
>> But I know both Marco and Pavel feel strongly about this.  Please can you >> comment? >> > > I am against a configure flag (if configure is the one from configure, make, > make install) but a configure flag (as something specified in grub.cfg) is > ok. Writing to filesystems is dangerous. Curre

Re: Some ideas about new features of grub

2009-08-23 Thread adrian15
Robert Millan escribió: On Thu, Jul 02, 2009 at 04:48:56PM +0800, Bean wrote: LUA integration. LUA is quite powerful, it's more suitable to do complicated task than sh script. For example, we can use it to detect os at runtime, implement simple commands, or draw the graphic menu. I feel simila

Re: Some ideas about new features of grub

2009-08-23 Thread Robert Millan
On Thu, Jul 02, 2009 at 04:48:56PM +0800, Bean wrote: > > LUA integration. > LUA is quite powerful, it's more suitable to do complicated task than > sh script. For example, we can use it to detect os at runtime, > implement simple commands, or draw the graphic menu. I feel similarly about LUA as

Re: Some ideas about new features of grub

2009-08-23 Thread Robert Millan
On Thu, Jul 02, 2009 at 04:48:56PM +0800, Bean wrote: > > Read/Write file system support > We can implement two kind of fs drivers. The boot time driver is > read-only, but after entering normal mode, we can optionally load > another driver for write support. This approach has been used by EFI. >

Re: Some ideas about new features of grub

2009-07-31 Thread Marco Gerards
Pavel Roskin writes: > On Thu, 2009-07-02 at 16:48 +0800, Bean wrote: >> Hi, >> >> Here are some of my ideas about the new features of grub. >> >> Move kernel to a module. >> This make it possible to relocate the kernel. For example, we can use >> it to move grub-pc to upper memory, and free co

Re: Some ideas about new features of grub

2009-07-12 Thread Pavel Roskin
Quoting Bean : IIRC, os-prober is a collection of shell script to detect os, but grub already have them in util/grub.d. This method is based on linux, so you need to enter linux in order to update the menu. On the other hand, lua script generate the menu inside grub, there is no need to enter an

Re: Some ideas about new features of grub

2009-07-11 Thread Robert Millan
On Sat, Jul 11, 2009 at 07:32:36PM +0100, Colin Watson wrote: > On Sat, Jul 11, 2009 at 06:20:13PM +0200, Michal Suchanek wrote: > > The other problem is that scripts like os-prober that use linux > > filesystem code for probing filesystems destroy your data. > > > > Linux cannot mount journalled

Re: Some ideas about new features of grub

2009-07-11 Thread Felix Zielcke
Am Samstag, den 11.07.2009, 18:20 +0200 schrieb Michal Suchanek: > 2009/7/11 Bean : > > On Sat, Jul 11, 2009 at 5:27 AM, BandiPat wrote: > >> Actually Zenwalk provides os-prober as well. The gentleman that provides > >> the installer of our Grub2 uses os-prober to detect all OS's installed, so > >

Re: Some ideas about new features of grub

2009-07-11 Thread Colin Watson
On Sat, Jul 11, 2009 at 06:20:13PM +0200, Michal Suchanek wrote: > The other problem is that scripts like os-prober that use linux > filesystem code for probing filesystems destroy your data. > > Linux cannot mount journalled filesystems readonly. It always modifies > them. The extent of the modif

Re: Some ideas about new features of grub

2009-07-11 Thread Robert Millan
On Sat, Jul 11, 2009 at 02:53:13PM +0800, Bean wrote: > On Sat, Jul 11, 2009 at 5:27 AM, BandiPat wrote: > > Actually Zenwalk provides os-prober as well.  The gentleman that provides > > the installer of our Grub2 uses os-prober to detect all OS's installed, so > > they may be added to the original

Re: Some ideas about new features of grub

2009-07-11 Thread Michal Suchanek
2009/7/11 Bean : > On Sat, Jul 11, 2009 at 5:27 AM, BandiPat wrote: >> Actually Zenwalk provides os-prober as well.  The gentleman that provides >> the installer of our Grub2 uses os-prober to detect all OS's installed, so >> they may be added to the original grub.cfg.  Works very well, although no

Re: Some ideas about new features of grub

2009-07-10 Thread Bean
On Sat, Jul 11, 2009 at 5:27 AM, BandiPat wrote: > Actually Zenwalk provides os-prober as well.  The gentleman that provides > the installer of our Grub2 uses os-prober to detect all OS's installed, so > they may be added to the original grub.cfg.  Works very well, although not > perfect, but we ar

Re: Some ideas about new features of grub

2009-07-10 Thread BandiPat
Robert Millan wrote: On Wed, Jul 08, 2009 at 02:19:14AM -0400, Pavel Roskin wrote: On Tue, 2009-07-07 at 20:39 +0200, Robert Millan wrote: With LUA, we can have a more user friendly interface. I like way rEFIt works, it doesn't require configuration. At runtime, it detects os and shows an icon

Re: Some ideas about new features of grub

2009-07-10 Thread Robert Millan
On Wed, Jul 08, 2009 at 02:19:14AM -0400, Pavel Roskin wrote: > On Tue, 2009-07-07 at 20:39 +0200, Robert Millan wrote: > > > > With LUA, we can have a more user friendly interface. I like way rEFIt > > > works, it doesn't require configuration. At runtime, it detects os and > > > shows an icon fo

Re: Some ideas about new features of grub

2009-07-07 Thread Pavel Roskin
On Tue, 2009-07-07 at 20:39 +0200, Robert Millan wrote: > > With LUA, we can have a more user friendly interface. I like way rEFIt > > works, it doesn't require configuration. At runtime, it detects os and > > shows an icon for each of them. We can achieve similar goal using lua. > > Of course, ad

Re: Some ideas about new features of grub

2009-07-07 Thread Robert Millan
On Sun, Jul 05, 2009 at 11:13:25AM +0800, Bean wrote: > Hi, > > >> LUA integration. > >> LUA is quite powerful, it's more suitable to do complicated task than > >> sh script. For example, we can use it to detect os at runtime, > >> implement simple commands, or draw the graphic menu. > > > > I don

Re: Some ideas about new features of grub

2009-07-04 Thread Bean
Hi, >> LUA integration. >> LUA is quite powerful, it's more suitable to do complicated task than >> sh script. For example, we can use it to detect os at runtime, >> implement simple commands, or draw the graphic menu. > > I don't mind LUA being supported, but I think it's unnecessarily big > for

Re: Some ideas about new features of grub

2009-07-04 Thread Robert Millan
On Thu, Jul 02, 2009 at 04:48:56PM +0800, Bean wrote: > Hi, > > Here are some of my ideas about the new features of grub. > > Move kernel to a module. > This make it possible to relocate the kernel. For example, we can use > it to move grub-pc to upper memory, and free conventional memory for > u

Re: Some ideas about new features of grub

2009-07-03 Thread Pavel Roskin
On Thu, 2009-07-02 at 23:37 +0200, Vladimir 'phcoder' Serbinenko wrote: > > Floppies can be supported via int 13 even if the ATA module is in use. > > Or we can use int 40 to be extra safe. > > > Is int 40 a hardware interrupt? If so additional advantage of > implementing it would be coreboot supp

Re: Some ideas about new features of grub

2009-07-02 Thread Vladimir 'phcoder' Serbinenko
>> > Hard drives and CD-ROMs are usually large and would take a lot of space >> > in memory that would need to remain allocated.  I think we need a strong >> > case to start that effort. >> > >> Todays RAM is usually big enough. This feature would mainly be used to >> boot install images and not no

Re: Some ideas about new features of grub

2009-07-02 Thread Pavel Roskin
On Thu, 2009-07-02 at 21:38 +0200, Vladimir 'phcoder' Serbinenko wrote: > > I don't care about MS DOS. Other OSes should not need GRUB. If you > > want GRUB to be a supervisor or a microkernel, it's better that GRUB > > loads them instead of incorporating their functionality. > > > This isn't ab

Re: Some ideas about new features of grub

2009-07-02 Thread Pavel Roskin
On Thu, 2009-07-02 at 20:38 +0200, Duboucher Thomas wrote: > Pavel Roskin a écrit : > >> LUA integration. > >> LUA is quite powerful, it's more suitable to do complicated task than > >> sh script. For example, we can use it to detect os at runtime, > >> implement simple commands, or draw the graph

Re: Some ideas about new features of grub

2009-07-02 Thread Vladimir 'phcoder' Serbinenko
On Thu, Jul 2, 2009 at 7:51 PM, Pavel Roskin wrote: > On Thu, 2009-07-02 at 16:48 +0800, Bean wrote: >> Hi, >> >> Here are some of my ideas about the new features of grub. >> >> Move kernel to a module. >> This make it possible to relocate the kernel. For example, we can use >> it to move grub-pc t

Re: Some ideas about new features of grub

2009-07-02 Thread Duboucher Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pavel Roskin a écrit : >> LUA integration. >> LUA is quite powerful, it's more suitable to do complicated task than >> sh script. For example, we can use it to detect os at runtime, >> implement simple commands, or draw the graphic menu. > > Yes, I th

Re: Some ideas about new features of grub

2009-07-02 Thread Pavel Roskin
On Thu, 2009-07-02 at 16:48 +0800, Bean wrote: > Hi, > > Here are some of my ideas about the new features of grub. > > Move kernel to a module. > This make it possible to relocate the kernel. For example, we can use > it to move grub-pc to upper memory, and free conventional memory for > use by r

Some ideas about new features of grub

2009-07-02 Thread Bean
Hi, Here are some of my ideas about the new features of grub. Move kernel to a module. This make it possible to relocate the kernel. For example, we can use it to move grub-pc to upper memory, and free conventional memory for use by real mode os such as MS-DOS. grub can resides in memory even aft