boot parameter

2009-07-24 Thread Robert Fischer
Hi,

Is it possible to pass arbitrary parameters to boot(8), respectively the kernel,
so that they can be read from the running system (in userland)?

While poking in the boot(8) sourcecode I found the option env. Could somebody
please tell me what this (undocumented, at least in the boot(8) manpage) option
is used for?

thanks,
Robert



Re: GRUB's boot parameter -- I dit it!!!

2005-06-17 Thread ikesan
On Thu, 16 Jun 2005 18:39:37 +0200
Matthias Kilian [EMAIL PROTECTED] wrote:

 On Fri, Jun 17, 2005 at 01:12:59AM +0900, ikesan wrote:
   root (hd2,0,a)
   kernel --type=netbsd /bsd
 
 Use the chainloader.
 

I dit it!!

I changed grub's parameter as following.

 root (hd2,0,a)#- not hd0
 chainloader +1

It works good.

Thank you!



Re: GRUB's boot parameter - don't do it!!!!

2005-06-17 Thread Vladislav Belogrudov
I think using grub is shameful and insecure enough :)
I would not rely on boot loader that resides
outside of MBR. The best thing for multi-os pc
is distro-independent loader (e.g. GAG) + partion
loaders for each specific OS. 

Don't want my OpenBSD to depend on
Linux partitions :) My personal opinion


PS: grub still can be second level boot loader, 
e.g. for Linux affiliates. Be careful with GRUB
on Linux partition if you are not yet convinced :) 


--- ikesan [EMAIL PROTECTED] wrote:

 On Thu, 16 Jun 2005 18:39:37 +0200
 Matthias Kilian [EMAIL PROTECTED] wrote:
 
  On Fri, Jun 17, 2005 at 01:12:59AM +0900, ikesan
 wrote:
root (hd2,0,a)
kernel --type=netbsd /bsd
  
  Use the chainloader.
  
 
 I dit it!!
 
 I changed grub's parameter as following.
 
  root (hd2,0,a)#- not hd0
  chainloader +1
 
 It works good.
 
 Thank you!
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



Re: GRUB's boot parameter - don't do it!!!!

2005-06-17 Thread reyk
On Fri, Jun 17, 2005 at 04:40:03AM -0700, Vladislav Belogrudov wrote:
 I think using grub is shameful and insecure enough :)
 I would not rely on boot loader that resides
 outside of MBR. The best thing for multi-os pc
 is distro-independent loader (e.g. GAG) + partion
 loaders for each specific OS. 
 
 Don't want my OpenBSD to depend on
 Linux partitions :) My personal opinion
 
 
 PS: grub still can be second level boot loader, 
 e.g. for Linux affiliates. Be careful with GRUB
 on Linux partition if you are not yet convinced :) 
 


grub is bad, ugly, GNUish and it's a dead project since a while

GRUB Legacy is no longer being developed. For the differences between
GRUB Legacy and GRUB 2, please visit their respective pages.

and there doesn't seem to be any progress in the grub 2 development...

besides all the uglyness, i do like the flexibility and the
network-booting capability of grub. i didn't find any similar
replacement so i still use it in some scenarios.

btw.: there are some patches for using grub with OpenBSD
http://www.berger.to/openbsd/pxegrub.html. nevertheless, use the
openbsd (pxe) bootloader or grub chainloading ;)

reyk



GRUB's boot parameter

2005-06-16 Thread ikesan
Hellow.

I'm gonna boot OpenBSD from GRUB in FD.
The parameter is following.

 root (hd2,0,a)
 kernel --type=netbsd /bsd

But unfortunately panic occured.

Message is following.

 panic: /boot too old: upgrade!

This is first time that I installed OpenBSD in my PC (Athron CPU).
And this PC contains some kind of OSs.
So I usualy boot any OS from GRUB in FD.

If version of OpenBSD 3.7 's boot parameter changed or parameter I set
was wrong, please let me know correct thing.

--
[EMAIL PROTECTED]
-



Re: GRUB's boot parameter

2005-06-16 Thread Bob Beck
This is probably because OpenBSD != NetBSD, and
I suspect grub is using whatever it's notion of a netbsd boot
block is. You probably have to fix grub somehow to use a current
OpenBSD boot block, as opposed to attempting to start a kernel
boot as if it were NetBSD. Ask them for a --type=openbsd option
would be a start.

-Bob

* ikesan [EMAIL PROTECTED] [2005-06-16 10:23]:
 Hellow.
 
 I'm gonna boot OpenBSD from GRUB in FD.
 The parameter is following.
 
  root (hd2,0,a)
  kernel --type=netbsd /bsd
 
 But unfortunately panic occured.
 
 Message is following.
 
  panic: /boot too old: upgrade!
 
 This is first time that I installed OpenBSD in my PC (Athron CPU).
 And this PC contains some kind of OSs.
 So I usualy boot any OS from GRUB in FD.
 
 If version of OpenBSD 3.7 's boot parameter changed or parameter I set
 was wrong, please let me know correct thing.
 
 --
 [EMAIL PROTECTED]
 -
 

-- 
Bob Beck   Computing and Network Services
[EMAIL PROTECTED]   University of Alberta
True Evil hides its real intentions in its street address.



Re: GRUB's boot parameter

2005-06-16 Thread Matthias Kilian
On Fri, Jun 17, 2005 at 01:12:59AM +0900, ikesan wrote:
  root (hd2,0,a)
  kernel --type=netbsd /bsd

Use the chainloader.

Ciao,
Kili



Re: GRUB's boot parameter

2005-06-16 Thread Tony Lambiris

speaking of GRUB:
The most embarassing comment came from a developer of the GRUB project 
who went only by the name of 'Gord'. 'This function is truly horrid,' he 
wrote. 'We try opening the device, then severely abuse the 
GEOMETRY-flags field to pass a file descriptor to biosdisk. Thank God 
nobody's looking at this comment, or my reputation would be ruined.'


-- From the OpenSolaris code, h00h0h0h0h0

Bob Beck wrote:

This is probably because OpenBSD != NetBSD, and
I suspect grub is using whatever it's notion of a netbsd boot
block is. You probably have to fix grub somehow to use a current
OpenBSD boot block, as opposed to attempting to start a kernel
boot as if it were NetBSD. Ask them for a --type=openbsd option
would be a start.

-Bob

* ikesan [EMAIL PROTECTED] [2005-06-16 10:23]:


Hellow.

I'm gonna boot OpenBSD from GRUB in FD.
The parameter is following.

root (hd2,0,a)
kernel --type=netbsd /bsd

But unfortunately panic occured.

Message is following.

panic: /boot too old: upgrade!

This is first time that I installed OpenBSD in my PC (Athron CPU).
And this PC contains some kind of OSs.
So I usualy boot any OS from GRUB in FD.

If version of OpenBSD 3.7 's boot parameter changed or parameter I set
was wrong, please let me know correct thing.

--
[EMAIL PROTECTED]
-






--
Tony Lambiris [ [EMAIL PROTECTED] ]
so if it is really hard for you then perhaps you are just
retarded and need treatment w/ electricity and if that does
not help then perhaps should not use computers...



Re: GRUB's boot parameter

2005-06-16 Thread ikesan
On Thu, 16 Jun 2005 10:27:15 -0600
Bob Beck [EMAIL PROTECTED] wrote:

   This is probably because OpenBSD != NetBSD, and
 I suspect grub is using whatever it's notion of a netbsd boot
 block is. You probably have to fix grub somehow to use a current
 OpenBSD boot block, as opposed to attempting to start a kernel
 boot as if it were NetBSD. Ask them for a --type=openbsd option
 would be a start.
 
   -Bob

I had tried the option that you told to me, but it does not works good.

The same message was displayed.

 panic: /boot too old; upgrade!

Oh! I installed newest verson of OpenBSD, and how can I upgrade it.
Because I could not boot OpenBSD. So I thought if GRUBS parameter was wrong.

This is sample parameter that GRUB offered, and I used it.

-Ikesan



Re: GRUB's boot parameter

2005-06-16 Thread Tobias Weingartner
On Friday, June 17, ikesan wrote:
 
  panic: /boot too old; upgrade!
 
 Oh! I installed newest verson of OpenBSD, and how can I upgrade it.
 Because I could not boot OpenBSD. So I thought if GRUBS parameter was wrong.

Use the chainloader.  Use the chainloader.
Use the chainloader.  Use the chainloader.
Use the chainloader.  Use the chainloader.
Use the chainloader.  Use the chainloader.
Use the chainloader.  Use the chainloader.

--Toby.



Re: GRUB's boot parameter

2005-06-16 Thread Veit Waltemath
On Fri, Jun 17, 2005 at 02:13:32AM +0900, ikesan wrote:
 On Thu, 16 Jun 2005 10:27:15 -0600
 Bob Beck [EMAIL PROTECTED] wrote:
 
  This is probably because OpenBSD != NetBSD, and
  I suspect grub is using whatever it's notion of a netbsd boot
  block is. You probably have to fix grub somehow to use a current
  OpenBSD boot block, as opposed to attempting to start a kernel
  boot as if it were NetBSD. Ask them for a --type=openbsd option
  would be a start.
  
  -Bob
 
 I had tried the option that you told to me, but it does not works good.
 
 The same message was displayed.
 
  panic: /boot too old; upgrade!
 
 Oh! I installed newest verson of OpenBSD, and how can I upgrade it.
 Because I could not boot OpenBSD. So I thought if GRUBS parameter was wrong.
 
 This is sample parameter that GRUB offered, and I used it.
 
 -Ikesan
 

Do what Matthias Kilian said, use chainloader.

Like this:
# For booting OpenBSD
title  OBSD
root   (hd1,3,a)# -- depends on your setup
chainloader +1


-- 
Veit Waltemath [EMAIL PROTECTED]   | *BSD /
01896 Pulsnitz / Germany| / Linux Systems



Re: GRUB's boot parameter

2005-06-16 Thread Bob Beck
You don't get it. I said to ask the grub people
for a correct openbsd boot option. The problem is grub
is attempting to boot OpenBSD as if it were an old netbsd
kernel. This will not work. You should ask the grub
people to fix it.  My advice? don't use grub.

-Bob

* ikesan [EMAIL PROTECTED] [2005-06-16 11:29]:
 On Thu, 16 Jun 2005 10:27:15 -0600
 Bob Beck [EMAIL PROTECTED] wrote:
 
  This is probably because OpenBSD != NetBSD, and
  I suspect grub is using whatever it's notion of a netbsd boot
  block is. You probably have to fix grub somehow to use a current
  OpenBSD boot block, as opposed to attempting to start a kernel
  boot as if it were NetBSD. Ask them for a --type=openbsd option
  would be a start.
  
  -Bob
 
 I had tried the option that you told to me, but it does not works good.
 
 The same message was displayed.
 
  panic: /boot too old; upgrade!
 
 Oh! I installed newest verson of OpenBSD, and how can I upgrade it.
 Because I could not boot OpenBSD. So I thought if GRUBS parameter was wrong.
 
 This is sample parameter that GRUB offered, and I used it.
 
 -Ikesan
 

-- 
Bob Beck   Computing and Network Services
[EMAIL PROTECTED]   University of Alberta
True Evil hides its real intentions in its street address.



Re: GRUB's boot parameter

2005-06-16 Thread Bob Bostwick \(Lists\)
Gag is the way to go, easy to use and even looks pretty.



Subject: Re: GRUB's boot parameter

GAG [1] is a nice boot manager. It can boot a lot of OS's, including
OpenBSD. You should give it a try.

Jasper

[1] http://gag.sourceforge.net


-- 
checking whether you're still watching...probaly not :-)
/usr/ports/x11/wmx configure script.