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


Groups > linux.debian.kernel > #57558 > unrolled thread

Bug#860403: mounting root filesystem takes 20 seconds longer than before because mdadm script is called repeatedly

Started byDaniel Haid <d.haid@gogi.tv>
First post2017-04-16 12:10 +0200
Last post2017-04-24 02:40 +0200
Articles 5 — 4 participants

Back to article view | Back to linux.debian.kernel


Contents

  Bug#860403: mounting root filesystem takes 20 seconds longer than before because mdadm script is called repeatedly Daniel Haid <d.haid@gogi.tv> - 2017-04-16 12:10 +0200
    Bug#860403: Acknowledgement (mounting root filesystem takes 20 seconds longer than before because mdadm script is called repeatedly) Daniel Haid <d.haid@gogi.tv> - 2017-04-16 13:40 +0200
      Bug#860403: Acknowledgement (mounting root filesystem takes 20 seconds longer than before because mdadm script is called repeatedly) Ben Hutchings <ben@decadent.org.uk> - 2017-04-16 17:50 +0200
      Bug#860403: Acknowledgement (mounting root filesystem takes 20 seconds longer than before because mdadm script is called repeatedly) Romain Francoise <rfrancoise@debian.org> - 2017-04-19 17:30 +0200
    Bug#860403: marked as done (Boot delay waiting for nonexistent  suspend/resume device) owner@bugs.debian.org (Debian Bug Tracking System) - 2017-04-24 02:40 +0200

#57558 — Bug#860403: mounting root filesystem takes 20 seconds longer than before because mdadm script is called repeatedly

FromDaniel Haid <d.haid@gogi.tv>
Date2017-04-16 12:10 +0200
SubjectBug#860403: mounting root filesystem takes 20 seconds longer than before because mdadm script is called repeatedly
Message-ID<twPi1-2ob-13@gated-at.bofh.it>
Package: initramfs-tools-core
Version: 0.128
Severity: important

Dear Maintainer,

in 0.128 scripts/local was changed to call scripts/local-block/mdadm
repeatedly, resulting in a 20 second delay when booting although my
root filesystem is not on an array and I do not want to uninstall
mdadm.

[toc] | [next] | [standalone]


#57559 — Bug#860403: Acknowledgement (mounting root filesystem takes 20 seconds longer than before because mdadm script is called repeatedly)

FromDaniel Haid <d.haid@gogi.tv>
Date2017-04-16 13:40 +0200
SubjectBug#860403: Acknowledgement (mounting root filesystem takes 20 seconds longer than before because mdadm script is called repeatedly)
Message-ID<twQH7-35Q-1@gated-at.bofh.it>
In reply to#57558
Actually, this had nothing to do with mdadm. The scripts were waiting
for the resume swap partition, which was autodetected by mkinitramfs,
but can not be found anymore because it was encrypted with a random key.

As a workaround, I added the following script to /etc/initramfs-tools/hooks:

#! /bin/sh
test -f ${DESTDIR}/conf/conf.d/resume && rm ${DESTDIR}/conf/conf.d/resume
return 0

But what is the correct way to disable resume partition autodetection?

[toc] | [prev] | [next] | [standalone]


#57560 — Bug#860403: Acknowledgement (mounting root filesystem takes 20 seconds longer than before because mdadm script is called repeatedly)

FromBen Hutchings <ben@decadent.org.uk>
Date2017-04-16 17:50 +0200
SubjectBug#860403: Acknowledgement (mounting root filesystem takes 20 seconds longer than before because mdadm script is called repeatedly)
Message-ID<twUB3-5o2-5@gated-at.bofh.it>
In reply to#57559

[Multipart message — attachments visible in raw view] — view raw

On Sun, 2017-04-16 at 13:28 +0200, Daniel Haid wrote:
> Actually, this had nothing to do with mdadm. The scripts were waiting
> for the resume swap partition, which was autodetected by mkinitramfs,
> but can not be found anymore because it was encrypted with a random key.
> 
> As a workaround, I added the following script to /etc/initramfs-tools/hooks:
> 
> #! /bin/sh
> test -f ${DESTDIR}/conf/conf.d/resume && rm ${DESTDIR}/conf/conf.d/resume
> return 0
> 
> But what is the correct way to disable resume partition autodetection?

You can add 'noresume' or 'resume=' to the kernel command line.

Ben.

-- 
Ben Hutchings
Larkinson's Law: All laws are basically false.

[toc] | [prev] | [next] | [standalone]


#57594 — Bug#860403: Acknowledgement (mounting root filesystem takes 20 seconds longer than before because mdadm script is called repeatedly)

FromRomain Francoise <rfrancoise@debian.org>
Date2017-04-19 17:30 +0200
SubjectBug#860403: Acknowledgement (mounting root filesystem takes 20 seconds longer than before because mdadm script is called repeatedly)
Message-ID<txZIm-56L-9@gated-at.bofh.it>
In reply to#57559
On Sun, Apr 16, 2017 at 01:28:45PM +0200, Daniel Haid wrote:
> Actually, this had nothing to do with mdadm. The scripts were waiting
> for the resume swap partition, which was autodetected by mkinitramfs,
> but can not be found anymore because it was encrypted with a random key.

Same here, my swap partition is ephemeral as it is a zram device.

Surely mkinitramfs could be made smarter and only consider swap devices
that are *actually* configured for resume in the kernel command line?

See also: https://www.reddit.com/r/debian/comments/64wonb/gave_up_waiting_for_suspendresume_device/

-- 
Romain Francoise <rfrancoise@debian.org>
http://people.debian.org/~rfrancoise/

[toc] | [prev] | [next] | [standalone]


#57649 — Bug#860403: marked as done (Boot delay waiting for nonexistent suspend/resume device)

Fromowner@bugs.debian.org (Debian Bug Tracking System)
Date2017-04-24 02:40 +0200
SubjectBug#860403: marked as done (Boot delay waiting for nonexistent suspend/resume device)
Message-ID<tzAcO-7F3-13@gated-at.bofh.it>
In reply to#57558

[Multipart message — attachments visible in raw view] — view raw

Your message dated Mon, 24 Apr 2017 00:33:47 +0000
with message-id <E1d2Rwp-0007O2-9a@fasolo.debian.org>
and subject line Bug#860403: fixed in initramfs-tools 0.129
has caused the Debian Bug report #860403,
regarding Boot delay waiting for nonexistent suspend/resume device
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
860403: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=860403
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.kernel


csiph-web