[Toybox] [PATCH] hostname: fix behavior when in jail.
Rob Landley
rob at landley.net
Sun Jan 20 21:16:25 PST 2019
On 1/20/19 4:27 PM, enh wrote:
> On Sun, Jan 20, 2019 at 2:20 PM enh <enh at google.com> wrote:
>>
>> On Sat, Jan 19, 2019 at 12:43 PM Rob Landley <rob at landley.net> wrote:
>>>
>>> On 1/19/19 1:41 PM, enh via Toybox wrote:
>>>> Only -d and -f should cause a DNS lookup. The rest should just act
>>>> directly on the result of gethostname(3). Encountered with the AOSP
>>>> buildbots' use of nsjail, but tested with both the Debian hostname and
>>>> toybox hostname thus:
>>>
>>> Applied.
>>>
>>> I'm rooting on this build work from a distance, sorry I haven't been more direct
>>> help.
>
> (also, i'm not sure what could have been more "direct help" than
> writing all this stuff in the first place! it's pretty cool that the
> majority of the "fixes" needed for the AOSP build have been nothing
> more than adding long options corresponding to already-implemented
> short options. even looking at the much smaller number of real
> "fixes", most of them added missing features rather than fixed some
> incorrect behavior.)
This stuff has bit-rotted a little since Aboriginal Linux went dark,
since I'm no longer regression testing it against the Linux From
Scratch build and haven't had a chance to get that up and running
again in the next context. (A test suite is never a replacement for
running as much real-world data as possible through the thing.)
But I've been working on building the smallest/simplest Linux build
environment that can rebuild itself under itself and natively
bootstrap up to arbitrary complexity under the result since 2001. :)
(https://landley.net/aboriginal/old was the version using User Mode
Linux as its native build environment, before I got QEMU to work
and restarted a fresh simpler version. It was also before git/hg
came out and my source control was "tarball du jour" because _I'm_
not setting up a CVS server. Ah, the folly of... my early 30's.)
I wrote up http://landley.net/aboriginal/history.html once but
it trails off into "todo: finish this" somewhere in 2006. (About
the time I started toybox, in fact.)
If you get AOSP building with this stuff, I need to use the
AOSP build as my regression test. Which means I need to get that
working and at least booting the result under QEMU. Which means
getting the devuan install on the new machine working.
Rob
(The System76 people used hardware from people too cheap to install
ROM in the wireless card to hold the firmware, so they want the
firmware loaded by the driver, and of COURSE debian is pearl
clutching that we don't have the souce code to the ROM binaries
so they can't POSSIBLY include it in the boot ISO even though the
installer tells me the NAMES of the files I need to go track down,
except that Devuan 2.0 "ascii" is the first version that
doesn't map directly to a Debian release, which means I can't
just grab the ones off the debian website, and devuan itself
hasn't quite got the userbase yet for this specific card to
be mentioned on the first couple pages of hits. Sigh. The usual.
Linux on the desktop: smell the usability!)
More information about the Toybox
mailing list