Re: Little preseed question

2009-06-08 Thread Frans Pop
On Monday 08 June 2009, MaTa wrote:
> Oh, thanks a lot.
> I don't knew this preseed was included. :)

And I didn't either.t should be documented in the installation guide.

> 2009/6/7 Otavio Salvador 
>
> > Hello,
> >
> > On Sun, Jun 7, 2009 at 6:31 AM, MaTa 
wrote:
> > > 2009/6/6 Frans Pop 
> > > For include kernel parameters in all Grub entries, I thing can be
> >
> > something
> >
> > > like this:
> > >  d-i preseed/late_command string /target/bin/sed
> > > "s/#kopt/kopt=$KERNEL_PARAMETERS/" menu.lst >
> > > /target/boot/grub/menu.lst"
> >
> > I think an easy way of doing it is using the following preseed:
> >
> > d-i debian-installer/add-kernel-opts string vga=0x177
> >
> > Cheers,
> >
> > --
> > Otavio Salvador  O.S. Systems
> > E-mail: ota...@ossystems.com.br  http://www.ossystems.com.br
> > Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br


-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Little preseed question

2009-06-07 Thread MaTa
Oh, thanks a lot.
I don't knew this preseed was included. :)

2009/6/7 Otavio Salvador 

> Hello,
>
> On Sun, Jun 7, 2009 at 6:31 AM, MaTa wrote:
> > 2009/6/6 Frans Pop 
> > For include kernel parameters in all Grub entries, I thing can be
> something
> > like this:
> >  d-i preseed/late_command string /target/bin/sed
> > "s/#kopt/kopt=$KERNEL_PARAMETERS/" menu.lst > /target/boot/grub/menu.lst"
>
> I think an easy way of doing it is using the following preseed:
>
> d-i debian-installer/add-kernel-opts string vga=0x177
>
> Cheers,
>
> --
> Otavio Salvador  O.S. Systems
> E-mail: ota...@ossystems.com.br  http://www.ossystems.com.br
> Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
>


Re: Little preseed question

2009-06-07 Thread Otavio Salvador
Hello,

On Sun, Jun 7, 2009 at 6:31 AM, MaTa wrote:
> 2009/6/6 Frans Pop 
> For include kernel parameters in all Grub entries, I thing can be something
> like this:
>  d-i preseed/late_command string /target/bin/sed
> "s/#kopt/kopt=$KERNEL_PARAMETERS/" menu.lst > /target/boot/grub/menu.lst"

I think an easy way of doing it is using the following preseed:

d-i debian-installer/add-kernel-opts string vga=0x177

Cheers,

-- 
Otavio Salvador  O.S. Systems
E-mail: ota...@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br


--
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Little preseed question

2009-06-07 Thread MaTa
2009/6/6 Frans Pop 

> On Saturday 06 June 2009, MaTa wrote:
> > Thanks. Yes, I'm thinking in a little "script" for a late_command, with
> > sed. Like:
> > d-i preseed/late_command string sed 's/kernel /kernel
> >  vga=0x17/g' /target/boot/grub/menu.lst
> >
> > I think can work...
>
> Yes that would work.
> Or you could drop a script into /usr/lib/finish-install.d/.
>
> To make your parameters permanent, you really need to add them in the
> configuration setting part of the file, i.e. either the line
># kopt=[...]
> or
># defoptions=[...]
>
> If you want to have them available after the first reboot, you should the
> either run update-grub in the /target chroot, or _also_ add them in the
> already generated sections for the installed kernel.


But if it's possible, I will try with no debian-installer modifications
(only the preseed file), no modify finish.d scripts.
I want to include kernel parameters in only one Grub entry, no all entry. I
will try with this:
 d-i preseed/late_command string /target/bin/sed "s/sda1/sda1
$KERNEL_PARAMETERS/" menu.lst > /target/boot/grub/menu.lst"

For include kernel parameters in all Grub entries, I thing can be something
like this:
 d-i preseed/late_command string /target/bin/sed
"s/#kopt/kopt=$KERNEL_PARAMETERS/" menu.lst > /target/boot/grub/menu.lst"


Re: Little preseed question

2009-06-06 Thread Frans Pop
On Saturday 06 June 2009, MaTa wrote:
> Thanks. Yes, I'm thinking in a little "script" for a late_command, with
> sed. Like:
> d-i preseed/late_command string sed 's/kernel /kernel
>  vga=0x17/g' /target/boot/grub/menu.lst
>
> I think can work...

Yes that would work.
Or you could drop a script into /usr/lib/finish-install.d/.

To make your parameters permanent, you really need to add them in the 
configuration setting part of the file, i.e. either the line
# kopt=[...]
or
# defoptions=[...]

If you want to have them available after the first reboot, you should the 
either run update-grub in the /target chroot, or _also_ add them in the 
already generated sections for the installed kernel.


-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Little preseed question

2009-06-06 Thread MaTa
Hi

Thanks. Yes, I'm thinking in a little "script" for a late_command, with sed.
Like:
d-i preseed/late_command string sed 's/kernel /kernel 
vga=0x17/g' /target/boot/grub/menu.lst

I think can work...

2009/6/6 Terry D. Cudney 

> Hi,
>
>Not sure if this is what you want, but you can edit the
> /boot/grub/menu.lst file after installation, so that subsequent bootups
> follow your preferences therein.
>
>HTH,
>
>--terry
>
> On Sat, Jun 06, 2009 at 05:57:20PM +0200, MaTa wrote:
> > Thanks a lot for response.
> >
> >
> > Sorry If I hasn't explained so well. But I want modify the entry of the
> > installed system, no the execution of the debian-installer. I want change
> > the "menu.lst" of the /target system, no the "debian-installer" "visual
> > mode".
> >
> > Thanks again
> >
> > 2009/6/6 Frans Pop 
> >
> > > On Saturday 06 June 2009, MaTa wrote:
> > > > In debian-installer, using preseed file, in "grub-install" step, How
> I
> > > > can specify some kernel parameters in the grub menu.lst entry of the
> > > > installed system? How I can change the default parameters? Can I
> > > > specify any instruction like "d-i grub-installer/kernel_parameters
> > > > vga=0x317"?
> > >
> > > You can only do that by passing the same parameter to the installer
> > > itself. So basically, instead of just hitting  when you start an
> > > installation, you should hit  which will allow you to modify the
> > > boot parameters for the installer and add the vga parameter at the end.
> > >
> > > Cheers,
> > > FJP
> > >
> > >
> > > --
> > > To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
> > > with a subject of "unsubscribe". Trouble? Contact
> > > listmas...@lists.debian.org
> > >
> > >
>
> --
> Name:   Terry D. Cudney
> Phone:  705-812-4949
> SIP: 8...@ekiga.net
> E-mail: te...@octothorp.org
>
> Having a smoking section in a restaurant is like...
> having a peeing sectionin a swimming pool.
>
> Tired of technology? Check this out: http://www.shibumi.org/eoti.htm
>


Re: Little preseed question

2009-06-06 Thread Frans Pop
No need to CC me on replies. I read the list.

On Saturday 06 June 2009, MaTa wrote:
> Sorry If I hasn't explained so well. But I want modify the entry of the
> installed system, no the execution of the debian-installer. I want
> change the "menu.lst" of the /target system, no the "debian-installer"
> "visual mode".

You explained perfectly. And my answer basically says that's not 
supported. The only way the installer will add parameters for the 
installed system is if they were also passed to the installer itself.


-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Little preseed question

2009-06-06 Thread MaTa
Thanks a lot for response.


Sorry If I hasn't explained so well. But I want modify the entry of the
installed system, no the execution of the debian-installer. I want change
the "menu.lst" of the /target system, no the "debian-installer" "visual
mode".

Thanks again

2009/6/6 Frans Pop 

> On Saturday 06 June 2009, MaTa wrote:
> > In debian-installer, using preseed file, in "grub-install" step, How I
> > can specify some kernel parameters in the grub menu.lst entry of the
> > installed system? How I can change the default parameters? Can I
> > specify any instruction like "d-i grub-installer/kernel_parameters
> > vga=0x317"?
>
> You can only do that by passing the same parameter to the installer
> itself. So basically, instead of just hitting  when you start an
> installation, you should hit  which will allow you to modify the
> boot parameters for the installer and add the vga parameter at the end.
>
> Cheers,
> FJP
>
>
> --
> To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmas...@lists.debian.org
>
>


Re: Little preseed question

2009-06-06 Thread Frans Pop
On Saturday 06 June 2009, MaTa wrote:
> In debian-installer, using preseed file, in "grub-install" step, How I
> can specify some kernel parameters in the grub menu.lst entry of the
> installed system? How I can change the default parameters? Can I
> specify any instruction like "d-i grub-installer/kernel_parameters
> vga=0x317"?

You can only do that by passing the same parameter to the installer 
itself. So basically, instead of just hitting  when you start an 
installation, you should hit  which will allow you to modify the 
boot parameters for the installer and add the vga parameter at the end.

Cheers,
FJP


-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Little preseed question

2009-06-06 Thread MaTa
Hi

Please I only only a little question.

In debian-installer, using preseed file, in "grub-install" step, How I can
specify some kernel parameters in the grub menu.lst entry of the installed
system? How I can change the default parameters? Can I specify any
instruction like "d-i grub-installer/kernel_parameters vga=0x317"?

Thanks a lot. Sorry for my bad english
Oriol Matavacas