From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 1 Nov 2019 21:58:44 +0300 From: "Dmitry V. Levin" To: ALT Devel discussion list Message-ID: <20191101185842.GA7204@altlinux.org> References: <20191031115808.35705-1-darktemplar@altlinux.org> <20191031125957.GA19388@altlinux.org> <7d94a565-0723-68ca-717b-f86ef1256356@altlinux.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="fdj2RfSjLxBAspz7" Content-Disposition: inline In-Reply-To: <7d94a565-0723-68ca-717b-f86ef1256356@altlinux.org> Subject: Re: [devel] [PATCH for rpm] Add triggers circumvension for packagekit offline update X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 18:58:44 -0000 Archived-At: List-Archive: List-Post: --fdj2RfSjLxBAspz7 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 31, 2019 at 04:19:16PM +0300, Aleksei Nikiforov wrote: > 31.10.2019 15:59, Dmitry V. Levin =D0=C9=DB=C5=D4: > > On Thu, Oct 31, 2019 at 02:58:08PM +0300, Aleksei Nikiforov wrote: > >> Joint change with Oleg Solovyov (mcpain@) > >=20 > > Thanks. > >=20 > > It's not clear from the commit message why one might need to disable > > rpmdb --rebuilddb after rpm update. > >=20 > > Could you elaborate, please? >=20 > packagekit offline update is implemented in following way: > 1) system is preparing for offline update: all new installed packages=20 > are downloaded, etc. > 2) system is rebooting into special systemd offline update mode upon=20 > user request. > 3) in this offline update mode packagekit offline update service is=20 > performing system update using packagekit service activated via dbus. > 4) Last step of systemd offline update is a reboot request. It must be=20 > made by offline update service. And packagekit offline update service=20 > does request it. >=20 > Thus, rpmdb --rebuilddb from rpm scripts would be in race against reboot= =20 > request. Testing showed that it doesn't work properly in such=20 > conditions. In best case, rpmdb --rebuilddb doesn't do anything at all=20 > before reboot happens. Instead of hoping to get it work properly in such= =20 > conditions, disabling it in rpm scripts and calling it right after=20 > update but before reboot request from packagekit offline update works fin= e: OK, I cannot say that I like this approach, but at least it makes sense. The alternative is invoking pk-offline-update in a separate pid namespace which is probably not as simple as disabling rpm %post. Could you add the rationale from your post into the commit message, please? --=20 ldv --fdj2RfSjLxBAspz7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJdvIBiAAoJEAVFT+BVnCUIJYoP/2p/EOMVq059cT3quoErxvOz SK/qJ2/InfHJmMMz+0NtOuKCZ3fnJWkRYQqUKBFWu8B3bfDA4NgiiZyUglvRPrcN QEfdD0hAs1MYBpgcSx8GmuCr04QPTNMmGB/ksEm7SnXQOYW8r5Wc0ne1l/h+e8Vr CKNNMAM/MkCna+0Sz7898quVZlmBPdhPAdB8v5PbW8g9b6gkBwSqz8yu3FKKYApb 80+OIII6Hs5aAkaye+K9Hi5uipS/XZZ4kaY9oo76A8CjmeKI5MubMnFpWg8Xnzmj i3JCa/XegClvOBruLUOdPZV5aFhQ182e7h7VmDm53IqHC4u6MHVf5TTfHOPw0aeJ Q5Sfq/QOnA4g0qhia6KpBuMdm/TIu2ulMJ9VKvtfyIca+Uy/9q2Brr+H6dMWMRr4 0QX3Jkpi+F0HditM/2r+pCDSk8z+3uOxVWWbdUZIktrq8LOC+N9YqXXz4G2II4Ro 8dyDTT1DFkO2QU3Dc9l5ZSkyhtcqWj8z9fXVyzXXOf50TcS0eJzfhE3EDaJsk0Th OzCmY+6uSzP3SdC+y0QozUHmibqCY/pQ1E7KF3/CSeX15JXc1rCsr5hhI3S+0Dpe FJ3d1e40J6vZ/prf3ii/cqu07IxcRdrD75u36/7qHys3b9/cheDB9w2vX+j0TjjY yy7F8ivg0BEFKEhqpMCL =Wzks -----END PGP SIGNATURE----- --fdj2RfSjLxBAspz7--