From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 16 11:20:07 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E0471065670 for ; Sat, 16 Apr 2011 11:20:07 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id AC89B8FC1B for ; Sat, 16 Apr 2011 11:20:06 +0000 (UTC) Received: by wwk4 with SMTP id 4so374455wwk.1 for ; Sat, 16 Apr 2011 04:20:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:from:to:subject:date:in-reply-to :references:x-mailer; bh=BvC0nJSvH0VlOR89SfWLHjeyi9Q9BNZDxCKhLDVbmZ0=; b=CzatlE4cRKHRFuCeKGtxDJpkEioIVTku5dEsFZZcN4n9XF0F+JDW8Uan+Rn+xGEFy1 ps30nDkUtXdO2z3EkCbUTs0TbcoSfQnSNCxLdojEDJQA4XHgBxTnf743oGWO3/vh0zed YG4WwxVHA1qO4V2VV4tBYhk9uk5i5g6gGLj0c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:subject:date:in-reply-to:references:x-mailer; b=BWlcdpfvAxZvUHuup29+KfsRgQZPGqSWytZrYJT23NebQ65WeoAa8/YjsYykR2gby8 gZWXW3+799tpIqEKOInDos+J6Cq4naA97VEbo3E1WN+GC6YIc2XL210MYHYPQ6dKEhtp MSuAAxVYzdoEU4E+ZRU7++ssyN3raTEZGRh64= Received: by 10.216.62.137 with SMTP id y9mr8419901wec.107.1302952805565; Sat, 16 Apr 2011 04:20:05 -0700 (PDT) Received: from DEV ([82.193.208.173]) by mx.google.com with ESMTPS id d59sm1695900wed.45.2011.04.16.04.20.01 (version=SSLv3 cipher=OTHER); Sat, 16 Apr 2011 04:20:03 -0700 (PDT) Message-ID: <20110416.111455.390.4@DEV> From: rank1seeker@gmail.com To: freebsd-hackers@freebsd.org Date: Sat, 16 Apr 2011 13:14:55 +0200 In-Reply-To: <6F20BB76-0D6A-4AB5-99DF-15954D8C2C9D@gsoft.com.au> References: <20110415.150349.671.1@DEV> <22B12EE4-AE7B-49F7-B6BA-3FE7F967F508@gsoft.com.au> <20110415.154921.875.2@DEV> <20110415.171211.343.3@DEV> <6F20BB76-0D6A-4AB5-99DF-15954D8C2C9D@gsoft.com.au> X-Mailer: POP Peeper (3.7.0.0) Subject: Re: Add SUM sysctl X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Apr 2011 11:20:07 -0000 > On 15/04/2011, at 19:12, rank1seeker@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. > > 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 Cross the Road? Why ... Is it really a relevant for this discussion?! 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!) 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.