From patchwork Mon May 27 10:36:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 246570 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id E32222C02C9 for ; Mon, 27 May 2013 20:37:09 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 45D6124A97; Mon, 27 May 2013 10:37:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cAjbrwMLVmsJ; Mon, 27 May 2013 10:37:05 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 7D45925E21; Mon, 27 May 2013 10:37:04 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 181788F7A4 for ; Mon, 27 May 2013 10:37:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9EB3A8D37B for ; Mon, 27 May 2013 10:36:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t4Ig-4P8jN1p for ; Mon, 27 May 2013 10:36:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f172.google.com (mail-we0-f172.google.com [74.125.82.172]) by whitealder.osuosl.org (Postfix) with ESMTPS id 6FD898D341 for ; Mon, 27 May 2013 10:36:54 +0000 (UTC) Received: by mail-we0-f172.google.com with SMTP id w62so4240134wes.31 for ; Mon, 27 May 2013 03:36:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references; bh=5/4ukWtGy+PCdeX+b3UZahlacTy17Jh14Go1KMXGttI=; b=SCFl7e86X5M8y5l9WtfNJvVnC8lOvO+aTy4YPmW2lksDVwZBGSVdxVgIuEmHllR55x tNhMk4NpVORU/v5ES9lb9vwZ98Z9i5/JHfVpl0D3tNAOX5MToKs5KcJ6FhvmfLCqqxGm I6Abu6DR8KD8z+oFd/2MpbTE+Dth9SKFAouVBSr8s81RJaaPIlOOYRb6QQJa2Y/k0b7x EpphTCkgMExH75OF7KmkI0r5/XmVXh1tBLR0ocuIgk1FnS8ZzXNZMiw4pORGk9LXTfYy /CWQOh4gxMtTICiRy0wg1U+WHr+EGyabbhsyWYEDNYoINANGJsoJ4V3S5O1CDmR1aI3K Yzow== X-Received: by 10.194.237.133 with SMTP id vc5mr8309307wjc.37.1369651013005; Mon, 27 May 2013 03:36:53 -0700 (PDT) Received: from gourin.bzh.lan (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id q20sm16408683wiv.7.2013.05.27.03.36.51 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 May 2013 03:36:52 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@busybox.net Date: Mon, 27 May 2013 12:36:42 +0200 Message-Id: <5bc29f5d47813a98ecd0213cd1312761056e713c.1369650924.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: References: In-Reply-To: References: Cc: Nathan Lynch , "Yann E. MORIN" Subject: [Buildroot] [PATCH 2/4] target: ensure target/ dir is writable X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net From: Nathan Lynch If the source target skeleton is read-only (eg. because Buildroot's source dir is), modifications to the output target (such as creating /etc/hostname and /etc/issue) fail. Signed-off-by: Nathan Lynch [yann.morin.1998@free.fr: we use rsync now, not cp; --chmod=Du+w suggested by Arnout; clarify commit log] Signed-off-by: "Yann E. MORIN" Cc: Arnout Vandecappelle --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e8647d1..2a62a65 100644 --- a/Makefile +++ b/Makefile @@ -431,7 +431,7 @@ endif $(BUILD_DIR)/.root: mkdir -p $(TARGET_DIR) - rsync -a \ + rsync -a --chmod=Du+w \ --exclude .empty --exclude .svn --exclude .git \ --exclude .hg --exclude=CVS --exclude '*~' \ $(TARGET_SKELETON)/ $(TARGET_DIR)/ @@ -507,7 +507,7 @@ endif @$(foreach d, $(call qstrip,$(BR2_ROOTFS_OVERLAY)), \ $(call MESSAGE,"Copying overlay $(d)"); \ - rsync -a \ + rsync -a --chmod=Du+w \ --exclude .empty --exclude .svn --exclude .git \ --exclude .hg --exclude=CVS --exclude '*~' \ $(d)/ $(TARGET_DIR)$(sep))