From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7176574728906211328 X-Received: by 2002:a05:6870:d252:b0:144:e426:c4f2 with SMTP id h18-20020a056870d25200b00144e426c4f2mr567247oac.75.1671810235309; Fri, 23 Dec 2022 07:43:55 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6870:711:b0:143:408e:349 with SMTP id ea17-20020a056870071100b00143408e0349ls1758464oab.6.-pod-prod-gmail; Fri, 23 Dec 2022 07:43:54 -0800 (PST) X-Google-Smtp-Source: AMrXdXs+FB55YNKIex+8DVnaxs9pU2ceL5p24Yu10eppbusQpBYh5scaTM+htkzsXDmbAXnmR3fN X-Received: by 2002:a05:6870:c103:b0:143:b833:b5c5 with SMTP id f3-20020a056870c10300b00143b833b5c5mr4569904oad.50.1671810234827; Fri, 23 Dec 2022 07:43:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671810234; cv=none; d=google.com; s=arc-20160816; b=Mr+MM0CfZyMiMz7boDaUPK9BBpd4oET6Zyzi6/LPXBhGiS9gbV6iKYJZ8Ry6mD+LFY JfeAirryZPduyBsxMpenGFnH1OB0xbq+Kazc1f5tLyGOL/iB0YCiLNxvHvP777rfX0oh uHdc4Nd/3B44HXSPhFGEjQ/rmHrtEEQolsH61dy81xIUBc/PzdplLSI7ymh4T4Wxc3PM vrs9FiH0ipslP2PPjQMQiOOE4UXVhmOQM3/CrS0pF3AjmHBAccyyTIajXdwVpuAVx5aI YjteNwS6hcYKgzfgcyGWPTUmWQmLGD0TJQok63k6NynrNlLGzBC2tNnahXUpbVj40Epy NKaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=oe0lHw2OFmW9oZateVZh4Vg5WbfcFVLOoWl5g7JEZag=; b=EHU67YHP77xpGDe9LYxyilRXMOURiGIUN1vg8scfT5q4JCWIC9W1nVEFezQsoM6VBb opK3hnPFrsQmmSp/aRanHqB7IUmKNDZ7vxPLPBnVPqpvdlSucF78sXbpZcVkzXv1ZEh7 JaQimKrFP9ZsiyE9ixN3gH3H1beUvijL3FDqfrvMajd1RC0OMpV70xiwFWDYRea2mpH5 9La5cZp73h2jMlGs9er2cSngtV7271dHGbosMPbqMQhQMAlT2Dmp/o/CpLRAahTNCw8z ZieAEM96p3khascJavhxDIpgLblowrGVqqHGbkyA1SCQtsu661yTJQi1hIkk4PrVSpam YruA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GVVPdNp6; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::732 as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com. [2607:f8b0:4864:20::732]) by gmr-mx.google.com with ESMTPS id b2-20020a056870d1c200b001480308ea6csi408526oac.0.2022.12.23.07.43.54 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 23 Dec 2022 07:43:54 -0800 (PST) Received-SPF: pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::732 as permitted sender) client-ip=2607:f8b0:4864:20::732; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GVVPdNp6; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::732 as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: by mail-qk1-x732.google.com with SMTP id o14so2544334qkk.5 for ; Fri, 23 Dec 2022 07:43:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=oe0lHw2OFmW9oZateVZh4Vg5WbfcFVLOoWl5g7JEZag=; b=GVVPdNp69vFM2QztO3tnO+AmdfkitXOEKqxdil9a3+NUit5NScPkEQoSju3D5L+sms M7c9olAU31UjRHHHj8QnEp5sz0ynvWEooV4Vb1Nra7OOooZVjpXOFU2x4aWPnILK86YN XCoGhkbYiVC+opjQvU3N0++aLPa42kNyLKC3/S/bLqvHIjGBAFNktOfWv4u7//CCXrZY RO+mI4NN1nGUwu8LS4C1G2RmLNVjJanUhdrcVE8Cz+s/Jrxp7zAjkg7Fg8gSwausxrew RMsEFqumKCpRlx3/Zog7wcZvozROlLe6xMdu/GnPRrPcQQ/N738osyoQBe0UInRF1g8y LZ3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=oe0lHw2OFmW9oZateVZh4Vg5WbfcFVLOoWl5g7JEZag=; b=Tjq/FlFa+MBMWmtE8jRQWW6BWefGM9v5boEOa5nV93p72yCNI+dhYnsAYeARN19ks+ 4kSlu2lC2Y5sp10DWq5LUDxccARdogKCDSfBYJ7c4faDK+Ay5pvDMQlsxbjnPGS9CY/H s1cC4s2AyiCTHWz6uXLUsaS+DzcJmnV6u7RH1Cb/1XLGJgocoDa+8orrD6pa/WYi0yG2 vl14fAhE/WXx7J9OPFH8fE8RT4FgzWRCpvuuTF3XpBbfsJ+1l4J0E1QhLTQXbzBUMxzx Wb1UOvYXW0HlNDeGM1ktx5zX/BX7FgttfMvjkj2vIMXcCE7jNYlRXS6k00uJdpSWRHaR 8BZA== X-Gm-Message-State: AFqh2krufZ3jeyU5qF2u6u1NnXnEwhKT66mgpjw45nDiZ+GU1H4QZz4Y lFVCaQ9Vny5sgFoEIKd+7SbSKK5VD4lIiNEMEG02p8Q65A== X-Received: by 2002:a05:620a:1a9c:b0:6fc:9680:fd44 with SMTP id bl28-20020a05620a1a9c00b006fc9680fd44mr473568qkb.223.1671810233963; Fri, 23 Dec 2022 07:43:53 -0800 (PST) MIME-Version: 1.0 References: <20221223085529.8835-1-henning.schild@siemens.com> <20221223085529.8835-6-henning.schild@siemens.com> In-Reply-To: <20221223085529.8835-6-henning.schild@siemens.com> From: "Roberto A. Foglietta" Date: Fri, 23 Dec 2022 16:43:18 +0100 Message-ID: Subject: Re: [PATCH v7 5/6] meta-isar: install expand-on-first-boot in most images and add space To: isar-users@googlegroups.com Cc: Henning Schild Content-Type: text/plain; charset="UTF-8" X-TUID: Rt1ZozFdqQOJ On Fri, 23 Dec 2022 at 09:55, Henning Schild wrote: > > Here we take the most common and generic images and add some empty space > at the end of then. > This will enable better interactive use of our example images since > people will have some space to install some more packages. While the > space seems fixed it really is open end if the mass storage happens to be > bigger, because we install expand-on-first-boot as well. [...] > +++ b/meta-isar/scripts/lib/wic/canned-wks/expand-padding.wks.inc > @@ -0,0 +1,5 @@ > +# some extra space we put in the end after the last partition > +# that allows testing expand-on-first-boot while at the same time > +# making our images more useful because they have space to play around > + > +part --source empty --no-table --ondisk sda --size 256M This approach works only if the expand last partition is installed and works but only after the first boot into a device or a virtual machine. Otherwise this space will remain unavailable. For example, if someone chroot into wic image for applying some changes s/he wants to test before integrating into a recipe. An alternative to add extra space into the disk, is to add it directly into the rootfs with these two last options: part / --source rootfs [...] --extra-space 1G --overhead-factor 1.2 I developed wicshell.sh in order to automatize the operations of chroot into the .wic image and also sharing a folder with the host which is always useful when ssh/scp is not available. https://github.com/robang74/isar-nvidia-debian/blob/main/wicshell.sh Moreover, I saw that there are .conf files for producing vmdk and ova files. IMHO, a more general and flexible approach is to create these files directly from the .wic image, like in my project wicinst vmdk:$filename.vmdk [disk_size_in_gigabytes] wicinst ovaf:$filename.ova [disk_size_in_gigabytes] https://github.com/robang74/isar-nvidia-debian/blob/main/wicinst.sh I hope you are going to take in consideration this approach to simplify the access of these functionalities which are documented into my project README.md Every suggestion and critic in order to improve this approach will be welcome. Best regards, R-