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=from:subject:to:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=6XCmsA3EGOr//1YkHk0zo80G9DCtGe0vOFla7Tv/Vkk=; b=fPglf8Kb6C5ZViWZh7VmxURgh08w9A+vZWgpIAkYuWwFIXDNrj0HICrVvy7609JmnU a6XXptW3IQ2LBP/TMAv5YJNZrpMmfnq6bd64PKw3YfzFGgTFWouv46ZFlrxFIkS1Lk2l 2/xBGdKWGwUtnEbqVWTNQJFzaWdRdcn9C2X6s7AUv1mEde7wG5Qw6wBuEU+B6HnW8mmU gQekDoRQ42fOQze4+9Wm0MlZd7KEaalJJM23TZCVJYFd3wqP0LDF/VikJWfcx3d1LGV9 G/P9kPUHGpBFnBUkhlMbhhd0MC9zp1MZ5cRyjx3rScubHbRpx2ANxomzYoinSQe3Cwvi NhNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:subject:to:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=6XCmsA3EGOr//1YkHk0zo80G9DCtGe0vOFla7Tv/Vkk=; b=RR1zkgzCT50W/xrWFhdSWFIUeOdJETODkVHY+KaIMEDUPpRUvxKVaFvpooLqTzyu8b tfITB/fVNzNp99pfA1hJ0lFOdbMG5ec93Mtp6PwytZVAZXNFuClNs5UFDl/iyWxz0uxf cSO4uM/fURjCp/tOGBEw6URIxuFcVHsUYn/c3x7VP3/xmZivhkWiDQPEH3B3nYRPUQKE PeQWBjdSpVdEeZ4C3JKlc3Cey05A04QVTau7WZLyovduD5wpciBLw41rm9RgAy28UM89 HRrQ9A6RBhmtWWQGA88/0jTvGIkM6EmVrKc/KMQTmx49y8GtpNQmludcqxh5GEIRGvyl fiDw== X-Gm-Message-State: AOAM5330DuvNF2shtT+lH9FjNLr73MXb/pI+NOF7kigLFl+bN9a+5PzM 4mS6qI0kCQsT/jxXZ1g9Qe4XCrdsUVk= X-Google-Smtp-Source: ABdhPJzSEAMITsVAxLma5b5NKCEHHfB3lmCq6CJNWoK+jQBD0Y5FegFVJFei1Oqlg2yzm8S110c92w== X-Received: by 2002:a05:6512:3b1e:: with SMTP id f30mr7858162lfv.585.1632498761093; Fri, 24 Sep 2021 08:52:41 -0700 (PDT) From: Leonid Krivoshein To: make-initrd@lists.altlinux.org Message-ID: Date: Fri, 24 Sep 2021 18:52:40 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251; format=flowed Content-Language: ru Content-Transfer-Encoding: 8bit Subject: [make-initrd] [PATCH v1 00/41] fork 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: Fri, 24 Sep 2021 15:52:44 -0000 Archived-At: List-Archive: Привет! На первой итерации, чтобы не флудить, сделал поменьше коммитов. Всё равно вспомнить "что за чем менялось" уже невозможно. На следующих итерациях постараюсь сделать это более понятным. Поэтому первые три коммита позволяют понять порядок перемещения, переименования и что создано нового. Заранее извиняюсь за порядок и оформление коммитов, готов исправиться. Leonid Krivoshein (41): fork pipeline: split into 4 features (move files) fork pipeline: 11 files and directories renamed fork pipeline: 10 new files added fork pipeline: getimage cmdline parameter moved fork pipeline: waitdev cmdline parameter moved fork pipeline: bootchained is a 100% copy of pipelined fork pipeline: bootchain-core cmdline parameters added fork pipeline: getimage step modified fork pipeline: bootchain-waitdev cmdline parameter added fork pipeline: initrd boot method changed to bootchain fork pipeline: mountfs step modified fork pipeline: overlayfs step modified fork pipeline: rootfs step modified fork pipeline: waitdev: config.mk and rules.mk modified fork pipeline: waitdev: uevent filter renamed fork pipeline: waitdev: get_dev_wpfx() function added fork pipeline: waitdev step modified fork pipeline: waitdev: infinite loop fixed, DEVNAME added fork pipeline: waitdev: use optional waitdev_timeout fork pipeline: bootchain now is dependency for pipeline fork pipeline: bootchain sysvinit script now use external hooks fork pipeline: README.md for bootchain-core added fork pipeline: daemon splitted into first and second halfs bootchained: startup message fork pipeline: bootchained modified fork pipeline: bootchain-sh-functions: whitespaces fork pipeline: bootchain-sh-functions modified fork pipeline: bootchain-sh-functions: check_parameter modified fork pipeline: bootchain-sh-functions: resolve_target modified fork pipeline: bootchain-sh-functions: API extended fork pipeline: bootchain-loop: pipenum to stepnum renamed fork pipeline: bootchain-loop: pipe to chainsteps renamed fork pipeline: bootchain-loop: primary changes fork pipeline: bootchain-loop: cleanup, testing and debugging fork pipeline: bootchain-loop: added switch to foreground fork pipeline: bootchain-loop: added 'noop' to separate the steps fork pipeline: bootchain-loop: added switch retry/noretry added symlinks for compatibility with pipeline workaround: use PUT_FILES= instead PUT_UDEV_RULES= to use has_feture() require initrd-sh-functions 2.24.1-alt1 make-initrd.spec | 5 +- make-initrd/features/bootchain-core/README.md | 3 + make-initrd/features/bootchain-core/config.mk | 5 + .../data/bin/bootchain-sh-functions | 187 ++++++++++++++++++ .../bootchain-core/data/bin/machine-info | 123 ++++++++++++ .../data/etc/initrd/cmdline.d/bootchain-core | 6 + .../data/etc/rc.d/init.d/bootchain} | 33 ++-- .../bootchain-core/data/lib/bootchain/debug | 84 ++++++++ .../data/lib/bootchain}/mountfs | 4 +- .../data/lib/bootchain/overlayfs | 27 +++ .../bootchain-core/data/lib/bootchain/rootfs | 11 ++ .../data/lib/initrd/cmdline.d/bootchain | 6 + .../data/lib/initrd/cmdline.d/pipeline | 2 +- .../features/bootchain-core/data/lib/pipeline | 1 + .../bootchain-core/data/sbin/bootchain-logvt | 36 ++++ .../bootchain-core/data/sbin/bootchain-loop | 183 +++++++++++++++++ .../bootchain-core/data/sbin/bootchained | 55 ++++++ .../data/sbin/pipeline-sh-functions | 1 + make-initrd/features/bootchain-core/rules.mk | 3 + .../features/bootchain-getimage/README.md | 20 ++ .../features/bootchain-getimage/config.mk | 5 + .../etc/initrd/cmdline.d/bootchain-getimage | 1 + .../data/lib/bootchain}/getimage | 9 +- .../features/bootchain-getimage/rules.mk | 2 + .../features/bootchain-waitdev/README.md | 21 ++ .../features/bootchain-waitdev/config.mk | 6 + .../etc/initrd/cmdline.d/bootchain-waitdev | 2 + .../udev/rules.d/50-bootchain-waitdev.rules} | 2 +- .../data/lib/bootchain-prepare.d/300-waitdev | 12 ++ .../data/lib/bootchain/waitdev | 46 +++++ .../data/lib/uevent/filters/bootchain-waitdev | 35 ++++ .../features/bootchain-waitdev/rules.mk | 2 + make-initrd/features/pipeline/config.mk | 9 +- .../data/etc/initrd/cmdline.d/pipeline | 5 - .../pipeline/data/lib/pipeline/overlayfs | 26 --- .../pipeline/data/lib/pipeline/rootfs | 10 - .../pipeline/data/lib/pipeline/waitdev | 24 --- .../data/lib/uevent/filters/pipeline-waitdev | 18 -- .../pipeline/data/sbin/pipeline-sh-functions | 51 ----- .../features/pipeline/data/sbin/pipelined | 87 -------- make-initrd/features/pipeline/rules.mk | 6 - 41 files changed, 914 insertions(+), 260 deletions(-) create mode 100644 make-initrd/features/bootchain-core/README.md create mode 100644 make-initrd/features/bootchain-core/config.mk create mode 100644 make-initrd/features/bootchain-core/data/bin/bootchain-sh-functions create mode 100755 make-initrd/features/bootchain-core/data/bin/machine-info create mode 100644 make-initrd/features/bootchain-core/data/etc/initrd/cmdline.d/bootchain-core rename make-initrd/features/{pipeline/data/etc/rc.d/init.d/pipeline => bootchain-core/data/etc/rc.d/init.d/bootchain} (59%) create mode 100755 make-initrd/features/bootchain-core/data/lib/bootchain/debug rename make-initrd/features/{pipeline/data/lib/pipeline => bootchain-core/data/lib/bootchain}/mountfs (75%) create mode 100755 make-initrd/features/bootchain-core/data/lib/bootchain/overlayfs create mode 100755 make-initrd/features/bootchain-core/data/lib/bootchain/rootfs create mode 100755 make-initrd/features/bootchain-core/data/lib/initrd/cmdline.d/bootchain rename make-initrd/features/{pipeline => bootchain-core}/data/lib/initrd/cmdline.d/pipeline (64%) create mode 120000 make-initrd/features/bootchain-core/data/lib/pipeline create mode 100755 make-initrd/features/bootchain-core/data/sbin/bootchain-logvt create mode 100755 make-initrd/features/bootchain-core/data/sbin/bootchain-loop create mode 100755 make-initrd/features/bootchain-core/data/sbin/bootchained create mode 120000 make-initrd/features/bootchain-core/data/sbin/pipeline-sh-functions create mode 100644 make-initrd/features/bootchain-core/rules.mk create mode 100644 make-initrd/features/bootchain-getimage/README.md create mode 100644 make-initrd/features/bootchain-getimage/config.mk create mode 100644 make-initrd/features/bootchain-getimage/data/etc/initrd/cmdline.d/bootchain-getimage rename make-initrd/features/{pipeline/data/lib/pipeline => bootchain-getimage/data/lib/bootchain}/getimage (57%) create mode 100644 make-initrd/features/bootchain-getimage/rules.mk create mode 100644 make-initrd/features/bootchain-waitdev/README.md create mode 100644 make-initrd/features/bootchain-waitdev/config.mk create mode 100644 make-initrd/features/bootchain-waitdev/data/etc/initrd/cmdline.d/bootchain-waitdev rename make-initrd/features/{pipeline/data/etc/udev/rules.d/50-pipeline-waitdev.rules => bootchain-waitdev/data/etc/udev/rules.d/50-bootchain-waitdev.rules} (77%) create mode 100644 make-initrd/features/bootchain-waitdev/data/lib/bootchain-prepare.d/300-waitdev create mode 100755 make-initrd/features/bootchain-waitdev/data/lib/bootchain/waitdev create mode 100755 make-initrd/features/bootchain-waitdev/data/lib/uevent/filters/bootchain-waitdev create mode 100644 make-initrd/features/bootchain-waitdev/rules.mk delete mode 100644 make-initrd/features/pipeline/data/etc/initrd/cmdline.d/pipeline delete mode 100755 make-initrd/features/pipeline/data/lib/pipeline/overlayfs delete mode 100755 make-initrd/features/pipeline/data/lib/pipeline/rootfs delete mode 100755 make-initrd/features/pipeline/data/lib/pipeline/waitdev delete mode 100755 make-initrd/features/pipeline/data/lib/uevent/filters/pipeline-waitdev delete mode 100644 make-initrd/features/pipeline/data/sbin/pipeline-sh-functions delete mode 100755 make-initrd/features/pipeline/data/sbin/pipelined -- 2.21.0