From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6487938995161399296 X-Received: by 10.28.132.202 with SMTP id g193mr127226wmd.24.1510825341447; Thu, 16 Nov 2017 01:42:21 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.28.100.7 with SMTP id y7ls152124wmb.2.gmail; Thu, 16 Nov 2017 01:42:21 -0800 (PST) X-Google-Smtp-Source: AGs4zMbcpk8WASiUek0kO47TFbDplkVcWmby5pQyt+Mch21zQrr/4HMIjsGt4O4Qx1ZZUsia0IIr X-Received: by 10.28.141.149 with SMTP id p143mr129061wmd.13.1510825341185; Thu, 16 Nov 2017 01:42:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510825341; cv=none; d=google.com; s=arc-20160816; b=Ees9YAktqxsmzcFc6/07g7BC5Z969gc5+TLNXs87Px3lsHwnWhWB1RwLabjV7b65aP Ezmw90T/fsvGjAr/GqXO83sWZERA31xeszpeua2MErdsLlhlT5p/+CAOmHdlGWS7Y/JE 2WrfeWdMdhXjNJ3U+cHDwrIL9uYKhc2J3TqdW9t9Jsoso/CCpEgsr/smWLfACFAi1B6i 8geLo2B6URC2fstRwKc0aFR3sAePcMliyqugUIAnpPKLoCgOiixWH3ciVXU+L3eXdxFu LMErlEXzbvoci6cM2IuZWAa1T7zEBhT56juwrtv2SxwtcskL8rHMXVXj+zphvkUKp2Wy 0O0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:mail-followup-to:message-id :subject:to:from:date:arc-authentication-results; bh=/xi41I9dIyWho2eCbtjun3+rX2S7K1DHSCPfXZA6oHc=; b=rGkrjcoTHEZP0Ou1o4PoZQRhbLZJBBMXKzbyslSOEOjPvkLqqDy+wuuI3Ur3ZnaWuM NXlMXAIf/UXMEQQljn81IHsMeTbWSpuqWC1/PwGc2jH5NAnXIC0JZ/ySHW07R2012Uto x3CL8BX6zli9pooOIM7ChAN0YVTf6jt7eu75COi8/ibgBzvotXwJ2lwFesz4aSH9303y IeVexRXWcJ/pg7yBvOzlGzIxzvnr3VXS6nAgeON5Jd6smcpt9QsYhJHvinCM4NN7DfjV H5Y3VMtNVS4fcbWVwOudgAjYwqfHZf70qoa1qCKhv64TK7sC6iqzyqOB+QgQq6BfQ5pA A5kA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of christian.storm@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=christian.storm@siemens.com Return-Path: Received: from david.siemens.de (david.siemens.de. [192.35.17.14]) by gmr-mx.google.com with ESMTPS id l9si61133wrf.4.2017.11.16.01.42.21 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Nov 2017 01:42:21 -0800 (PST) Received-SPF: pass (google.com: domain of christian.storm@siemens.com designates 192.35.17.14 as permitted sender) client-ip=192.35.17.14; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of christian.storm@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=christian.storm@siemens.com Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id vAG9gKAg006589 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 16 Nov 2017 10:42:20 +0100 Received: from localhost ([139.25.69.251]) by mail1.siemens.de (8.15.2/8.15.2) with ESMTPS id vAG9gKF2021043 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 16 Nov 2017 10:42:20 +0100 Date: Thu, 16 Nov 2017 10:41:08 +0100 From: Christian Storm To: isar-users@googlegroups.com Subject: Re: download_dev-random hook question Message-ID: <20171116094107.zlik7z53wcolqcfj@MD1KR9XC.ww002.siemens.net> Mail-Followup-To: isar-users@googlegroups.com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <276a3671-4986-633b-0c28-e47a63a8e2e6@ilbers.de> User-Agent: Mutt/20170113 (1.7.2) X-TUID: 3JhgUhVS7Xz8 > >> 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 :) Besten Gru�, Christian -- Dr. Christian Storm Siemens AG, Corporate Technology, CT RDA ITP SES-DE Otto-Hahn-Ring 6, 81739 M�nchen, Germany