From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from cpanel8.indieserve.net (cpanel8.indieserve.net [199.212.143.3]) by mx.groups.io with SMTP id smtpd.web09.21273.1629101905419520498 for ; Mon, 16 Aug 2021 01:18:25 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: crashcourse.ca, ip: 199.212.143.3, mailfrom: rpjday@crashcourse.ca) Received: from cpef81d0f814063-cmf81d0f814060.cpe.net.cable.rogers.com ([174.114.57.56]:35864 helo=fedora) by cpanel8.indieserve.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mFXp9-0002BI-Lc for docs@lists.yoctoproject.org; Mon, 16 Aug 2021 04:18:24 -0400 Date: Mon, 16 Aug 2021 04:18:20 -0400 (EDT) From: "Robert P. J. Day" To: YP docs mailing list Subject: explaining "wks.in" files in wic docs Message-ID: <7b41399f-3d17-d676-4e11-6686f73c3b8@crashcourse.ca> MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel8.indieserve.net X-AntiAbuse: Original Domain - lists.yoctoproject.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - crashcourse.ca X-Get-Message-Sender-Via: cpanel8.indieserve.net: authenticated_id: rpjday+crashcourse.ca/only user confirmed/virtual account not confirmed X-Authenticated-Sender: cpanel8.indieserve.net: rpjday@crashcourse.ca X-Source: X-Source-Args: X-Source-Dir: Content-Type: text/plain; charset=US-ASCII a related number of issues related to explaining the existence of -- and rationale for -- "wks.in" files. at the moment, i see nothing in this section: http://docs.yoctoproject.org/dev-manual/common-tasks.html#creating-partitioned-images-using-wic that covers the possibility of "wks.in" files (unless i totally missed it). down in section 3.16.5: http://docs.yoctoproject.org/dev-manual/common-tasks.html#using-an-existing-kickstart-file one reads how to list all the available images with "wic list images", and one of those listed (canned) images is "genericx86", and a bit further down, you read: "Here are the actual partition language commands used in the genericx86.wks file to generate an image" except there is no file "genericx86.wks", it's "genericx86.wks.in" which caused me a few minutes of confusion as i tried to "find" it. as i understand it, the only additional feature with "wks.in" files is that they would contain variables that need pre-processing. and if that's true, where in the wic processing could someone specify that a "wks.in" file is to be used? i'm looking at the wic script (line 172) and i see: if not wks_file.endswith(".wks"): wks_file = engine.find_canned_image(scripts_path, wks_file) if not wks_file: raise WicError("No image named %s found, exiting. (Use 'wic list images' " "to list available images, or specify a fully-qualified OE " "kickstart (.wks) filename)" % options.wks_fi but that seems to recognize only the ".wks" suffix. where is the support for an explicit "wks.in" file? rday