From patchwork Tue Apr 17 18:50:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Maciej Nowak X-Patchwork-Id: 899551 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=o2.pl Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="QXIRf3E3"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40QZDF6zqgz9s1t for ; Wed, 18 Apr 2018 04:54:21 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=A1gli9Q7z0YJOo96i3AutFQp+t8gbYuVN0A0L9PIqdk=; b=QXIRf3E3qhO4x0 v9PO+JsrqUV75+da1D2bzNLUfJBOcubSSSsVGSu6N85+gvMOBpF0LUGQVaFYqgoOaiet2wd5rUTsd YPEkuQc1NuGjgKCGsU7gQ3Kn7CGSb8T8a90/2bdlEl0sJfVjDEPk/DKTaueIHk4H/dGsa3qsS0+Ez aVbu7koab047/9vpL5kuzrk5oE8+JIMEGde01fizyC5YWux81nxwWA08HYu/C1zhScP23mHaKbC/+ mn6b7YoPfwTM7Z4uB5pvHCJvVtjGMzxtB+/0hF2giBuQOPG8XjK8IqYWyrPjBAkvmI7J7V/v/DYDm FUlHh7Ond2dvULJbmFPQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f8Vk6-0007by-7x; Tue, 17 Apr 2018 18:54:14 +0000 Received: from mx-out.tlen.pl ([193.222.135.142]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f8Vgb-00066W-EJ for lede-dev@lists.infradead.org; Tue, 17 Apr 2018 18:50:52 +0000 Received: (wp-smtpd smtp.tlen.pl 1854 invoked from network); 17 Apr 2018 20:50:22 +0200 Received: from 131.ip-164-132-48.eu (HELO localhost.localdomain) (tomek_n@o2.pl@[164.132.48.131]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 17 Apr 2018 20:50:22 +0200 From: Tomasz Maciej Nowak To: lede-dev@lists.infradead.org Date: Tue, 17 Apr 2018 20:50:01 +0200 Message-Id: <20180417185005.5810-3-tomek_n@o2.pl> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180417185005.5810-1-tomek_n@o2.pl> References: <20180417185005.5810-1-tomek_n@o2.pl> MIME-Version: 1.0 X-WP-MailID: 45a9e1315a8b18abd325d1aaf90fe95c X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000002 [EQHB] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180417_115037_750844_37D6B6EB X-CRM114-Status: UNSURE ( 7.84 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 1.3 (+) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (1.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RCVD_IN_RP_RNBL RBL: Relay in RNBL, https://senderscore.org/blacklistlookup/ [193.222.135.142 listed in bl.score.senderscore.com] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [193.222.135.142 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [193.222.135.142 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (tomek_n[at]o2.pl) Subject: [LEDE-DEV] [PATCH v2 2/6] x86: mount writable bootfs X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Philip Prindeville , Matthias Schiffer , Tomasz Maciej Nowak , Zoltan HERPAI Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Mount boot file system with rw option to allow installation of packages which install files to /boot directory. Signed-off-by: Tomasz Maciej Nowak --- .../linux/x86/base-files/lib/preinit/79_move_config | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/target/linux/x86/base-files/lib/preinit/79_move_config b/target/linux/x86/base-files/lib/preinit/79_move_config index 7b34d9e5da..debce43557 100644 --- a/target/linux/x86/base-files/lib/preinit/79_move_config +++ b/target/linux/x86/base-files/lib/preinit/79_move_config @@ -8,16 +8,12 @@ move_config() { if export_bootdevice && export_partdevice partdev 1; then mkdir -p /boot - if mount -t ext4 -o ro,noatime "/dev/$partdev" /boot; then - if [ -f /boot/sysupgrade.tgz ]; then - mount /boot -o remount,rw,noatime - mv -f /boot/sysupgrade.tgz / - mount /boot -o remount,ro,noatime - fi - mount --bind /boot/boot /boot + mount -t ext4 -o rw,noatime "/dev/$partdev" /boot + mount --bind /boot/boot /boot + if [ -f /boot/sysupgrade.tgz ]; then + mv -f /boot/sysupgrade.tgz / fi fi } boot_hook_add preinit_mount_root move_config -