From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6599936908158042112 X-Received: by 2002:a19:5203:: with SMTP id m3-v6mr20359lfb.26.1537874888639; Tue, 25 Sep 2018 04:28:08 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:500e:: with SMTP id e14-v6ls766027lfb.11.gmail; Tue, 25 Sep 2018 04:28:08 -0700 (PDT) X-Google-Smtp-Source: ACcGV61hDIxePfFk0ZpV6CRpK9K60FMCzu4v9czsYF40sJEiAurmEGJa84j0RFXZM8xQoihXbcT8 X-Received: by 2002:a19:d2d1:: with SMTP id j200-v6mr19379lfg.5.1537874888063; Tue, 25 Sep 2018 04:28:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537874888; cv=none; d=google.com; s=arc-20160816; b=N17Fh1IoUmSKaVI/jrY+U5TPLxJQ8LRPwEgWsZBc8hpqdsoovjR/siMemHfXCR6XfZ ujM9T8H7cMiVgIRxIzx3peRssGwbYwMcnMKpJMSg5C8ETlwQ30GhEVFlcLb5D2VZaatA BRlhzIEuFC2SWmzh/IvTCOUJCkBOV3NV+1XdLDs9xRq5xgmBN2oPvcrhO4g2Rb34al5c Wc+RFraaIGXi4y+ylLEA4rq9YMikCO+eKLYrQ2JV9vFGe/q7jnE9ng0H9vPOmLNqPlnq 4hniqlpziwQZMwUFvf3SmzpU7YWOdhia4QfXEZsmZDKWfgc4MAGlQUKIBZ5t+aKk6gMk 2/iw== 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:organization:from:references:to:subject; bh=WrsQQ33IKf1q7+BgKnGDCn8uMUiGXAhag8Ucbrqpb6I=; b=T4H2M8VLYU/bcM41IEziCX0t/PemDOraMrjCtCX0b/sTHqRt1hq86nZ3+vl6rt5w6M TXDYSerDNIXBYNLxtlYFBkbizXPpReuPwPrUPiAy7WPJh70O6t1501tviR+VG6zSPcBr c54sAlTBnmlXiBs3lvR1jCCTSlgn1QWcTxqyOgGtENC5qDhnpCuTp92FlVtvdl5oazhG OXn6M6pFEbu3H2QCl6Xhla/5mfaP1AJgeT9uSyIusSqJtGskNB4AHJMFKNRdwjZDxXiG ckIBK7wr4AYHBR3XuioBm1wPhexVxA2haj9KTgOv8INiIujK3JkpBEjbrHSXl0LDK0UF A4+A== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of mosipov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id m9-v6si47718lfb.5.2018.09.25.04.28.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Sep 2018 04:28:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of mosipov@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 mosipov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Received: from [192.168.50.180] (nat-ppp-217.71.235.199-satnet-spb.ru [217.71.235.199] (may be forged)) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id w8PBS3J2016302 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Tue, 25 Sep 2018 13:28:05 +0200 Subject: Re: [PATCH 00/16] Cleanups, linux-custom fix, auto-expansion helper To: Jan Kiszka , isar-users References: From: "Maxim Yu. Osipov" Organization: ilbers GmbH Message-ID: Date: Tue, 25 Sep 2018 14:27:58 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: NpmRWds05j6V On 9/11/18 3:05 PM, Jan Kiszka wrote: > 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. Applied to the 'next', Thanks, Maxim. > 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 > -- Maxim Osipov ilbers GmbH Maria-Merian-Str. 8 85521 Ottobrunn Germany +49 (151) 6517 6917 mosipov@ilbers.de http://ilbers.de/ Commercial register Munich, HRB 214197 General Manager: Baurzhan Ismagulov