[artix-general] [s6] How to add "sync" before umounting anything on reboot/shut-down?

Javier je-vv at e.email
Wed Mar 24 01:36:22 CET 2021


Hi !

I've been noticing that even though reboots and shutdowns cleanly occur, when booting back, often a journal recovery happens.  That is weird to me since there was no issue when the systems go down.

I was looking for "sync" being issued whether on one of the S6 scripts or on the filesystem mount/umount S6 service, but found nothing is calling "sync" prior to do final umount of anything.  I'm wondering if there's a way to accomplish that.  I only noticed:

/etc/s6/sv/mount-filesystems

As a possible mount/umount oneshot, but I'm not sure if any S6 script would be a better option.  Would adding the down to mount-filesystem be the way?  How to successfully add "sync" before umounting anything when rebooting/shutting-down with S6?

Thanks !

-- 
Javier

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <https://lists.artixlinux.org/archives/artix-general/attachments/20210323/c4ac59cc/attachment.sig>


More information about the artix-general mailing list