Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #864335

Bug#882380: initramfs-tools: Update-initramfs can take an unnecessarily long time if other disk activity is ongoing

From Jukka Tastula <poltsy@gmail.com>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#882380: initramfs-tools: Update-initramfs can take an unnecessarily long time if other disk activity is ongoing
Date 2017-11-22 00:10 +0100
Message-ID <uOpPX-or-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


Package: initramfs-tools
Version: 0.130
Severity: wishlist
Tags: patch

Hi. 

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.



-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.12.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages initramfs-tools depends on:
ii  initramfs-tools-core  0.130
ii  linux-base            4.5

initramfs-tools recommends no packages.

Versions of packages initramfs-tools suggests:
ii  bash-completion  1:2.1-4.3

-- no debconf information

*** /home/pollo/ir.diff
--- update-initramfs~	2017-03-07 00:42:55.000000000 +0200
+++ update-initramfs	2017-11-22 00:16:29.149530813 +0200
@@ -158,7 +158,7 @@
 		mv -f "${initramfs}.new" "${initramfs}"
 		set_sha1
 		# Guard against an unclean shutdown
-		sync
+		sync -f "${initramfs}"
 	else
 		mkinitramfs_return="$?"
 		remove_initramfs_bak

Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread


Thread

Bug#882380: initramfs-tools: Update-initramfs can take an unnecessarily long time if other disk activity is ongoing Jukka Tastula <poltsy@gmail.com> - 2017-11-22 00:10 +0100

csiph-web