Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jan 1998 04:17:57 -0800
From:      "Jordan K. Hubbard" <jkh@time.cdrom.com>
To:        Charlie ROOT <root@korin.warman.org.pl>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: /kernel.config takes over boot: -c :-(( 
Message-ID:  <19849.886162677@time.cdrom.com>
In-Reply-To: Your message of "Fri, 30 Jan 1998 13:12:02 %2B0100." <Pine.NEB.3.95.980130130253.23731B-100000@korin.warman.org.pl> 

next in thread | previous in thread | raw e-mail | index | archive | help
I understand what you essentially want here, but just to note that
you're a little confused about what's going on currently. -c is NOT
being ignored in this case, it's going straight into UserConfig just
as you told it to do.  Then UserConfig is saying "Hey, I see some data
here which the boot blocks gave me from a /kernel.config file, and
it starts with the magic string USERCONFIG, so off I go!"

There's really not a lot you can do about that, either.  If the data
is there, it's there, and userconfig has little choice but to assume
that you knew what you were doing when you gave it overrides.  Boot in
fixit mode and simply nuke or move that /kernel.config file if you
want it to stop seeing it, I'd say that's a fairly simple solution. :)

Like I said, I do understand what you essentially want, however, and
what that is is *another* flag (-C?) which tells UserConfig *not* to
pay attention to any provided parameters. :-)

Bruce is also master of the boot blocks so if you can manage to talk
him into polluting his argument space with yet another argument
letter, it's as good as done. :-)

					Jordan

> * Prepare /kernel.config file containing some config commands.
> * boot with -c
> * kernel ignores -c, and executes parameters from /kernel.config only.
> 
> I think this is bad. If I screw something with configuration (perhaps I
> won't be able to run the system at all if I mess with syscons), I want -c
> to take precedence over (perhaps bogus) commands from /kernel.config. 
> 
> Kernel is -current. Bootblock is ca. 2 months old.
> 
> I always thought that machines should first listen to me, and then to
> their own instructions :-) Wouldn't you like it yourself? 
> 
> 
> Andrzej Bialecki
> 
> ---------------------+-------------------------------------------------------
--
> abial@warman.org.pl  | if(halt_per_mth > 0) { fetch("http://www.freebsd.org")
 }
> Research & Academic  | "Be open-minded, but don't let your brains to fall out
."
> Network in Poland    | All of the above (and more) is just my personal opinio
n.
> ---------------------+-------------------------------------------------------
--
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19849.886162677>