update-initramfs generates wrong RESUME if no swap + zram
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-
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-
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
ProcVersionSign
Uname: Linux 4.18.0-
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)
PackageArchitec
SourcePackage: initramfs-tools
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in initramfs-tools (Debian): | |
status: | Unknown → Fix Released |
tags: |
added: cosmic rls-bb-incoming removed: amd64 |
tags: | removed: rls-bb-incoming |
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/ 312393b0cf12311 25eeff3d1a2b6b7 78a935c21d
Look at bug #1781746 for more info.