This is an automated email from the git hooks/post-receive script.
boklm pushed a commit to branch main in repository builders/rbm.
The following commit(s) were added to refs/heads/main by this push: new c485326 Bug 40043: container: add rbm to /etc/hosts by default c485326 is described below
commit c48532692f8c5a412da891b3d43bd46a24cd179e Author: Nicolas Vigier boklm@torproject.org AuthorDate: Mon Jul 25 09:33:56 2022 +0200
Bug 40043: container: add rbm to /etc/hosts by default --- container | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/container b/container index 8e00108..662ec85 100755 --- a/container +++ b/container @@ -96,6 +96,8 @@ sub run_chroot { local $File::Copy::Recursive::CopyLink = 0; fcopy('/etc/resolv.conf', "$rootfsdir/etc/resolv.conf"); local %ENV = (); + path("$rootfsdir/etc/hosts")->append("\n127.0.1.1 rbm\n") + unless grep { m/^127.0.1.1 rbm$/ } path("$rootfsdir/etc/hosts")->lines; system('hostname', 'rbm'); my $res = system('/usr/sbin/chroot', $rootfsdir, @$cmd); do_unmounts($rootfsdir);