From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6487938995161399296 X-Received: by 10.202.94.198 with SMTP id s189mr427981oib.61.1510825753107; Thu, 16 Nov 2017 01:49:13 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.157.18.139 with SMTP id g11ls461004otg.15.gmail; Thu, 16 Nov 2017 01:49:12 -0800 (PST) X-Google-Smtp-Source: AGs4zMbbXEIRmArIp3cMZ2SYbGxO2Uy0d1ZSOzzWjsLFH+AKm2eWvJnClBYyRT7Q7IZoThURwFp3 X-Received: by 10.202.7.197 with SMTP id 188mr391181oih.2.1510825752867; Thu, 16 Nov 2017 01:49:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510825752; cv=none; d=google.com; s=arc-20160816; b=m033iHCDptEjj7AkHx+HSsq4mTCSVREXWpWqlfcHVfw/Hw2doBuEKholLouPxdLPNf PIN4WMo9Incc/yPJdgi8E+mr0b3fnkrBqFrQkl7NT1ReDg+OQau4DsLnYJIcGfpqjOkU uemXIe0x8qPrdGfp7xx+Y0I0g4TTQZYQBxEDfUhYs0bjLiLlkSCeauHNlQil5GJ3Sprc d18/Iaal0mF9ikg1YpQCzej8+hJjqUT5mGeG8dG6wPy+nwPfxPK8WOQSj8BashrfTPOQ aWHR361hq5/+HjayqTKJMsvmJV/63e6D8i9CxQaA22YAwVjvV7oHrnwajqFeF+5m3jH8 kVfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :arc-authentication-results; bh=NJc+G9n+QW1edg6s2uhyXmgMXwdzuhyNVZtYwpvaEEo=; b=AUqAhSrxSHlu7HUnb+cP+j0xKazbR19yiJSH6ZHjaZbJp0XzLIY3c2JpQet0QiKP2F 7vMzrQRKlKfgra3P17C9ifXN0Xkzhw2uPNhoDgx/twv23y/OfAmBuIjIKRVAo/RegWl5 o18plhTu9vL7zKCiFEXSdTRmValkDikT+j4AZUg1p4I/GQQP4E3mLEgqE1dE5klgXMLk YH5yV7mflndpYqg/On+pw9upHQa5yrUkvEfVAMOT2MflIqn9jpCIfvi1w/pYV57DHE/k eLu3P0ssk6UxW/Rh4ElwQkp2xc/DpLnsbVo98yz+/4x3ld35zvvlb01YjgXWCT/2kja5 7Zxg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id m74si35460oig.2.2017.11.16.01.49.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Nov 2017 01:49:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Received: from [10.0.2.15] ([188.227.110.165]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id vAG9n75v018153 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Thu, 16 Nov 2017 10:49:09 +0100 Subject: Re: download_dev-random hook question To: isar-users@googlegroups.com References: <20171116094107.zlik7z53wcolqcfj@MD1KR9XC.ww002.siemens.net> From: Alexander Smirnov Message-ID: <20697ef4-f5fd-963f-7ee4-2b09f38e9ba2@ilbers.de> Date: Thu, 16 Nov 2017 12:49:02 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20171116094107.zlik7z53wcolqcfj@MD1KR9XC.ww002.siemens.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: RcvEeCobcc0S Hi, On 11/16/2017 12:41 PM, Christian Storm wrote: >>>> I just stumbled over the download_dev-random multistrap hook: >>>> Why is it that you only create /dev/{,u}random? >>>> Why not also create other essential files like /dev/{null,zero} >>>> as well [...] >>> >>> ... and, a further question that just came to my mind: Why is this handled >>> in a multistrap hook in the first place? Seems rather implicit to me. Why >>> not do it explicitly in buildchroot.bb and isar-image-base.bb? >>> >> >> IIRC correctly multistrap configuration was taken from Debian/Embian >> examples. So I'd personally prefer to drop all the hooks and make >> necessary calls explicitly in recipes. > > Ah, I see... I totally agree. > >> So I see it like the following: >> - recipe creates rootfs, mounts necessary folders and creates device files. >> - recipe calls multistrap which only downloads the packages and unpack >> them to rootfs. >> - recipe calls configscript which performs post-configuration for rootfs. > > Yes, we're on the same page here, agreed. > >> This would be very helpful in context of switching to debootstrap. > > Even without the switch, I do find the explicit variant, well, more explicit :) > Will you handle this? :-) Or I could add it to TODO? Alex