From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6599936908158042112 X-Received: by 2002:a5d:5145:: with SMTP id u5-v6mr1791986wrt.22.1536667558356; Tue, 11 Sep 2018 05:05:58 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:f405:: with SMTP id z5-v6ls589768wma.8.gmail; Tue, 11 Sep 2018 05:05:57 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ9kS5uP22UbkbzJ9MV5dn1MiIx32H+6bgZGn+QQ5vyIgXENG3LDDITCq7OBghWzwGE7UtI X-Received: by 2002:a1c:7a10:: with SMTP id v16-v6mr152665wmc.11.1536667557859; Tue, 11 Sep 2018 05:05:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536667557; cv=none; d=google.com; s=arc-20160816; b=MdaN1Q/E/yuYP83bTcGf/G5pyPsr39nzkUSfBMlVxprlI4rzKJgrPjXBXKtMcgGtVG qOjlxdj5YQ9/FeXjnNPONydNEp7gCFb/A8cZg5cpp+tW+SYTCKdlTnpF4JdkK/9QlaIv 0cLcTlPb5AuLY5NIrQZAjRgopskxufGBJzE7Ah8y8zTfBjBYH58gRLby6+GMkWQSR8P7 qsEUhWsfj66PtAmodLGVnE5zocHNXgZ06S19WZKunKJa1ouNDOzD+4qRhiXvedBCoOFy 5lwRyxqq2s3dgA+hqicZWaQOPSrX41FbLbcOLrWeRpnX13TdfGx6RuBwtTjC1jxop4LM PKZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:to:from; bh=rEnNkge7yJvmuPf4WjV29FL4H6VQZZ1HgaGk3zvLfsA=; b=tnjp703Hq0fxShkk1QMYyog5+j1kzHN03lZV2BMiwwr1kU2YMHLRIiIvTowVKcsHmc S+8RYGOMDMbu0SiorCAGz2Gj7NRrDPj6+aRHEL3H4sTI8kqMSoeMa/drRxc1BB1+qb9M 28PtZnXlLsuBUTR2wJtK6pJ1sncHPuOC8JHqGJmMTblNo5pJDKy0hbXvL5t6lR+GVh25 zgP9FcmD3aPXU3rZ3nVv4AMAVwVsxAWcqj5wZQwZh+MbKTWyWtVyia+kLRIOO/fwJSPC QOXkY5tG6lpaRS4LU9093ts8SuKJxzL80R3mldm/2SqCbijy7SZWLWkRy/YvaGUXQPCS jpWw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from lizzard.sbs.de (lizzard.sbs.de. [194.138.37.39]) by gmr-mx.google.com with ESMTPS id y13-v6si480315wrd.3.2018.09.11.05.05.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Sep 2018 05:05:57 -0700 (PDT) Received-SPF: pass (google.com: domain of jan.kiszka@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 jan.kiszka@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id w8BC5vPU030627 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 11 Sep 2018 14:05:57 +0200 Received: from md1f2u6c.ad001.siemens.net (md1q0hnc.ad001.siemens.net [139.25.68.37] (may be forged)) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id w8BC5vIK000884 for ; Tue, 11 Sep 2018 14:05:57 +0200 From: Jan Kiszka To: isar-users Subject: [PATCH 00/16] Cleanups, linux-custom fix, auto-expansion helper Date: Tue, 11 Sep 2018 14:05:40 +0200 Message-Id: X-Mailer: git-send-email 2.16.4 X-TUID: k47bGoNHWRbf Key features of this series: - cleanup / fix / control of filesystem checks - removal of ROOTFS_DEV and ROOTFS_TYPE - wks file cleanups and corrections - avoidance of ROOTFS_EXTRA for wic images - fix for linux-custom.inc, allows to tell linux-cip and linux-cip-rt apart - move IMAGE_PREINSTALL = "init" to distro conf And then there is a new goody again: When adding expand-on-first-boot to IMAGE_INSTALL, this helper will expand the last partition of an image to the full size of the target medium. Very useful to generate small SD card images that become big once used on the target device. That's also what many images for maker boards include. Jan Jan Kiszka (16): meta-isar: Adjust kernel params in sdimage-efi.wks meta-isar: Reduce grub timeout to 3 seconds meta-isar: Fix bananapi root disk specification meta-isar: Remove "=" after wic parameters u-boot-script: Become independent of target /etc/fstab isar-image-base: Disable rootfs check by default isar-image-base: Use generic parameters for rootfs entry in fstab meta: Remove ROOTFS_TYPE start_vm: Rename QEMU_ROOTFS_DEV to QEMU_DISK_ARGS start_vm: Rename ROOTFS_DEV to QEMU_ROOTFS_DEV RECIPE-API-CHANGELOG: Add ROOTFS_DEV/TYPE removal meta: Add expand-on-first-boot support package image: Limit ROOTFS_EXTRA to non-wic image type linux-custom: Simplify and clarify KERNEL_NAME-to-recipe matching meta-isar: Move init preinstallation into distro conf meta: Add enable-fsck helper recipe RECIPE-API-CHANGELOG.md | 15 ++++++ meta-isar/conf/distro/debian-buster.conf | 2 + meta-isar/conf/distro/debian-stretch.conf | 2 + meta-isar/conf/local.conf.sample | 2 +- meta-isar/conf/multiconfig/bananapi-stretch.conf | 4 -- meta-isar/conf/multiconfig/qemuamd64-buster.conf | 6 +-- meta-isar/conf/multiconfig/qemuamd64-jessie.conf | 4 +- meta-isar/conf/multiconfig/qemuamd64-stretch.conf | 6 +-- meta-isar/conf/multiconfig/qemuarm-buster.conf | 6 +-- meta-isar/conf/multiconfig/qemuarm-jessie.conf | 4 +- meta-isar/conf/multiconfig/qemuarm-stretch.conf | 6 +-- meta-isar/conf/multiconfig/qemuarm-wheezy.conf | 4 +- meta-isar/conf/multiconfig/qemuarm64-buster.conf | 6 +-- meta-isar/conf/multiconfig/qemuarm64-stretch.conf | 6 +-- meta-isar/conf/multiconfig/qemui386-buster.conf | 6 +-- meta-isar/conf/multiconfig/qemui386-jessie.conf | 4 +- meta-isar/conf/multiconfig/qemui386-stretch.conf | 6 +-- meta-isar/conf/multiconfig/rpi-jessie.conf | 2 - meta-isar/recipes-core/images/isar-image-base.bb | 2 +- meta-isar/scripts/lib/wic/canned-wks/bananapi.wks | 6 +-- .../scripts/lib/wic/canned-wks/directdisk-isar.wks | 2 +- .../scripts/lib/wic/canned-wks/sdimage-efi.wks | 6 +-- meta/classes/ext4-img.bbclass | 2 - meta/classes/image.bbclass | 12 ++--- meta/classes/wic-img.bbclass | 3 +- meta/recipes-bsp/u-boot-script/files/u-boot-script | 7 ++- .../u-boot-script/files/update-u-boot-script | 12 +---- .../recipes-bsp/u-boot-script/u-boot-script_1.0.bb | 55 ++++++++++++++++++---- meta/recipes-kernel/linux/linux-custom.inc | 10 ++-- meta/recipes-support/enable-fsck/enable-fsck.bb | 25 ++++++++++ .../enable-fsck/files/enable-fsck.service | 23 +++++++++ .../enable-fsck/files/enable-fsck.sh | 16 +++++++ meta/recipes-support/enable-fsck/files/postinst | 3 ++ .../expand-on-first-boot/expand-on-first-boot.bb | 25 ++++++++++ .../files/expand-last-partition.sh | 31 ++++++++++++ .../files/expand-on-first-boot.service | 23 +++++++++ .../expand-on-first-boot/files/postinst | 3 ++ scripts/start_vm | 6 +-- 38 files changed, 264 insertions(+), 99 deletions(-) create mode 100644 meta/recipes-support/enable-fsck/enable-fsck.bb create mode 100644 meta/recipes-support/enable-fsck/files/enable-fsck.service create mode 100644 meta/recipes-support/enable-fsck/files/enable-fsck.sh create mode 100644 meta/recipes-support/enable-fsck/files/postinst create mode 100644 meta/recipes-support/expand-on-first-boot/expand-on-first-boot.bb create mode 100644 meta/recipes-support/expand-on-first-boot/files/expand-last-partition.sh create mode 100644 meta/recipes-support/expand-on-first-boot/files/expand-on-first-boot.service create mode 100644 meta/recipes-support/expand-on-first-boot/files/postinst -- 2.16.4