On Wed, Nov 22, 2017 at 01:05:00AM +0200, Jukka Tastula wrote:
> After generating an initrd update-initramfs calls sync unconditinally. This
> can take a very long time to return if other disk activity, like perhaps a
> long backup job, is running simultaneously. Suggest only syncing the 
> filesystem the initrd is actually placed on instead.

I think this is a good idea, and it would also avoid upgrade problems
such as
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1667512
in the case of things like stuck NFS mounts.

To avoid backport surprises, I would suggest adding a dependency on
coreutils (>= 8.24), which introduced the feature of sync(1) being used
here.

I've put all this in a merge request:

  https://salsa.debian.org/kernel-team/initramfs-tools/merge_requests/6

-- 
Colin Watson                                       [cjwat...@debian.org]

Reply via email to