update-initramfs generates wrong RESUME if no swap + zram

Bug #1811447 reported by Mikko Rantalainen
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
initramfs-tools (Debian)
Fix Released
Unknown
initramfs-tools (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

On a system with swap disabled (removed from /etc/fstab) and package zram-config installed update-initramfs -u will emit something like following:

I: The initramfs will attempt to resume from /dev/zram1
I: (UUID=1d4b8573-7eee-43c9-a02a-10a65fc17b8a)
I: Set the RESUME variable to override this.

Obviously, resuming from zram device without actual non-volatile storage is not going to work. update-initramfs should be fixed to ignore /dev/zram* because otherwise the user must e.g. create file /etc/initramfs-tools/conf.d/resume-none with case-sensitive contents

RESUME=none

to workaround the issue, which may be a bit hard to guess from the above notice only.

See also, somewhat related bug: 1781746

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: initramfs-tools 0.130ubuntu3.6
ProcVersionSignature: Ubuntu 4.18.0-13.14~18.04.1-lowlatency 4.18.17
Uname: Linux 4.18.0-13-lowlatency x86_64
ApportVersion: 2.20.9-0ubuntu7.5
Architecture: amd64
Date: Fri Jan 11 19:10:41 2019
EcryptfsInUse: Yes
InstallationDate: Installed on 2019-01-05 (6 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
PackageArchitecture: all
SourcePackage: initramfs-tools
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Mikko Rantalainen (mira) wrote :
Revision history for this message
Mantas Kriaučiūnas (mantas) wrote :

This issue is fixed in Debian since July 2018 - initramfs-tools version 0.132, please accept this simple, 3 lines patch from Debian into Ubuntu 18.04 :

https://salsa.debian.org/kernel-team/initramfs-tools/commit/312393b0cf1231125eeff3d1a2b6b778a935c21d

Look at bug #1781746 for more info.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in initramfs-tools (Ubuntu):
status: New → Confirmed
Changed in initramfs-tools (Debian):
status: Unknown → Fix Released
tags: added: cosmic rls-bb-incoming
removed: amd64
tags: removed: rls-bb-incoming
Revision history for this message
dave58 (dave58) wrote :

Still exists in up-to-date ubuntu-ports (arm64)

deb http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted main multiverse universe.
ii initramfs-tools 0.130ubuntu3.9 all
ii initramfs-tools-bin 0.130ubuntu3.9 arm64
ii initramfs-tools-core 0.130ubuntu3.9 all

Work-around still good: Create file /etc/initramfs-tools/conf.d/resume-none with case-sensitive contents: RESUME=none

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.