From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=FtbX8CXifBv4O9yD0UF1bzZha3QovaEcJx6xnX8z3CI=; b=RfhssJGLH865zLqVaBpXaVGlA+hdH6nfC5YGoB6jJg5WIRk2dKa9YSXZ2k8tpbT7wV ZIvU+WFdfTYs8EDqy5LngYriuO+sRVq8lqBJ0X+YrGqodygW8I8ejE7WNvFqYh0ZmaiF Y6L8/8qa9uL8BauvWETxFGFgAYSpzXzN0Xqi1n+XQy46hawUdW8SBYW6dzLF5i3sZT5O JbEVeaLWqewQAZxpSbNDAoBHWwnglhnao2/amXJhZxJb659I31fUz27V5ht2hoBL7dN1 w+zta3FWAnK0bod7srZcgHpHHP3EKP2JOQ6lHhwirMOmkbhgeWsahI0pxz9M2MFJvoa7 j31A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=FtbX8CXifBv4O9yD0UF1bzZha3QovaEcJx6xnX8z3CI=; b=Pi9mre7h0pQ/BLBKy58NSSA1dn4Z+1aBfhrAxK2x14rJ6FFkGH7LojiyDOXlubmoM9 mtyMgIq3qEiLb/vRRFJbh/KzI5v8u7lbc7MTSLAaPe0ErSk75VNoDp3dc9oaHDfAb9df kEzpuLF1CGj1eXUsZlbao2K6S97sg7EUY9bsq6k46r0ed+4DtmwYqiE+5Z10+4AEp0Hq QoN0a/VDt1oRoFmfQeYS2MTQRV6SXY2yg2ALp4giHvX5KiCCOWwX81OYBy4CoaSajSjp hVB663emgg+b0PAnpEOi/ZdSC8X+eUBKcgZZzlodDJDBR1XKYh8C0XPycE4UHiJGWl2q ISNw== X-Gm-Message-State: AOAM532+o+8ynul8XUK0odxV4fR+rVqQj+ra/0Qp7cnVdVgkqSW/Sz13 +pzy3fLeVA0nA5BemfoJgt81yx4Af3g= X-Google-Smtp-Source: ABdhPJySWMOBKPzkr/2bgTGcjcuKeqG4OT9kL+dKGk/MBQM7ZYHvqNJGKncXzyUSEg9uiPnspZklAw== X-Received: by 2002:ac2:5f0d:: with SMTP id 13mr703522lfq.334.1634151347524; Wed, 13 Oct 2021 11:55:47 -0700 (PDT) To: make-initrd@lists.altlinux.org References: <68c970bd-67be-c1b7-b5d3-b1dfc079d601@gmail.com> <20211013182647.cysdajysbqfip6tt@example.org> From: Leonid Krivoshein Message-ID: <25dda7e3-48e0-4b03-3821-4a25c056bbee@gmail.com> Date: Wed, 13 Oct 2021 21:55:46 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20211013182647.cysdajysbqfip6tt@example.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: ru Subject: Re: [make-initrd] [PATCH v4 1/4] Separate new feature of bootchain-core from pipeline X-BeenThere: make-initrd@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: make-initrd@lists.altlinux.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Oct 2021 18:55:50 -0000 Archived-At: List-Archive: 13.10.2021 21:26, Alexey Gladkov пишет: > On Wed, Oct 13, 2021 at 09:07:23PM +0300, Arseny Maslennikov wrote: >> On Wed, Oct 13, 2021 at 08:21:28PM +0300, Leonid Krivoshein wrote: >>> From: Leonid Krivoshein >>> >>> Pipeline live as a add-in over bootchain-core for backward >>> compatibility with already existing solutions. >>> For bootchain-core it is planned to implement a number of >>> new features to cover the tasks of bootloading the installer >>> and live systems. >>> >>> Signed-off-by: Leonid Krivoshein >>> --- >>> features/bootchain-core/README.md | 81 +++++++++++++++++++ >>> features/bootchain-core/config.mk | 8 ++ >>> .../data/etc/initrd/cmdline.d/bootchain-core} | 3 +- >>> .../data/etc/rc.d/init.d/bootchain} | 8 +- >>> .../udev/rules.d/50-bootchain-waitdev.rules} | 2 +- >>> .../data/lib/bootchain}/getimage | 2 +- >>> .../data/lib/bootchain}/mountfs | 2 +- >>> .../data/lib/bootchain}/overlayfs | 2 +- >>> .../data/lib/bootchain}/rootfs | 2 +- >>> .../data/lib/bootchain}/waitdev | 4 +- >>> .../data/lib/initrd/cmdline.d/bootchain | 6 ++ >>> .../data/lib/initrd/cmdline.d/pipeline | 2 +- >>> .../lib/uevent/filters/bootchain-waitdev} | 4 +- >>> .../data/sbin/bootchain-sh-functions} | 12 +-- >>> .../data/sbin/bootchained} | 22 ++--- >>> features/bootchain-core/rules.mk | 4 + >>> features/pipeline/config.mk | 9 +-- >>> features/pipeline/rules.mk | 6 -- >>> 18 files changed, 133 insertions(+), 46 deletions(-) >>> create mode 100644 features/bootchain-core/README.md >>> create mode 100644 features/bootchain-core/config.mk >>> rename features/{pipeline/data/etc/initrd/cmdline.d/pipeline => >>> bootchain-core/data/etc/initrd/cmdline.d/bootchain-core} (63%) >>> rename features/{pipeline/data/etc/rc.d/init.d/pipeline => >>> bootchain-core/data/etc/rc.d/init.d/bootchain} (83%) >>> rename features/{pipeline/data/etc/udev/rules.d/50-pipeline-waitdev.rules >>> => bootchain-core/data/etc/udev/rules.d/50-bootchain-waitdev.rules} (77%) >>> rename features/{pipeline/data/lib/pipeline => >>> bootchain-core/data/lib/bootchain}/getimage (93%) >>> rename features/{pipeline/data/lib/pipeline => >>> bootchain-core/data/lib/bootchain}/mountfs (91%) >>> rename features/{pipeline/data/lib/pipeline => >>> bootchain-core/data/lib/bootchain}/overlayfs (95%) >>> rename features/{pipeline/data/lib/pipeline => >>> bootchain-core/data/lib/bootchain}/rootfs (86%) >>> rename features/{pipeline/data/lib/pipeline => >>> bootchain-core/data/lib/bootchain}/waitdev (83%) >>> create mode 100755 >>> features/bootchain-core/data/lib/initrd/cmdline.d/bootchain >>> rename features/{pipeline => >>> bootchain-core}/data/lib/initrd/cmdline.d/pipeline (64%) >>> rename features/{pipeline/data/lib/uevent/filters/pipeline-waitdev => >>> bootchain-core/data/lib/uevent/filters/bootchain-waitdev} (77%) >>> rename features/{pipeline/data/sbin/pipeline-sh-functions => >>> bootchain-core/data/sbin/bootchain-sh-functions} (70%) >>> rename features/{pipeline/data/sbin/pipelined => >>> bootchain-core/data/sbin/bootchained} (78%) >> Should we call it /sbin/bootchained? It is not chained. :) > Good catch! :) Неоднократно порывался переименовать по всем правилам, но как же дань Наутилусу? Ведь шаги и правда связаны одной цепью и цель у демона одна -- rootfs stage2! :-) >> Why not /sbin/bootchaind? > You guys can choose the name that seems right to you. I mean we can call > it "chaind". without "boot" prefix. Понял, придётся переименовать по всем исходникам и документации. К сожалению, таких косяков в сообщениях, наименованиях, тем более в переводах с моей стороны может быть много, английский совсем не мой родной язык. >>> create mode 100644 features/bootchain-core/rules.mk >>> >>> diff --git a/features/bootchain-core/README.md >>> b/features/bootchain-core/README.md >>> new file mode 100644 >>> index 0000000..e4b87d6 >>> --- /dev/null >>> +++ b/features/bootchain-core/README.md >>> @@ -0,0 +1,81 @@ >>> +# Feature: bootchain-core >>> + >>> +`bootchain-core` - it's a fork and further development the original >>> +feature of `pipeline`. This feature allow us to consistently setup >>> +steps-scripts one by one. For details about `pipeline` you can see >>> +in ../features/pipeline/README.md. >>> + >>> +In fork process `pipeline` was divided by three parts: >>> + >>> +- `bootchain-core` - the main functional of feature `pipeline`, common >>> + API and daemon. >>> +- `bootchain-getimage` - method to networking boot from ISO-image with >>> + the wget utility. >>> +- `bootchain-waitdev` - method to boot from specified local media. >>> + >>> +The future work with `bootchain` allowed us to create a few modules. >>> +They are expected to be upstream soon. This divide on modules allow >>> +us to optimize fill in `initramfs` only which we are need. >>> + >>> +## Main components of bootchain-core >>> + >>> +- `/sbin/bootchain-sh-functions` - common API and evolution >>> + of `pipeline-sh-functions`. >>> +- `/sbin/bootchained` - daemon, evolution of `pipelined`. >>> +- `/etc/rc.d/init.d/bootchain` - sysvinit start script. >>> + >>> +## Reasons of making fork and rename pipeline >>> + >>> <...> >>> + >>> +## External elements of the bootchain (steps-scripts) >>> + >>> +- `mountfs` - mounts a file or device from the result of the previous or >>> other >>> + specified step. >>> +- `overlayfs` - combines one or more elements of the boot chain using >>> overlayfs. >>> +- `rootfs` - forces the daemon to use the result of the previous element as >>> the >>> + found root of stage 2. >>> + >>> +## Boot parameters >>> + >>> +- `bootchain=name1[,name2][,name3]` - defines the initial state of the boot >>> + chains, i.e. the steps that the daemon must go through one by one. These >>> can >>> + be both built-in pseudo-steps and real scripts of the actions performed. >> Можно ли будет при желании писать свои стадии и включать их в свои >> initramfs? > Можно. > >> Т. е. мы рекомендуем администраторам держать при себе личные >> расширения или апстримить их функциональность? > Это зависит от администратора. Это как с фичами. Некоторые пользователи > апстримят свои наработки, некоторые нет. Эти оба варианта имеют свои плюсы > и минусы. > >>> The >>> + names these steps are listed separated by commas. >>> +- `pipeline=name1[,name2][,name3]` - alias for `bootchain=...`. >>> +- `mountfs=target` - specifies the file or device to be mounted. >>> +- `overlayfs=list` - defines the list of elements to combine. >>> + >>> +## bootchain-sh-functions API >>> + >> <...> -- Best regards, Leonid Krivoshein.