From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sat, 30 Oct 2021 02:50:19 +0300 From: Gleb Fotengauer-Malinovskiy To: Alexey Gladkov Message-ID: References: <20211024172128.744EFA5E4C@lists.altlinux.org> <20211026111221.2bay4wh2xfvxq2vr@example.org> <5fea746a-25c2-01ee-3403-ed4a4815968f@gmail.com> <20211026135834.wvsbihztce6466sz@example.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="NwLKe+VUKl5ZCmFw" Content-Disposition: inline In-Reply-To: <20211026135834.wvsbihztce6466sz@example.org> Cc: make-initrd@lists.altlinux.org Subject: Re: [make-initrd] [PATCH v6 10/22] bootchain-core: expanded addressing capabilities 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, 29 Oct 2021 23:50:54 -0000 Archived-At: List-Archive: --NwLKe+VUKl5ZCmFw Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 26, 2021 at 03:58:34PM +0200, Alexey Gladkov wrote: > On Tue, Oct 26, 2021 at 02:28:53PM +0300, Leonid Krivoshein wrote: > >=20 > >=20 > > 26.10.2021 14:12, Alexey Gladkov =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > > On Sun, Oct 24, 2021 at 08:21:28PM +0300, Leonid Krivoshein wrote: > > > > Adds support for reverse addressing relative to the current step, > > > > as well as calculating the path to the special device node obtained > > > > in the previous step. > > > >=20 > > > > Signed-off-by: Leonid Krivoshein > > > > --- > > > > features/bootchain-core/README.md | 6 +++ > > > > .../data/bin/bootchain-sh-functions | 37 ++++++++++++++= ++--- > > > > 2 files changed, 38 insertions(+), 5 deletions(-) > > > >=20 > > > > diff --git a/features/bootchain-core/README.md b/features/bootchain= -core/README.md > > > > index 8d341e0..ba66259 100644 > > > > --- a/features/bootchain-core/README.md > > > > +++ b/features/bootchain-core/README.md > > > > @@ -49,6 +49,12 @@ us to optimize fill in `initramfs` only which we= are need. > > > > - Modularity: loading methods are initially separated from the co= mmon > > > > code and daemon. > > > > +- Via resolve_target() supports not only forward, but also reverse= addressing, > > > > + relative to the current step. For example, a record like `step-3= /dir1/dev` > > > > + will process the result of `dir1/dev`, made in the third step fr= om the current > > > > + one. Together with the overload of the chain of steps, direct ad= dressing is safe > > > > + only when storing the numbers of the completed steps in files, w= hereas reverse > > > > + relative addressing it is safe in any case and can often be more= convenient. > > > =D0=9D=D0=B0 =D0=BC=D0=BE=D0=B9 =D0=B2=D0=B7=D0=B3=D0=BB=D1=8F=D0=B4 = =D0=BE=D1=87=D0=B5=D0=BD=D1=8C =D0=BD=D0=B5=D0=BF=D0=BE=D0=BD=D1=8F=D1=82= =D0=BD=D1=8B=D0=B9 =D1=81=D0=B8=D0=BD=D1=82=D0=B0=D0=BA=D1=81=D0=B8=D1=81. = step1 =D0=B8 step-1 =D0=BA=D0=B0=D0=B6=D0=B5=D1=82=D1=81=D1=8F > > > =D0=BE=D0=B4=D0=B8=D0=BD=D0=B0=D0=BA=D0=BE=D0=B2=D1=8B=D0=BC. =D0=A5= =D0=BE=D1=82=D1=8F =D0=B1=D1=8B current-1 > >=20 > > OK. =D0=94=D0=B0=D0=B2=D0=B0=D0=B9 =D0=BF=D0=B5=D1=80=D0=B5=D0=B4=D0=B5= =D0=BB=D0=B0=D1=8E =D1=82=D0=B0=D0=BA: > >=20 > > step =3D pipe -- =D0=BF=D1=80=D1=8F=D0=BC=D0=B0=D1=8F =D0=B0=D0= =B4=D1=80=D0=B5=D1=81=D0=B0=D1=86=D0=B8=D1=8F, =D1=82=D0=B0=D0=BA =D0=BF=D0= =B5=D1=80=D0=B2=D0=BE=D0=BD=D0=B0=D1=87=D0=B0=D0=BB=D1=8C=D0=BD=D0=BE =D0= =B8 =D0=B1=D1=8B=D0=BB=D0=B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B5. =D0=9D=D0=BE =D0=BC=D0=BD=D0=B5 =D0=BA=D0=B0=D0=B6=D0=B5=D1=82=D1=81=D1=8F,= =D1=87=D1=82=D0=BE =D1=82=D1=83=D1=82 - =D0=BD=D0=B5 =D1=87=D0=B8=D1=82=D0= =B0=D0=B5=D1=82=D1=81=D1=8F =D0=BA=D0=B0=D0=BA =D0=BC=D0=B8=D0=BD=D1=83=D1= =81. =D0=AF =D0=B1=D1=8B =D1=81=D0=BA=D0=BE=D1=80=D0=B5=D0=B5 =D0=BF=D1=80= =D0=B5=D0=B4=D0=BB=D0=BE=D0=B6=D0=B8=D0=BB =D1=87=D1=82=D0=BE-=D1=82=D0=BE =D0=B2=D1=80=D0=BE=D0=B4=D0=B5 prev =D0= =B8=D0=BB=D0=B8 back. --=20 glebfm --NwLKe+VUKl5ZCmFw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJhfIi7AAoJEEyKfkRpkCv5SEgP/AokmpsOWLYUaph9FP6BWKjm ov18ryvjSqCxTOJ1EZI/EzaV8bmw8MJGwygJ9rJQDSUuuqmiAQjgR7ZKwZkVuLI2 SAA1c9zuiSu1tgLl+4AkbkHTyNivVtjOxqjiyYhGR8pgCL6Uiw5xF7DvUDcVg9m2 j7OPzEhY79PSEZ+PJNzDtVsiIm9TdsZweTmLRdaiEeASAtwq8WUGy601KlCMIHdL 3WRYSFAXY9OyoC4KEVe50V4dWjMiRDZjtns/ZxQYbJaR0jC0NiHYg6AL68nH5UEF cpU48VgnfQ3IyZ3yPdA7nHdTG05xgt6KI+zZgLVXiZByR+rAXTtLt43vdtLKlgeF KDJ4dc7yCZpy9gpyRlc5YMk4cSkQfLXZ3RWKJ1Bn9ko7EEnqYqgG3pM+0WeZgyhE w+TMxR8zA4Bf7kdGPSVW04XXnkacbOfXeWta5eDxG+/LgbCRxxZABUVupKjVjcIR bYIqtJq9ynfbVOQxPf35JiDkaRqHHDyYEhUYi4hIutWYMp130SaMJoBpFyIqOoKa i0077zO9Vu/O8F78g5y9rkZ4oQjDAL4mi5Ug8OZAqPYLWe0MgTe/gbGj1L/OmNF8 5j/j6FlYPx7FsP+w14wbd7quDh9IX77wc/FQhhtv2N6xNSYBRcB1K+A09Hpx0h5A h3qI5xe1XkOQo5rjyR9n =773K -----END PGP SIGNATURE----- --NwLKe+VUKl5ZCmFw--