Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Feb 2003 13:33:37 -0800
From:      Luigi Rizzo <rizzo@icir.org>
To:        freebsd-current@FreeBSD.ORG, freebsd-small@FreeBSD.ORG
Subject:   Re: machdep.guessed_bootdev sysctl on i386
Message-ID:  <20030224133337.C29676@xorpc.icir.org>
In-Reply-To: <200302242013.h1OKDZdr030199@lurza.secnetix.de>; from olli@secnetix.de on Mon, Feb 24, 2003 at 09:13:35PM %2B0100
References:  <freebsd-current.20030224181823.GA369@nitro.dk> <200302242013.h1OKDZdr030199@lurza.secnetix.de>

next in thread | previous in thread | raw e-mail | index | archive | help
sorry for the crosspost but since it originated on -current
maybe people interested in the rest of the discussion were there.

I introduced the sysctl to export some amount of information to be
used by picobsd disks to tell whether you booted from floppy or atapi disk.
In turn, this is useful (and used) if you want to update something
on the boot media for the next boot.

The file system mounted on / has no relation with the boot device, e.g.
in the picobsd case you will have an md disk mounted on root.

So, the proposed replacement is not helpful.

Please do not nuke the sysctl unless you have a replacement that
can work where it is supposed to work.

And if someone wants to propose a replacement, please remember that
"this compiles but i have not tested it" tells absolutely
nothing on how appropriate is the proposed patch.

	thanks
	luigi

On Mon, Feb 24, 2003 at 09:13:35PM +0100, Oliver Fromme wrote:
> Simon L. Nielsen <simon@nitro.dk> wrote:
>  > PicoBSD does not necessarily have awk (actually most likely doesn't
>  > since awk is 'big'). cut could be used instead since it much smaller :
>  > 
>  > mount | grep 'on / ' | cut -f 1 -d ' '
>  > 
>  > Perhaps somebody has a better way?
> 
> Does PicoBSD have sed?  If it does:
> 
> mount | sed -n 's/^\([^ ]*\) on \/ .*/\1/p'
> 
> Doesn't win a beauty contest, but saves one exec.
> (It could be done with ed, too, if there's no sed.)
> 
> Regards
>    Oliver
> 
> -- 
> Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
> Any opinions expressed in this message may be personal to the author
> and may not necessarily reflect the opinions of secnetix in any way.
> 
> "All that we see or seem is just a dream within a dream" (E. A. Poe)
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-small" in the body of the message

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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