From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 46B51138330 for ; Tue, 23 Aug 2016 10:01:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B120B21C20B; Tue, 23 Aug 2016 10:01:48 +0000 (UTC) Received: from mail-qt0-f196.google.com (mail-qt0-f196.google.com [209.85.216.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AEBDF21C043 for ; Tue, 23 Aug 2016 10:01:47 +0000 (UTC) Received: by mail-qt0-f196.google.com with SMTP id q11so3622972qtb.2 for ; Tue, 23 Aug 2016 03:01:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=FLBObdeW372A5c+0m/RyJi3mICIcs+Uf3H5UgpRvmew=; b=x+KpJ15yGJTDMNL/CXtTlUXtmfV6GzS5qEe0/TW0QBmyV8vWw5R44VbMM0gzVKZLUA AIcp0SurZFS/7t75AmFplTsTaD3581/ucrkU0UkhbWqrM6cSb5JhnUT/oOOjM5adsTfP w1o5s+8lC/VmDHyQOnZMIUXSgQ/b+dPAJRJWoplQY8Fpog7JEUDAWgZfcak51KxBkEt6 134uu+iMYW6mgXfTuCJ1q0gqv6VLQBXEjcQ+MV9WloUM/ZzbA5iGiAOQSPyC5Qsb7G5c wYY4VWmczHkg3yO8xABlDDz3ZjYjzV4e1iLbFN+Y1xW9aZFXhrhmJIl/Y3fLjJIkiJVH kjXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=FLBObdeW372A5c+0m/RyJi3mICIcs+Uf3H5UgpRvmew=; b=BNTqxOQyhU+dEb+KlkIqZyTKnaCbjyILK8fMlg2XMXezlGtvVtjFvEyyZ6ZeKwEHDy uCyJcjIs7lJ1PshMgimU1hpd42moR6RK+Lgv+/zShCCsYPpvGM8CyG18Rxb1hjjGn03K 7+TKoeDKa0WyE+B8R2jGUEnF7uCDT9Sz2eYylPOxZWfLunudSXCDY7vJhHtMiiTNrgN4 67DrOHwGeDiwaH78CCmaUdY241ITKZT4cxTs0DpGmnHCqvoA+gHpCxRoVj/dSorYnA9x 7iX83Urh16/e1Qs0T5XrALO9slDSscZIatEV0coVNp2hzHaKsfnbWYUNDaMS/lF5M5CK LIWg== X-Gm-Message-State: AEkooutKHZqpEBEdwpnNElOJVIYGYXBhoHcdtkZKAlV7jcZKNLBHeuYqNMRIUGAT8xl7mxEaPC72RKMlNxOZNQ== X-Received: by 10.237.37.99 with SMTP id w32mr28560898qtc.59.1471946506696; Tue, 23 Aug 2016 03:01:46 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Sender: freemanrich@gmail.com Received: by 10.140.40.36 with HTTP; Tue, 23 Aug 2016 03:01:45 -0700 (PDT) In-Reply-To: References: <20160822155808.GA16219@whubbs1.gaikai.biz> <1471894124.32381.0.camel@gentoo.org> <20160822220925.GB18116@whubbs1.gaikai.biz> From: Rich Freeman Date: Tue, 23 Aug 2016 06:01:45 -0400 X-Google-Sender-Auth: GXfI2Y4BpnCFN0H_NDy7H5RGVTg Message-ID: Subject: Re: [gentoo-dev] rfc: /etc/hostname on gentoo To: gentoo-dev Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: 49da0473-6fc8-45e2-8ad8-9023519a9282 X-Archives-Hash: d84e502c74ee1ee407b31c7783391605 On Tue, Aug 23, 2016 at 2:39 AM, Daniel Campbell wrote: > > It makes a bit more sense to rely on previous configuration > (/etc/conf.d/hostname) and write a tiny 'script' that populates > /etc/hostname. bash could do it (naively) in two lines: > > source /etc/conf.d/hostname > echo "$hostname" > /etc/hostname > Seems to me that symlinking /proc/sys/kernel/hostname would be simpler. Also, more reliable, because there are other ways the hostname could be set other than from /etc/conf.d/hostname. The hostname can also change. -- Rich