From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 0C0E6E00BE0; Thu, 5 Jun 2014 03:44:39 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.1 X-Spam-HAM-Report: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (auslands-kv[at]gmx.de) * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [80.91.229.3 listed in list.dnswl.org] * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id A67BFE00B74 for ; Thu, 5 Jun 2014 03:44:32 -0700 (PDT) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WsV9p-000798-P8 for yocto@yoctoproject.org; Thu, 05 Jun 2014 12:44:29 +0200 Received: from 80-218-32-173.dclient.hispeed.ch ([80.218.32.173]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Jun 2014 12:44:29 +0200 Received: from auslands-kv by 80-218-32-173.dclient.hispeed.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Jun 2014 12:44:29 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: yocto@yoctoproject.org From: Neuer User Date: Thu, 05 Jun 2014 12:44:17 +0200 Message-ID: Mime-Version: 1.0 X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 80-218-32-173.dclient.hispeed.ch User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 Subject: Problems with postinstall X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jun 2014 10:44:39 -0000 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Hi I am desperately trying to get some postinstall scripts working. They should replace some defualt files with custom files I have. They are all in one package. The package looks like this: do_install() { install -d ${D}${sbindir} install -m 0700 ${S}/sbin/* ${D}${sbindir} install -d ${D}${bindir} install -m 0755 ${S}/bin/LEDstatus ${D}${bindir} install -d ${D}/etc/udev/rules.d install -m 0644 ${S}/udev/* ${D}/etc/udev/rules.d/ install -d ${D}/etc/ssh install -m 0600 ${S}/ssh/ssh_* ${D}/etc/ssh/ install -m 0644 ${S}/ssh/authorized_keys ${D}/etc/ssh/ install -d ${D}/etc/gnupg install -m 0600 ${S}/gnupg/trustedkeys.gpg ${D}/etc/gnupg/ } # Overwrite some configuration data with specific files pkg_postinst_${PN} () { install -o root -g root -m 0600 ${S}/ssh/sshd_config ${D}/etc/ssh/ install -m 0755 ${S}/etc/rc.local ${D}/etc/ install -m 0644 ${S}/etc/watchdog.conf ${D}/etc/ install -m 0400 ${S}/etc/shadow ${D}/etc/ install -m 0440 ${S}/etc/sudoers ${D}/etc/ install -d ${D}/etc/default install -o root -g root -m 0644 ${S}/etc/default-ntpdate ${D}/etc/default/ntpdate } RDEPENDS_${PN} += "ntpdate udev ssh sudo" FILES_${PN} += "/*" I even tried changing the ownership of the files, but that did not change aything. Am I doing this completely wrong? Thanks for any hints Michael