bug#9067: Feature patch for chroot, adding --hostname parameter
From:
zaerc
Subject:
bug#9067: Feature patch for chroot, adding --hostname parameter
Date:
Wed, 13 Jul 2011 12:46:10 +0200
User-agent:
SquirrelMail/1.4.18
Hello,
Here is a small patch to chroot that adds the ability to run the chroot
environment with a different namespace for the hostname.
I am hoping that other people (besides myself) will find this feature
useful, and that it will be considered for inclusion in the excellent
coreutils suite.
The additional code is plainly stolen from Michael Marineau's chname tool,
so I reckon most of the credit should go to him. (see
http://mike.marineau.org/blog/code/2007-07-23-giving-chroot-its-own-hostname-chname
)
With kind regards,
Zaerc Rene.