From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1gUAd4-0007S1-R7 for ptxdist@pengutronix.de; Tue, 04 Dec 2018 14:20:47 +0100 Received: by mail-lf1-x130.google.com with SMTP id p86so11923686lfg.5 for ; Tue, 04 Dec 2018 05:20:46 -0800 (PST) MIME-Version: 1.0 References: <20181204075024.doexagkcblyjkrrx@pengutronix.de> <20181204104025.o4bp4azqaczaxlym@pengutronix.de> <20181204115803.42cado2clcrjg27u@pengutronix.de> <20181204125831.foo44hhy5jfzg6ee@pengutronix.de> In-Reply-To: <20181204125831.foo44hhy5jfzg6ee@pengutronix.de> From: Andreas Friesen Date: Tue, 4 Dec 2018 14:25:15 +0100 Message-ID: Subject: Re: [ptxdist] rootfs: package List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: multipart/mixed; boundary="===============0749584965==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de --===============0749584965== Content-Type: multipart/alternative; boundary="00000000000011281e057c3222a9" --00000000000011281e057c3222a9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Also I extracted my opkg.conf from ptxdist after little hack in /usr/local/lib/ptxdist-2018.11.0/scripts/lib/ptxd_make_image_prepare_work_d= ir.sh ptxd_make_image_extract_xpkg_files() { ... cat "${xpkg_conf}" > /tmp/opkg.conf && .. } =C3=A2=C3=A2[$] <> cat opkg.conf option force_postinstall 1 # # /etc/opkg/opkg.conf # src/gz willi http://willi.devel.hbm.com/clipx/soc-packages dest root / arch armhf 10 arch all 1 arch noarch 1 option check_signature 0 #option signature_ca_path /etc/ssl/certs #option signature_ca_file /etc/ssl/certs/opkg.crt Am Di., 4. Dez. 2018 um 13:58 Uhr schrieb Michael Olbrich < m.olbrich@pengutronix.de>: > On Tue, Dec 04, 2018 at 01:47:45PM +0100, Andreas Friesen wrote: > > DESTDIR=3D"/home/friesen/rootfs/rootfs0" strace -orootfs.log opkg -f > > "/home/friesen/rootfs/opkg.conf" -o "/home/friesen/rootfs/rootfs0/" > install > > rootfs_1.0.0_armhf.ipk > > =C3=A2=C3=A2[$] <> cat rootfs.log| grep run > [...] > > mkdir("/home/friesen/rootfs/rootfs0///usr/local/var/run", 0777) =3D 0 > > chmod("/home/friesen/rootfs/rootfs0///usr/local/var/run", 0755) =3D 0 > > creat("/home/friesen/rootfs/rootfs0///usr/local/var/run/opkg.lock", > 0640) =3D > > 4 > [...] > > DESTDIR=3D"/home/friesen/rootfs/rootfs" strace -orootfs0.log > > > /home/friesen/gitlab/quantumx-master/projects/ppc/ptx-multi/platform-soc/= sysroot-host/bin/opkg > > -f "/home/friesen/rootfs/opkg.conf" -o "/home/friesen/rootfs/rootfs/" > > install rootfs_1.0.0_armhf.ipk > > =C3=A2=C3=A2[$] <> cat rootfs0.log| grep run > [...] > > mkdir("/home/friesen/rootfs/rootfs///var/run", 0777) =3D 0 > > chmod("/home/friesen/rootfs/rootfs///var/run", 0755) =3D 0 > > creat("/home/friesen/rootfs/rootfs///var/run/opkg.lock", 0640) =3D 4 > > The opkg.conf template contains this: > > option lock_file /var/lock/opkg.lock > > As a result, the lock file is created there and I don't see this error. > I'm guessing, that you have a custom opkg.conf without this entry. > You need to add it with a path outside of /var/run. > > Michael > > -- > Pengutronix e.K. | = | > Industrial Linux Solutions | http://www.pengutronix.de/ = | > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 = | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 = | > > _______________________________________________ > ptxdist mailing list > ptxdist@pengutronix.de --00000000000011281e057c3222a9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Also I extracted my opkg.conf from ptxdist after little hack in /= usr/local/lib/ptxdist-2018.11.0/scripts/lib/ptxd_make_image_prepare_work_di= r.sh

ptxd_make_image_extract_xpkg_files() {
...
cat=C2=A0"${xpkg_conf}" > /tmp/opkg.conf = &&=C2=A0
..
}


=C3=A2=C3=A2[$] <> cat opkg.conf=C2=A0
option force_= postinstall 1
#
# /etc/opkg/opkg.conf
#
=
dest root /
arch armhf 10
arch all 1
a= rch noarch 1
option check_signature 0
#option si= gnature_ca_path /etc/ssl/certs
#option signature_ca_file /etc/ssl= /certs/opkg.crt


=

Am Di., 4. Dez.= 2018 um 13:58=C2=A0Uhr schrieb Michael Olbrich <m.olbrich@pengutronix.de>:
On Tue, Dec 04, 2018 at 01:47:45PM +0100, Andreas Fries= en wrote:
> DESTDIR=3D"/home/friesen/rootfs/rootfs0"=C2=A0 strace -oroot= fs.log=C2=A0 opkg -f
> "/home/friesen/rootfs/opkg.conf" -o "/home/friesen/root= fs/rootfs0/" install
> rootfs_1.0.0_armhf.ipk
> =C3=A2=C3=A2[$] <> cat rootfs.log| grep run
[...]
> mkdir("/home/friesen/rootfs/rootfs0///usr/local/var/run", 07= 77) =3D 0
> chmod("/home/friesen/rootfs/rootfs0///usr/local/var/run", 07= 55) =3D 0
> creat("/home/friesen/rootfs/rootfs0///usr/local/var/run/opkg.lock= ", 0640) =3D
> 4
[...]
> DESTDIR=3D"/home/friesen/rootfs/rootfs" strace -orootfs0.log=
>=C2=A0 /home/friesen/gitlab/quantumx-master/projects/ppc/ptx-multi/plat= form-soc/sysroot-host/bin/opkg
> -f "/home/friesen/rootfs/opkg.conf" -o "/home/friesen/r= ootfs/rootfs/"
> install=C2=A0 rootfs_1.0.0_armhf.ipk
> =C3=A2=C3=A2[$] <> cat rootfs0.log| grep run
[...]
> mkdir("/home/friesen/rootfs/rootfs///var/run", 0777) =3D 0 > chmod("/home/friesen/rootfs/rootfs///var/run", 0755) =3D 0 > creat("/home/friesen/rootfs/rootfs///var/run/opkg.lock", 064= 0) =3D 4

The opkg.conf template contains this:

option=C2=A0 lock_file /var/lock/opkg.lock

As a result, the lock file is created there and I don't see this error.=
I'm guessing, that you have a custom opkg.conf without this entry.
You need to add it with a path outside of /var/run.

Michael

--
Pengutronix e.K.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|
Industrial Linux Solutions=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0| http://www.pengutronix.de/=C2=A0 |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0=C2=A0= =C2=A0 |
Amtsgericht Hildesheim, HRA 2686=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| = Fax:=C2=A0 =C2=A0+49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutr= onix.de
--00000000000011281e057c3222a9-- --===============0749584965== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KcHR4ZGlzdCBt YWlsaW5nIGxpc3QKcHR4ZGlzdEBwZW5ndXRyb25peC5kZQ== --===============0749584965==--