Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Apr 2011 16:24:44 +0200
From:      rank1seeker@gmail.com
To:        freebsd-hackers@freebsd.org
Subject:   Re: Add SUM sysctl
Message-ID:  <20110416.142444.546.5@DEV>
In-Reply-To: <D18D23C3-5179-46BE-BAA6-288B06DB0408@gsoft.com.au>
References:  <20110415.150349.671.1@DEV> <22B12EE4-AE7B-49F7-B6BA-3FE7F967F508@gsoft.com.au> <20110415.154921.875.2@DEV> <F8EA9C16-A114-4270-895D-477AFA2990C9@gsoft.com.au> <20110415.171211.343.3@DEV> <6F20BB76-0D6A-4AB5-99DF-15954D8C2C9D@gsoft.com.au> <20110416.111455.390.4@DEV> <D18D23C3-5179-46BE-BAA6-288B06DB0408@gsoft.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help

> Yes, because there is no concept of single user mode to the kernel. 
That's why there is no sysctl for it.

I've already accepted that as a fact, so let's not pull that cat, with 
rope, around, ...anymore.

> > I truly prefer focusing on a goal and finding a way of achieving it.
> > Your question is just an open road for an endless chater, with many new 
> > roads, for splitting into endless subchaters ...
> > 
> > I wana create an sh function, which returns 0 if sys is in SUM or 
return 1 
> > if in MUM.
> > Then I can use that function, wherever I want.
> > 
> > I.e; (I CAN NOT BELIEVE I AM TYPING SO MUCH!)
> 
> Get used to it,
> 
> > If I use geli encryption AND I am upgrading from 8.2 to 8.3, then upon 
> > rebuild of whole system, I must install kernel and world in a ONE SHOT! 
> > (Just a rebuild of a same version of OS doesn't require this)
> > So I need to drop into SUM and install kernel and world, NOT regulary 
> > install kernel, then reboot into SUM and then install world!
> > This is just a one scenario ...
> > Now that does it!
> > Do you know, or not, what should I look for, to prove that I am in SUM? 
(As 
> > human I know when I am in SUM, as I initiate it, but scripts are 
retards, 
> > so they need it, not me ...)
> > Simple as that.
> 
> I think you're looking at it the wrong way.
> It isn't that being in multi user mode causes a problem as such, it's 
because something happens when you run /etc/rc which causes the problem.
> 
> Your example doesn't say why you need to be in single user mode when 
using geli.. The only reason you need to be in single user mode during an 
upgrade is so that running programs don't find libraries ripped out from 
under them and then they crash.
> 
> In that case you don't need to reboot into single user mode, you just 
make sure there aren't any non-kernel processes (besides sh) which are 
running.

I know all this!!!
I KNEW chatter would start to go this way!

After compilation of kernel and world in MUM, kernel is installed in MUM, 
but to install world, we reboot into SUM, then install world. (HANDBOOK)
Now, in case of GELI usage AND if upgrading is taking place, i.e; 8.2 -> 
8.3, once you reboot into SUM to install world, you are doomed, BECAUSE 
...
Kernel will bitch (GELI part), about world->kernel mismatch and you won't 
be able to install world as you cant decrypt geom providers!!
The only way to save yourself in that case is to restore /boot/kernel.old, 
or one is doomed.

So that is way, they both need to be installed in SUM, in one shot! Kernel 
then world!

But this is just a ONE example, of usage of THAT function!
Next time it won't be GELI case but something else.
And now I brag about encryption, compilation of world and kernel, bla, 
bla..., what is NOT a subject, of this "thread"


DO YOU KNOW, what to look for, in sys that will indicate to my function, 
that it is in SUM?


Domagoj S.



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