From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 28 Nov 2025 10:02:55 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-lj1-f184.google.com (mail-lj1-f184.google.com [209.85.208.184]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 5AS92r0f026109 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 28 Nov 2025 10:02:53 +0100 Received: by mail-lj1-f184.google.com with SMTP id 38308e7fff4ca-37baaf7f2a1sf7695151fa.1 for ; Fri, 28 Nov 2025 01:02:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1764320568; cv=pass; d=google.com; s=arc-20240605; b=Q/hV5B8fp4HGJut3AkC7gQ1I5CKdP01x1sXchZKJblpBwRkZF0T6l5ajLkuXLclBdI Vs/XZJGDReEmHFvtmUGkb5mM9hNHbJUBPx/owuRZDusaDxJjVIw134Xwc0egKxP7YWir 9W5DfabRn5XGMIYcPOv3+q2B5EX2cG/dIXWbelk2hYsviPiKZI1paECojC7yEMWR+P4S uOFqeblT3vY2aKDnm06t/ZBFtxo0WLCy3xQMyTPbWlKp/fA1WhfMQDfHJRFsbwgpYW8p a8KOLRqhA/vm7UMbdjKj+uZ26oCr6ONY3tCXXOZeFY2utoCgxcQPpBM1wVEmrOsd1dvV 0hZw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:content-transfer-encoding :in-reply-to:from:content-language:references:to:subject:user-agent :mime-version:date:message-id:sender:dkim-signature; bh=2gJh6jogW8xVflml1CPcUZZOS+OAwnD3bQ/gkahEmkI=; fh=3DiyaMT+dvPdapsqnDZZ0v1KM04JUTutiIvuqHcVc9A=; b=FexnjkZTwVTA9bTcITX7nzUXWdmX32JyjG2PkJI+WOEpZLnxW7zys6vuqQe/Sa/Mtc lrDOn0tdtlvUEkyFLEVIU5nb2yQA2M+U/rDbO3rhRmmQxd44q4rs8yQJKvvRJVX0Rvj8 obDvYcxX3GxtyVpmz12Kybd6w0mF/Efy0Kypy2Ya+B7xzKs6J+swHHEWMFwGPxILmH6E PPadmpnFnENZJOW6yojPyGQK4S3+xcP2pFS6hJ9yYxiOjrWGPYMx8ze213uMCzX/VFUx Hsyq6y9GocFmuQev8/h8f2rSAPHbKrlzz8/jBHLrXecaqfqCL3+q9hCccAeU+3fcUpYB y5cA==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1764320568; x=1764925368; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:content-transfer-encoding:in-reply-to:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=2gJh6jogW8xVflml1CPcUZZOS+OAwnD3bQ/gkahEmkI=; b=TExvRp0B5pxl1in5bOqubyfFGFGDGrOMpjjRt6+jvrGiiIKUEZhMcMR2AKlzXwT9uk +Bd+Tokiq/4qT6k18zGmGkysIEAxKmNE1zKT8sZJ9656WXVG1LvpspYdvgz1wRISRYq0 PeakRPHbWwiSCaLB6voGtRaWk1Bwd9DVDmNhJw4oNA1ngNALsXRyk6XLDdENI9s8dA46 Izr78gfjU0DczXxis85/Xmeka91fzLef518aXKrFO4nQlmQzn4UPdKd25wnjHbE9MeaH r17K25mCJAJ0Zr1w8zKkZCTVvMner0mT5oeflEkYPG7UB00FQMRlxJh+m46/clIL2Jfp iW6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764320568; x=1764925368; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender :content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=2gJh6jogW8xVflml1CPcUZZOS+OAwnD3bQ/gkahEmkI=; b=FqLyPBxuT3i6aWHe0dy8hK4SfDrkNIG67taTB+Lxz6ayJKJsAezXkyStVddJbfcGeN bAW+kbN11VrQ8NIfk/yecXxSF/VwL+E9N1MSCfFHcSBjO9HLuQwxK9OWS8qtepIKob2S wToj1X4BJmCDJqmIliZc00D6mvfJF5T5EGtgGItgqDf6F92M2t2giP45iVsUjzFiPpkU Xg6GKqrgeam7pl4WeklK4KQn6ZH54LjzGya8VxCQR8oVHZY7orifP4q5SgH/cOYMRTcf dyaCGuSc4tZiNM1TdlTEW0C+Be46E0XN4XeQtxgJAoCT7d5djI5BmsnKi55MkfjXiS9a rQdg== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCVigA+jdEmocChqNOxksGCrVEu3m14SV5m4y+UuEib4cQG1iXdVDPPOWB+uxPj93YE5ZwP9@ilbers.de X-Gm-Message-State: AOJu0YwbwXn49NoT3QM0sia6z0aCg3AxYMASAOHLkWFW2aj9TIKL7OlR DeOKodtTo73i8z0WVs6wWPvpxCSFVwRWxyM1Q4ALc4nM0qg5M882mlIM X-Google-Smtp-Source: AGHT+IHSpESY1gXQaOIy0CYV0C+85S3sEsGQiEuOdMMYObWdqbMYH9dE7UuhYZvJyMzZCwWlUqYwGA== X-Received: by 2002:a2e:9d90:0:b0:37a:39fb:b2f1 with SMTP id 38308e7fff4ca-37cd922018emr58637341fa.27.1764320567935; Fri, 28 Nov 2025 01:02:47 -0800 (PST) X-BeenThere: isar-users@googlegroups.com; h="Ae8XA+bERU+D48QRrIqJIetIoP3+8F1N+NYHuwfcjkewa5N6GQ==" Received: by 2002:a05:651c:25d9:20b0:37a:7d5e:db6e with SMTP id 38308e7fff4ca-37d205403d7ls1528871fa.2.-pod-prod-05-eu; Fri, 28 Nov 2025 01:02:45 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVkRyZ49+huzStF6+gY+lojytkmAwg+PpFARAO+q+S8Ou7nPUTAyo27TFNIg5kK8Tt5QLPs//Mm7HIv@googlegroups.com X-Received: by 2002:a2e:9ac4:0:b0:378:e097:e16e with SMTP id 38308e7fff4ca-37cd9259dfemr55848951fa.36.1764320564617; Fri, 28 Nov 2025 01:02:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1764320564; cv=none; d=google.com; s=arc-20240605; b=l1hahb223FcWvdHilHxO0POb0vOT43i2gDFxOr84/9rt1H5M51NGZisq9jA8zokVEp Jef2mDar2RnQmLuyLQtNZj4fHUKLPsLZb0hWtiRALDn4H476vV9rmbaLqDuRXlVUmhJ0 max0MFOWtYrRW4c80ojHDqBDrrTzoii0IO+1ylo3PwulyytKKmFg3KWU/uKO5EqLCMz8 vVrwj7DVJ6/6k2aw7tAGX9jXUMtWR5zwiCmJ6wcszIpFmnVLKH2U9Sm74kAxVNNuA9Tv zzTWZxrI8s20m/Pf69wKuL8lWGrAkhhXku2ZgJJ1v4mESmFqlWMr3GCNTPbGWxi3bxzr JgrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id; bh=crLLzXJkbOlrD1syFQl29w1goJXKyIwnXzRJk5+2j6s=; fh=FowF3TMJ+lOZLCXQvONyEnyth6gr71YGDdjMePoC2V8=; b=OXT6IK4eNVmklVlpEyLKm2B0C3ll6tSqBn8+EuXbxgVW7WANrNjtrnpbmUOWrYFf4S RLMM+VrxzMTiylIotkPbnEUexZwpleFYXR8hdv6jQVs0b60hLmseXrlxpg6c1x+0loqZ NXEmlsyGQ6ekM6I4j32UPgVC927onlHUVeqeqEfKLgB0baUC6KG+nRrFWerFYgESOI2t t922SYIB9lZgcsdsXtX9xoRKyT+NCGZ8wWpn32xasbZx0RsrBRoo285b4brPzGpBHeIj vhrWWHxPDSz4CXjQzaOx5U3DUOWXhBlXBqxD2c7CZR6Xy0juneKg/Tq+2sDIWFxCVZQs 8j4A==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 38308e7fff4ca-37d240de82asi478951fa.7.2025.11.28.01.02.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 28 Nov 2025 01:02:44 -0800 (PST) Received-SPF: pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from [192.168.178.117] ([88.130.203.42]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 5AS92f0a026086 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 28 Nov 2025 10:02:41 +0100 Message-ID: <204e36db-d3a1-4ec1-ac3b-c09a1ffc841a@ilbers.de> Date: Fri, 28 Nov 2025 10:02:41 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] isoimage-isohybrid-isar: fix disk full if no initrd exists To: Quirin Gylstorff , isar-users@googlegroups.com References: <20251126114431.20236-1-Quirin.Gylstorff@siemens.com> <20251126114431.20236-2-Quirin.Gylstorff@siemens.com> <05eee0e1-bbe2-492b-b94a-2bf082259f69@siemens.com> Content-Language: en-US From: Zhihang Wei In-Reply-To: <05eee0e1-bbe2-492b-b94a-2bf082259f69@siemens.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-Original-Sender: wzh@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-TUID: ybcwu/cp1ave On 11/27/25 12:10, 'Quirin Gylstorff' via isar-users wrote: > > > On 11/26/25 12:43, 'Quirin Gylstorff' via isar-users wrote: >> From: Quirin Gylstorff >> >> If no initrd was generated during the rootfs build the wic plugin >> uses the existing rootfs as initrd. The plugin uses shutil.copytree >> to copy the rootfs to a new folder. As the rootfs contains `/dev/full` >> this will fill the disk until it is full. >> >> To avoid this error ignore all files in `/dev/` of the rootfs. >> >> Tested-by:=C2=A0=C2=A0=C2=A0 Herbert Bernecker >> Signed-off-by: Quirin Gylstorff >> --- > /dev should be populate by mmdebstrap so another way should be > --skip=3Doutput/mknod or=C2=A0 --skip=3Doutput/dev=C2=A0 but during the i= nitial > testing these option broke package builds. > > Quirin > This patch has passed CI and LGTM. We'll merge this by end of this=20 workday if no more discussion is coming. Zhihang >> .../lib/wic/plugins/source/isoimage-isohybrid-isar.py=C2=A0=C2=A0=C2=A0= =C2=A0 | 8 +++++++- >> =C2=A0 1 file changed, 7 insertions(+), 1 deletion(-) >> >> diff --git=20 >> a/meta/scripts/lib/wic/plugins/source/isoimage-isohybrid-isar.py=20 >> b/meta/scripts/lib/wic/plugins/source/isoimage-isohybrid-isar.py >> index 690e291e..fb6c6b39 100644 >> --- a/meta/scripts/lib/wic/plugins/source/isoimage-isohybrid-isar.py >> +++ b/meta/scripts/lib/wic/plugins/source/isoimage-isohybrid-isar.py >> @@ -203,8 +203,14 @@ class IsoImagePlugin(SourcePlugin): >> =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 # Create initrd from rootfs directory >> =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 initrd =3D "%s/initrd.cpio.gz" % cr_workdir >> =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 initrd_dir =3D "%s/INITRD" % cr_workdir >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 def = ignore_contents(src, names): >> +=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 if os.path.basename(src) =3D=3D 'dev': >> +=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 return names >> +=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 return [] >> + >> =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 shutil.copytree("%s" % rootfs_dir, \ >> -=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 "%s" % initrd_dir, symlinks=3DTrue) >> +=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 "%s" % initrd_dir, \ >> +=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 ignore=3Dignore_contents, symlinks=3DTrue) >> =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 if os.path.isfile("%s/init" % rootfs_dir): >> =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 shutil.copy2("%s/init" % rootfs_dir, "%s/ini= t" %=20 >> initrd_dir) > --=20 You received this message because you are subscribed to the Google Groups "= isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/= 204e36db-d3a1-4ec1-ac3b-c09a1ffc841a%40ilbers.de.