From owner-freebsd-hackers@freebsd.org Thu Jan 2 11:00:14 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 182E81F4360 for ; Thu, 2 Jan 2020 11:00:14 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47pQ6j51zKz4GfF; Thu, 2 Jan 2020 11:00:13 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wm1-x330.google.com with SMTP id p17so5311636wmb.0; Thu, 02 Jan 2020 03:00:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=b7LfDJ9BdrQ37uleNP6N4dSLUDQ70mInD5yoYqwYZrs=; b=k7hz7MqXEo/bpX4Ez6yAMFTCDhtmPCPbPnXjjqoNbvQFXnNcgojJhFQDqbElHIyRza zuIfuCkmglQjUOGh8vT/mLiXmJWOwnQu3hRNLpV9yke9SulL/C04y7vseQIBcTZiALLX hdE3AY/mWnkk3YGyjzoByIstOyYq1mJDqcd83z+kHx1Bh6A4gBxRoMMxf2bseG7wZ/I/ N33mw6J9P3e9/B6MdEhRLFumL6iIFtiKJygY3vOqrQyxQfXlASauC2Yech9akmvUer+0 2kCcshmxyXb+qMzoVYGVT5dFV1MAvumm2h71uQEQ37SGfk7I9ooLPmYMwXw6gUOTnbXD rJIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=b7LfDJ9BdrQ37uleNP6N4dSLUDQ70mInD5yoYqwYZrs=; b=P/zTfE+eZNWCuakG+u2RQTHz2NvvqgRq43fL0NZ5AZtyiuw3Fv1ud9Rx2erQD+3xMB BGLKhm+pqhNN3j8MT1CaB1BQyWFo4JaMbQ2XCcLXr2hU5ZuoDbzEaYlI6vfl6e8lo5AP qFOAid8q/rRwt0fRIIgsvbHo4agD7vsOLjA61mRX+vGPN/Y9z+hC4Yui7SQwEacZU+eM 91jis3r2ZsdxquHTnPGvXiNQdVjcnLRxXcB5jdv5N9vQ6jIjw/8ywGn+UCb6uzVKxufF UdNo8B64Gqw6p07HAqDqlvvHI32RS/cdy7m9+JrTs3UuWMO34EAZD34ed9/mtVb4EQl0 L7ng== X-Gm-Message-State: APjAAAX9H71sqWs1yWEezSGUDlUDjVMqmMkK9RiXtkPaiiv0Ph6Bk+f4 QybSMaDSeUMq00zu4WkjhJrLYMnY X-Google-Smtp-Source: APXvYqw9mg2p58YajHCyJJVEifCsoJqPegFMmZGUq/5PKtfXrzqSosWWoAs+FI+c/IUyIbJRQO9bqA== X-Received: by 2002:a1c:28d4:: with SMTP id o203mr13837867wmo.123.1577962811946; Thu, 02 Jan 2020 03:00:11 -0800 (PST) Received: from ernst.home (p5B0231C2.dip0.t-ipconnect.de. [91.2.49.194]) by smtp.gmail.com with ESMTPSA id p5sm56288645wrt.79.2020.01.02.03.00.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jan 2020 03:00:11 -0800 (PST) Date: Thu, 2 Jan 2020 12:00:07 +0100 From: Gary Jennejohn To: Gleb Popov Cc: freebsd-hackers Subject: Re: Scripting bsdinstall Message-ID: <20200102120007.3b83af14@ernst.home> In-Reply-To: References: <96ecfc02-04f6-7222-4582-3740c505c7e5@FreeBSD.org> <201912271129.xBRBTrqD050866@kx.truefc.org> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47pQ6j51zKz4GfF X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jan 2020 11:00:14 -0000 On Thu, 2 Jan 2020 13:08:48 +0400 Gleb Popov wrote: > Continuing my quest I met another problem. > > In the setup script I have following line: > > pkg install -y openvpn python python3 > > It gets executed in the chroot, the installed system. During package > installation I see following warnings: > > indexinfo: no such file or directory > POST-INSTALL script failed > > However, when I enter the chroot shell, this binary works fine. > > Any ideas how to fix this? > If you know exactly which binary it is then just put it into its own pkg install line with -I. This flag suppresses running PRE-/ POST-INSTALL scripts. If you don't care which of the three it is then just add -I to the line above. This information is in PKG-INSTALL(8). -- Gary Jennejohn