Add SUM sysctl

2011-04-15 Thread rank1seeker
I would like implementation of boolean sysctl var, that would show, is system in a single user mode. I would like it from 8.3 onwards. Domagoj Smolčić ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hacke

Re: Add SUM sysctl

2011-04-15 Thread Daniel O'Connor
On 15/04/2011, at 17:03, rank1see...@gmail.com wrote: > I would like implementation of boolean sysctl var, that would show, is system > in a single user mode. > I would like it from 8.3 onwards. AFAIK the kernel doesn't have a "single user" mode. It's just that when you boot into single user mo

Re: Add SUM sysctl

2011-04-15 Thread rank1seeker
> On 15/04/2011, at 17:03, rank1see...@gmail.com wrote: > > I would like implementation of boolean sysctl var, that would show, is system in a single user mode. > > I would like it from 8.3 onwards. > > AFAIK the kernel doesn't have a "single user" mode. > > It's just that when you boot into sin

Re: Add SUM sysctl

2011-04-15 Thread Daniel O'Connor
On 15/04/2011, at 17:49, rank1see...@gmail.com wrote: >> On 15/04/2011, at 17:03, rank1see...@gmail.com wrote: >>> I would like implementation of boolean sysctl var, that would show, is > system in a single user mode. >>> I would like it from 8.3 onwards. >> >> AFAIK the kernel doesn't have a "s

Re: Add SUM sysctl

2011-04-15 Thread rank1seeker
> On 15/04/2011, at 17:49, rank1see...@gmail.com wrote: > >> On 15/04/2011, at 17:03, rank1see...@gmail.com wrote: > >>> I would like implementation of boolean sysctl var, that would show, is > > system in a single user mode. > >>> I would like it from 8.3 onwards. > >> > >> AFAIK the kernel doe

Re: Add SUM sysctl

2011-04-15 Thread Daniel O'Connor
On 15/04/2011, at 19:12, rank1see...@gmail.com wrote: >> Oh oops, I guess the kernel runs init -s which then asks you.. > > So, what is solution? > Currently I need to mess with lookup, in env variables. > > It must cover cases of rebooting into SUM and drop from MUM (# shutdown > now) in SUM.

Re: Add SUM sysctl

2011-04-16 Thread rank1seeker
> On 15/04/2011, at 19:12, rank1see...@gmail.com wrote: > >> Oh oops, I guess the kernel runs init -s which then asks you.. > > > > So, what is solution? > > Currently I need to mess with lookup, in env variables. > > > > It must cover cases of rebooting into SUM and drop from MUM (# shutdown >

Re: Add SUM sysctl

2011-04-16 Thread Daniel O'Connor
On 16/04/2011, at 13:14, rank1see...@gmail.com wrote: >> There IS no "solution" because it isn't really a problem. > > It is mine GOAL, to achieve. > >> You still didn't reply to my asking why you need to know.. > > Why?! > Because! > Why, why, why ...? > God told me! > Why Did the Chicken Cros

Re: Add SUM sysctl

2011-04-16 Thread rank1seeker
> 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 questio

Re: Add SUM sysctl

2011-04-16 Thread Daniel O'Connor
On 16/04/2011, at 16:24, rank1see...@gmail.com wrote: >> >> 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 co

Re: Add SUM sysctl

2011-04-16 Thread Freddie Cash
On Sat, Apr 16, 2011 at 7:24 AM, wrote: > 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) Note: You do not have to be in SUM to install the world and/or the kernel. You can install them just fi

Re: Add SUM sysctl

2011-04-16 Thread Daniel O'Connor
On 16/04/2011, at 17:31, Freddie Cash wrote: >> DO YOU KNOW, what to look for, in sys that will indicate to my function, >> that it is in SUM? > > No network configured, no daemons running, just a single shell > running. IOW, everything can be done manually in MUM to "simulate" > SUM. My point

Re: Add SUM sysctl

2011-04-16 Thread Garrett Cooper
On Sat, Apr 16, 2011 at 8:41 AM, Daniel O'Connor wrote: > > On 16/04/2011, at 17:31, Freddie Cash wrote: >>> DO YOU KNOW, what to look for, in sys that will indicate to my function, >>> that it is in SUM? >> >> No network configured, no daemons running, just a single shell >> running.  IOW, everyt

Re: Add SUM sysctl

2011-04-16 Thread dieterbsd
> 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!! Suggestion 1: Install the new stuff into different disk partition(s), leaving the

Re: Add SUM sysctl

2011-04-16 Thread Warren Block
On Sat, 16 Apr 2011, dieter...@engineer.com wrote: Suggestion 2: The kernel may not have an official flag for single vs multi user mode but you can fake it. Try something like "pgrep syslogd". If syslogd is running assume multiuser mode. If syslogd is not running assume single user mode. A

Re: Add SUM sysctl

2011-04-16 Thread J. Hellenthal
On Sat, Apr 16, 2011 at 04:46:53PM -0600, Warren Block wrote: >On Sat, 16 Apr 2011, dieter...@engineer.com wrote: > >>Suggestion 2: The kernel may not have an official flag for single >>vs multi user mode but you can fake it. Try something like >>"pgrep syslogd". If syslogd is running assume mul

Re: Add SUM sysctl

2011-04-17 Thread Daniel Braniss
> > --Kj7319i9nmIyA2yE > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > On Sat, Apr 16, 2011 at 04:46:53PM -0600, Warren Block wrote: > >On Sat, 16 Apr 2011, dieter...@engineer.com wrote: > > > >>Suggestion 2: The kernel

Re: Add SUM sysctl

2011-04-17 Thread Mike Meyer
On Sun, 17 Apr 2011 15:11:03 +0300 Daniel Braniss wrote: > when something gets too complicated, it's usualy helpful to look for other > ways > out: > the /(root) + /usr + kernel-debuging + src is less than 1GB, so what I > do (when diskless is not an option), I have a 2 partitions, both bootable,

Re: Add SUM sysctl

2011-04-18 Thread rank1seeker
I would like, to thank you all, for your ideas. There are 2 ways of going into SUM (Single user mode) 1) Rebooting into it 2) Drop from MUM My solution MUST cover both cases, of entering into SUM. Once I enter SUM, I set it up, via 1 script, which enables deamons and other stuff, that I need, f

Re: Add SUM sysctl

2011-04-18 Thread Paul Schenkeveld
On Mon, Apr 18, 2011 at 01:52:15PM +0200, rank1see...@gmail.com wrote: > > There are 2 ways of going into SUM (Single user mode) > 1) Rebooting into it > 2) Drop from MUM > > My solution MUST cover both cases, of entering into SUM. > > Once I enter SUM, I set it up, via 1 script, which enables d

Re: Add SUM sysctl

2011-04-18 Thread John Baldwin
On Saturday, April 16, 2011 10:24:44 am rank1see...@gmail.com wrote: > 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 -> >

Re: Add SUM sysctl

2011-04-18 Thread Pawel Jakub Dawidek
On Mon, Apr 18, 2011 at 08:24:57AM -0400, John Baldwin wrote: > On Saturday, April 16, 2011 10:24:44 am rank1see...@gmail.com wrote: > > 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, i