From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#37162: =?UTF-8?Q?=E2=80=98guix?= pack -f =?UTF-8?Q?docker=E2=80=99?= creates an image without /etc/passwd Date: Mon, 26 Aug 2019 13:39:40 +0200 Message-ID: <87sgpoi29v.fsf@elephly.net> References: <87r25c3p0e.fsf@inria.fr> <87a7bxexs6.fsf@gmail.com> <871rx9jjl2.fsf@elephly.net> <87y2zge11z.fsf@gmail.com> <87y2zg2x7z.fsf@inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:47553) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i2DLv-0004oo-Ph for bug-guix@gnu.org; Mon, 26 Aug 2019 07:40:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i2DLu-00029B-RB for bug-guix@gnu.org; Mon, 26 Aug 2019 07:40:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36881) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i2DLu-00028z-Jl for bug-guix@gnu.org; Mon, 26 Aug 2019 07:40:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i2DLu-00054X-ES for bug-guix@gnu.org; Mon, 26 Aug 2019 07:40:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <87y2zg2x7z.fsf@inria.fr> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 37162@debbugs.gnu.org, Maxim Cournoyer Ludovic Court=C3=A8s writes: >> What use case(s) exactly depend on the presence of the >> /etc/{passwd,group,shadow} files? > > Generally, absent these files, getpw(3) and co. won=E2=80=99t give useful > results, and some applications will behave poorly (e.g., the PS1 prompt > in Bash can=E2=80=99t show the user name; =E2=80=98id=E2=80=99 fails). > > Most of the time it=E2=80=99s just a minor inconvenience. I think it=E2=80=99s fine to add these files to avoid this source of inconvenience. Perhaps it would be good to recommend in the manual the use of =E2=80=9Cguix system=E2=80=9D for those who need more control over the contents of these files. And maybe we can make some really simple template system configuration available to =E2=80=9Cguix system=E2=80=9D without requiring users to fully= specify the operating system configuration. I=E2=80=99m thinking of something like this where %simple-os is made available by default: (operating-system (inherit %simple-os) (packages (list "a" "b" "c"))) -- Ricardo