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


Groups > linux.debian.kernel > #59452

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

Path csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod
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 Wed, 22 Nov 2017 00:10:01 +0100
Message-ID <uOpPX-or-7@gated-at.bofh.it> (permalink)
X-Original-To Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Tue Nov 21 23:09:10 2017
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -3.108
Reply-To Jukka Tastula <poltsy@gmail.com>, 882380@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc poltsy@gmail.com, Debian kernel team <debian-kernel@lists.debian.org>
X-Debian-Pr-Message report 882380
X-Debian-Pr-Package initramfs-tools
X-Debian-Pr-Keywords patch
X-Debian-Pr-Source initramfs-tools
X-Spam-Bayes score:0.0000 Tokens: new, 24; hammy, 145; neutral, 52; spammy, 5. spammytokens:1.000-1--H*MI:michelle, 1.000-1--H*M:michelle, 0.998-1--H*MI:sarah, 0.997-1--H*M:sarah, 0.953-+--H*r:bugs.debian.org hammytokens:0.000-+--systemd, 0.000-+--H*M:reportbug, 0.000-+--H*MI:reportbug, 0.000-+--H*x:reportbug, 0.000-+--H*UA:reportbug
Content-Type text/plain; charset="us-ascii"
MIME-Version 1.0
Content-Transfer-Encoding 7bit
X-Mailer reportbug 7.1.7
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1420648
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 49
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Wed, 22 Nov 2017 01:05:00 +0200
X-Original-Message-ID <151130550023.30681.3632774053660797252.reportbug@sarah-michelle>
Xref csiph.com linux.debian.bugs.dist:864335 linux.debian.kernel:59452

Cross-posted to 2 groups.

Show key headers only | 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.kernel | 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