From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6695999620571463680 X-Received: by 2002:a19:198a:: with SMTP id 132mr18513735lfz.18.1559033902136; Tue, 28 May 2019 01:58:22 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:ac2:523a:: with SMTP id i26ls1704752lfl.9.gmail; Tue, 28 May 2019 01:58:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqxu+T2z4peE8WQKWk9YFsyP8GwkAml6SNWohHXh4Lc551DjyMyxYO3PK/ncMabOIKuH9z56 X-Received: by 2002:ac2:5337:: with SMTP id f23mr8165606lfh.15.1559033901839; Tue, 28 May 2019 01:58:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559033901; cv=none; d=google.com; s=arc-20160816; b=0AFXWggZ6N3lkh3sOv173oUrveVPUCHdhHQamMQf0kmbnLAK+dLmJaHTmr2l8Jb9fV YLqzDdsjrH/cO2usuYLlJLqNyHD0z7j3TmVZeQHVN+L8BbcpDN+N/HOBeDORWcORdC3w x56DhRs7uSSjD+wbLWILjFvlKknX5XAyiUdqbhIR/IuWJOPbEhcbirIH3AfHPjwzY2KX jx0YSJ10fNqAlg/15MOYsyi32AaSA6KfMvXA1xkQjTNoEOCJBDK9vNjd/mB69NbP3frT 7npT8X5rm2z4X0Qen3sS1ZeguZG9h6khIiqYQ5VPjaXysz3yN/PYZxPahnxRGswZar8w Z5bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=mG5lTg+KtDiTiXEZuixLxVJUU8HOSpezM6N1hPu8dsM=; b=SR8UK1d9UdG3UoMCQND2p4MC+zEwzWZt+29cjDRuuLIqMGrzRAzmcBwjnuC5VgQfTd cs21HiJ5+E1LWlsEWvZ2OTHl5QcHqiEIFJulkIDUQz4+9LFvX58DRf+rpf2yCzBe9OXo anNTMDSx9dxketdazmx1+v2QnTx5Lyw9fdfrU+b4Vy98N6xqkJDyD19h3sJ8s2Atc5X2 c0vE+wF4bnC/r0veyZcCA0rSjLZjZdlHJLqWGN8OSFA+59eej7BfgPZfKGdOM6GYjgGA CgM9XiGDcDnsTAMCNNz+Xc5sYSiD9Csg3JiiKyJnedTrela4iPZBqqITtV1fo0acAcmT QG3A== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from lizzard.sbs.de (lizzard.sbs.de. [194.138.37.39]) by gmr-mx.google.com with ESMTPS id i12si520305lfo.5.2019.05.28.01.58.21 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 May 2019 01:58:21 -0700 (PDT) Received-SPF: pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.39 as permitted sender) client-ip=194.138.37.39; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id x4S8wKIc002038 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 28 May 2019 10:58:20 +0200 Received: from ring.ppmd.siemens.net (linux-ses-ext02.ppmd.siemens.net [139.25.69.232]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id x4S8wJEk003791; Tue, 28 May 2019 10:58:20 +0200 From: claudius.heine.ext@siemens.com To: isar-users@googlegroups.com Cc: Claudius Heine Subject: [PATCH 2/3] image.bbclass: remove fstab generation Date: Tue, 28 May 2019 10:58:13 +0200 Message-Id: <20190528085814.12967-3-claudius.heine.ext@siemens.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190528085814.12967-1-claudius.heine.ext@siemens.com> References: <20190528085814.12967-1-claudius.heine.ext@siemens.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUID: JrXgMhQNTHP1 From: Claudius Heine Generating the fstab is not necessary, since the mounts are either default [1] or can be described via kernel command line or systemd.mount files. The current fstab generation mechanism is also to inflexible to allow easy customization from within an image recipe. [1] https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems/ Signed-off-by: Claudius Heine --- meta/classes/image.bbclass | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 1950263..5682134 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -105,22 +105,6 @@ python set_image_size () { d.setVarFlag('ROOTFS_SIZE', 'export', '1') } -ROOTFS_CONFIGURE_COMMAND += "image_configure_fstab" -image_configure_fstab[weight] = "2" -image_configure_fstab() { - sudo tee '${IMAGE_ROOTFS}/etc/fstab' << EOF -# Begin /etc/fstab -/dev/root / auto defaults 0 0 -proc /proc proc nosuid,noexec,nodev 0 0 -sysfs /sys sysfs nosuid,noexec,nodev 0 0 -devpts /dev/pts devpts gid=5,mode=620 0 0 -tmpfs /run tmpfs defaults 0 0 -devtmpfs /dev devtmpfs mode=0755,nosuid 0 0 - -# End /etc/fstab -EOF -} - do_copy_boot_files[dirs] = "${DEPLOY_DIR_IMAGE}" do_copy_boot_files() { kernel="$(realpath -q '${IMAGE_ROOTFS}/vmlinuz')" -- 2.20.1