From patchwork Wed Jul 21 15:45:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 4553 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4GVKfD1ZDSz3xGp for ; Wed, 21 Jul 2021 15:45:08 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4GVKfC1PH3z1v3; Wed, 21 Jul 2021 15:45:07 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4GVKfC00wsz2yxy; Wed, 21 Jul 2021 15:45:07 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4GVKf93DTtz2xCy for ; Wed, 21 Jul 2021 15:45:05 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4GVKf86R1lzm; Wed, 21 Jul 2021 15:45:04 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1626882304; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=qGmzGRVArPZLM8Gl1UzJWvomi7t7cU5Wqu0yubpyN9Q=; b=poAtCBQeMdFP9dYvDnsIBnIW0sZPD6UVGjH9jzLZJ404uogvP9XUnux86IUcIIobRzjCjF QpvEj/erMg37sEBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1626882304; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=qGmzGRVArPZLM8Gl1UzJWvomi7t7cU5Wqu0yubpyN9Q=; b=qX/zluz7ycRHvwrLrAW+te1SC3AI/DI1+ak+gqm6KIK0MKI03w7IcL/rjX0SWa/8KKWL4z QeLDBu/Jl/gMlI+W+H34pRdCD7qvFIrdHLG/y0YQkZVllXEMcwPK0teFhVDNrb7DvUR/D5 PME0OhUVhmnVWJNfqlZAU1MJJT+HIZTJfn+zmhpXlFbDgQYUFZKf753DkCpbEsCRWLtqk+ EhLDmZGC/tlEmB985rhrE5iqDXZD6A5y0wjMW8WLakXmazjeeNwU5Kewe1M8WgEr02Q1Rc eHoQ/Me4Ml3/dTs0ygHhuHmYzXvBqTAtZ0AbEAJ6e0F57YoVaYogPwFER+wxMQ== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH] core159: Fix permissions after extraction Date: Wed, 21 Jul 2021 15:45:00 +0000 Message-Id: <20210721154500.28431-1-michael.tremer@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" There seems to be a bug in tar (which should be gone by now), but on affected systems, we might need to reset directory permissions just in case. Signed-off-by: Michael Tremer --- config/rootfiles/core/159/update.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/rootfiles/core/159/update.sh b/config/rootfiles/core/159/update.sh index 9582c3ece..89ce31111 100644 --- a/config/rootfiles/core/159/update.sh +++ b/config/rootfiles/core/159/update.sh @@ -104,6 +104,15 @@ rm -rf /opt/pakfire/db/installed/meta-libstatgrab # Extract files extract_files +# Fix permissions just in case they broke again +chmod -v 755 \ + /usr \ + /usr/bin \ + /usr/lib \ + /usr/sbin \ + /var \ + /var/ipfire + # update linker config ldconfig