From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7301408701728948224 X-Forwarded-Encrypted: i=2; AJvYcCU6FCnJe+KANcgCYpy2cckd72DWpBuwimm508Up/z3B0HddMY+EqhWWfzM9E7vo52Z7AA6Gst3Kdt8EcqYV3KdVzcJ50vok7+8+GIE= X-Received: by 2002:adf:fb8c:0:b0:33e:24c7:78ba with SMTP id a12-20020adffb8c000000b0033e24c778bamr12053841wrr.62.1709796206496; Wed, 06 Mar 2024 23:23:26 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a5d:5f4f:0:b0:33e:25c1:d411 with SMTP id cm15-20020a5d5f4f000000b0033e25c1d411ls282188wrb.1.-pod-prod-01-eu; Wed, 06 Mar 2024 23:23:24 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWOLIB3LM5l58Suw/gsaqSqrdXiN2T7twZvg1dhTxiRFQw2H36dLiHiN3CFWxPnFPVJA32cDPtK5MFol3r6vJRl7hDZO+g+u2wQDrs= X-Google-Smtp-Source: AGHT+IF5QDcpv3ub61j7fHHcb8852hw3cbYsJEd2HsgQWlzKgEZ2PAdRc06C+US1PRiXplwksDVD X-Received: by 2002:adf:b60c:0:b0:33e:44da:827 with SMTP id f12-20020adfb60c000000b0033e44da0827mr6423649wre.57.1709796204090; Wed, 06 Mar 2024 23:23:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709796204; cv=none; d=google.com; s=arc-20160816; b=G6u7/Aeh2LtYXScXteEEZWXiEQ/hCh6lNJuQNV/xRPFYqDkspkt9NC696Frmk1XYSR QfSTle6utE5CK/hQ2trgXBj8iRpWUbQ+Yj3Q76Gmgy8qLfOKwCqC1RNCuPjG/eI+lxH6 RH+KsZVFCmcNdkVdxZ3OfjSx4BzKIuKLyNwFCjUkqymlcBa2W4I9xiXDSJyuA0RjgGIC HX35FLkbc5kNOxeCfOUdM40ckVu8HtkwF1eH8f/923MQtT0Iu/3UDezijPlNWR8QNC6t VfHu9yve399jtCpCjJ6YcWs2i1hIJkBxwpy9h1UER3tbPsTyqGAhqb+ojDAHfQI43Ein jwAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id; bh=PSad4I2DhpIs03WR9wlRf2wrzDaXH6dGdBHvtz+rmRM=; fh=1x/T85rXr8yhgzXWAa7zssXnuyt2jGlhJYPIGFWr6UE=; b=h81dQbX9LWjMSPoK2A4fgXIFXKy0iegDLfRlzhS4KcZoWcP0b2d/VCO5AzzOamQXh8 V/lFQLjlP+mkphIxYnZSxVN6QnbL43h21fIcFiHADKWMJ3Yk6hfqVKTkIX63W7q0+xDz gcOMe7ETHkk9UEIONX52N+11w7umrX8HoyBoYa9yXKIfbqDZo62tvzBy0Efh0Cj9rPE3 PQXJe0J0yP5JKw68cQZTjoAPmb9BtRPoG4Z055aSdm95m14uZTOKAr8g1XCg6odCfr1o TGI/UW9VkEjGES7iLX1lLNYuTeZ0o4I1bdtJ3UsclsAoltbaYurtlASRn9sareoGd4fT bddw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id q6-20020adfea06000000b0033e68795288si8898wrm.4.2024.03.06.23.23.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Mar 2024 23:23:24 -0800 (PST) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from [127.0.0.1] (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 4277NLXb012295 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 7 Mar 2024 08:23:23 +0100 Message-ID: Subject: Re: [PATCH] debianize: handle .triggers and .service files From: Uladzimir Bely To: Cedric Hombourger , isar-users@googlegroups.com Date: Thu, 07 Mar 2024 10:23:21 +0300 In-Reply-To: <20231114195427.345320-1-cedric.hombourger@siemens.com> References: <20231114195427.345320-1-cedric.hombourger@siemens.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 (by Flathub.org) MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: sLg9LVmwTGhe On Tue, 2023-11-14 at 20:54 +0100, 'Cedric Hombourger' via isar-users wrote: > Some packages need to update/rebuild the initramfs and this is > particularly > slow on Debian systems (which are not using more modern technologies > such > as dracut or mkosi). Instead of having each package call update- > initramfs, > use a trigger instead to have dpkg defer that call to the very end of > the > transaction. Many packages also failed to rebuild the initramfs when > the > package gets removed. Demonstrate use with initramfs-fsck-hook-ext4. >=20 > Other packages ship systemd units and usually do this using > do_install() > and a postinst script. Such recipes also fail to handle the removal > of > such packages. By naming the unit ${PN}.service and putting it under > debian/, debhelper will generate the necessary maintainer scripts > (preinst, postinst, prerm, postrm). >=20 > Signed-off-by: Cedric Hombourger > --- > =C2=A0meta/classes/debianize.bbclass=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 8 > ++++++++ > =C2=A0...d-on-first-boot_1.4.bb =3D> expand-on-first-boot_1.5.bb} | 6 +--= --- > =C2=A0meta/recipes-support/expand-on-first-boot/files/postinst=C2=A0 | 3 = --- > =C2=A0.../files/{postinst =3D> initramfs-fsck-hook-ext4.triggers} | 5 ++-= -- > =C2=A0...k-hook-ext4_0.1.bb =3D> initramfs-fsck-hook-ext4_0.2.bb} | 2 +- > =C2=A05 files changed, 12 insertions(+), 12 deletions(-) The discusstion looks a bit unfinished. But the patch itself passes CI and we are ready to merge it if there are no objections.