[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#854791: initramfs-tools: does not wait for "resume" device to come up



Package: initramfs-tools
Version: 0.127
Severity: normal

Dear Maintainer,

My nvme device in my laptop is a bit slow to enumerate its partitions
(it takes upto 0.3 sec). This causes the initramfs script to fail to
resume from hibernation. The resume script in local-premount just
checks if the resume device exists, but it doesn't wait for it to
become available, like with the root device.


With a quick hack where i just add a "sleep 1" before
"[ ! -e "${resume}" ] && exit 0"
in the resume script, my laptop is able to resume.

-- Package-specific info:
-- initramfs sizes
-rw-r--r-- 1 root root 4.7M Feb 10 12:02 /boot/initrd.img-4.9.0-1-amd64
-- /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-4.9.0-1-amd64 root=UUID=3724fe6e-df2c-453c-80e5-219fb9fd6a23 ro debug

-- resume
RESUME=/dev/nvme0n1p8
-- /proc/filesystems
	ext3
	ext2
	ext4
	vfat

-- lsmod
Module                  Size  Used by
cmac                   16384  1
bnep                   20480  2
btusb                  45056  0
btrtl                  16384  1 btusb
cpuid                  16384  0
ctr                    16384  6
ccm                    20480  3
uvcvideo               90112  0
videobuf2_vmalloc      16384  1 uvcvideo
videobuf2_memops       16384  1 videobuf2_vmalloc
videobuf2_v4l2         24576  1 uvcvideo
videobuf2_core         36864  2 uvcvideo,videobuf2_v4l2
videodev              176128  3 uvcvideo,videobuf2_core,videobuf2_v4l2
media                  40960  2 uvcvideo,videodev
snd_hda_codec_hdmi     45056  1
snd_hda_codec_generic    69632  1
joydev                 20480  0
iTCO_wdt               16384  0
iTCO_vendor_support    16384  1 iTCO_wdt
snd_soc_skl            65536  0
snd_soc_skl_ipc        45056  1 snd_soc_skl
snd_soc_sst_ipc        16384  1 snd_soc_skl_ipc
intel_rapl             20480  0
x86_pkg_temp_thermal    16384  0
intel_powerclamp       16384  0
coretemp               16384  0
snd_soc_sst_dsp        28672  1 snd_soc_skl_ipc
snd_hda_ext_core       28672  1 snd_soc_skl
snd_soc_sst_match      16384  1 snd_soc_skl
kvm_intel             192512  0
snd_soc_core          212992  1 snd_soc_skl
nls_ascii              16384  1
kvm                   589824  1 kvm_intel
nls_cp437              20480  1
snd_compress           20480  1 snd_soc_core
vfat                   20480  1
fat                    69632  1 vfat
irqbypass              16384  1 kvm
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
ghash_clmulni_intel    16384  0
intel_cstate           16384  0
arc4                   16384  2
xhci_pci               16384  0
efi_pstore             16384  0
snd_hda_intel          36864  0
xhci_hcd              188416  1 xhci_pci
i915                 1236992  7
snd_hda_codec         135168  3 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic
intel_uncore          118784  0
psmouse               135168  0
intel_rapl_perf        16384  0
ahci                   36864  0
efivars                20480  1 efi_pstore
snd_hda_core           81920  6 snd_hda_intel,snd_hda_codec,snd_hda_ext_core,snd_soc_skl,snd_hda_codec_hdmi,snd_hda_codec_generic
pcspkr                 16384  0
snd_hwdep              16384  1 snd_hda_codec
iwlmvm                245760  0
drm_kms_helper        155648  1 i915
mac80211              671744  1 iwlmvm
usbcore               249856  4 uvcvideo,xhci_pci,btusb,xhci_hcd
drm                   360448  5 i915,drm_kms_helper
snd_pcm               110592  7 snd_hda_intel,snd_hda_codec,snd_hda_ext_core,snd_hda_core,snd_soc_skl,snd_hda_codec_hdmi,snd_soc_core
libahci                32768  1 ahci
iwlwifi               151552  1 iwlmvm
usb_common             16384  1 usbcore
i2c_i801               24576  0
snd_timer              32768  1 snd_pcm
snd                    86016  9 snd_compress,snd_hda_intel,snd_hwdep,snd_hda_codec,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_soc_core,snd_pcm
i2c_smbus              16384  1 i2c_i801
soundcore              16384  1 snd
cfg80211              589824  3 iwlmvm,iwlwifi,mac80211
libata                249856  2 ahci,libahci
mei_me                 36864  0
scsi_mod              225280  1 libata
intel_pch_thermal      16384  0
mei                   102400  1 mei_me
processor_thermal_device    16384  0
int340x_thermal_zone    16384  1 processor_thermal_device
i2c_algo_bit           16384  1 i915
intel_soc_dts_iosf     16384  1 processor_thermal_device
ideapad_laptop         24576  0
wmi                    16384  1 ideapad_laptop
battery                16384  0
ac                     16384  0
hci_uart               98304  0
btbcm                  16384  2 hci_uart,btusb
intel_vbtn             16384  0
btqca                  16384  1 hci_uart
sparse_keymap          16384  2 intel_vbtn,ideapad_laptop
btintel                16384  2 hci_uart,btusb
video                  40960  2 i915,ideapad_laptop
bluetooth             552960  28 btrtl,hci_uart,btintel,btqca,bnep,btbcm,btusb
i2c_hid                20480  0
intel_lpss_acpi        16384  0
intel_lpss             16384  1 intel_lpss_acpi
rfkill                 24576  7 bluetooth,ideapad_laptop,cfg80211
int3400_thermal        16384  0
mfd_core               16384  1 intel_lpss
hid                   122880  1 i2c_hid
tpm_crb                16384  0
acpi_thermal_rel       16384  1 int3400_thermal
button                 16384  1 i915
acpi_pad               24576  0
fjes                   28672  0
tpm_tis                16384  0
tpm_tis_core           20480  1 tpm_tis
tpm                    45056  3 tpm_tis,tpm_crb,tpm_tis_core
efivarfs               16384  1
ip_tables              24576  0
x_tables               36864  1 ip_tables
autofs4                40960  2
ext4                  585728  1
crc16                  16384  2 bluetooth,ext4
jbd2                  106496  1 ext4
crc32c_generic         16384  0
fscrypto               28672  1 ext4
ecb                    16384  0
mbcache                16384  2 ext4
crc32c_intel           24576  2
aesni_intel           167936  8
aes_x86_64             20480  1 aesni_intel
glue_helper            16384  1 aesni_intel
lrw                    16384  1 aesni_intel
gf128mul               16384  1 lrw
ablk_helper            16384  1 aesni_intel
cryptd                 24576  3 ablk_helper,ghash_clmulni_intel,aesni_intel
evdev                  24576  12
nvme                   28672  3
nvme_core              40960  5 nvme
serio_raw              16384  0
shpchp                 36864  0
thermal                20480  0

-- /etc/initramfs-tools/modules

-- /etc/kernel-img.conf
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = no
do_bootloader = no
do_initrd = yes
link_in_boot = no

-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=auto
KEYMAP=n
COMPRESS=gzip
DEVICE=
NFSROOT=auto

-- /etc/initramfs-tools/update-initramfs.conf
update_initramfs=yes
backup_initramfs=no

-- /sys/block
nvme0n1

-- mkinitramfs hooks
/etc/initramfs-tools/hooks/:

/usr/share/initramfs-tools/hooks:
dmsetup
fsck
fuse
intel_microcode
keymap
klibc-utils
kmod
ntfs_3g
resume
thermal
udev
zz-busybox


-- System Information:
Debian Release: 9.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=nl_NL.utf8 (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.127
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


Reply to: