From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Date: Mon, 10 Aug 2020 15:59:00 +0200 From: Robert Schwebel Message-ID: <20200810135900.aklcw4an55tytzy7@pengutronix.de> References: <20200810101713.247725-1-r.schwebel@pengutronix.de> <20200810134615.sipkuohxucftbcy2@pengutronix.de> MIME-Version: 1.0 In-Reply-To: <20200810134615.sipkuohxucftbcy2@pengutronix.de> Subject: Re: [ptxdist] [PATCH] rc-once: make sure data makes it to the medium List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: multipart/mixed; boundary="===============0944764319==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= Cc: ptxdist@pengutronix.de --===============0944764319== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qe2svlh7hmwaezjw" Content-Disposition: inline --qe2svlh7hmwaezjw Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 10, 2020 at 03:46:15PM +0200, Uwe Kleine-K=C3=B6nig wrote: > > umount() { > > + # make sure rc-once generated data makes it to the medium > > + sync > > if ! mount_root_restore; then > > # remounting rw/ro during the second boot will flush anything > > # left in the filesystem journal >=20 > I would expect that the mount -o remount,ro that is done (sometimes) as > part of mount_root_restore should handle this just fine. In my case the system is always booted rw, so remounting ro doesn't happen here at all, the script exits and the labgrid server powers the board off before the data is written to disk. Most other systems mount / ro, so remounting happens here and acts as a flush barrier. rsc --=20 Pengutronix e.K. | Dipl.-Ing. Robert Schwebel | Steuerwalder Str. 21 | https://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 | --qe2svlh7hmwaezjw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQTgfk2nRbrlyHaVRT7zP4gqAOHIAUCXzFSogAKCRD7zP4gqAOH IJ1PAKCHifCdMk7trkVI+yexJlpJ2Z3pzQCdF4AU74o03Q1/u3jSrO0INdT4Skc= =pPve -----END PGP SIGNATURE----- --qe2svlh7hmwaezjw-- --===============0944764319== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de --===============0944764319==--