hanging at boot for about 30 seconds since upgrade to bionic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[SRU Justification]
A regression in initramfs-tools causes it to autogenerate config in the initramfs saying to resume from any available swap devices, even if the swap device is ephemeral (i.e. swap encrypted with a random key). This adds an inappropriate 30-second boot delay to any system with randomly-crypted swap, which includes any system that was installed with encrypted home directories in earlier releases.
[Test case]
1. Install the ecryptfs-utils package.
2. Enable encrypted swap by running 'sudo ecryptfs-
3. Run 'update-initramfs -u' to regenerate the initramfs.
4. Reboot.
5. Verify that dmesg shows a 30-second delay before mounting the root filesystem.
6. Install initramfs-tools from bionic-proposed.
7. Reboot.
8. Verify that dmesg no longer shows a 30-second delay before mounting the root filesystem.
[Regression potential]
This makes changes to shell scripts, and shell is a perilous language. An unnoticed bug could cause all initramfs generation, and thus all kernel installation, to fail for some users. A regression could also cause a user to lose hiberation support that they currently have.
[Original description]
Since upgrade to Bionic ubuntu is hanging at boot for about 30s. A `dmesg` shows
```
[ 3.407230] clocksource: Switched to clocksource tsc
[ 34.632583] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
```
This is 100% reproducable and is always 30s minimum. I do not know in which package to report this properly – please excuse me.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: ubuntu-
ProcVersionSign
Uname: Linux 4.15.0-
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
CrashDB: ubuntu
CurrentDesktop: i3
Date: Fri May 18 09:40:59 2018
EcryptfsInUse: Yes
InstallationDate: Installed on 2014-06-03 (1444 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
PackageArchitec
SourcePackage: ubuntu-
Symptom: release-upgrade
UpgradeStatus: Upgraded to bionic on 2018-05-13 (5 days ago)
VarLogDistupgra
Error: command ['pkexec', 'cat', '/var/log/
Error executing command as another user: Not authorized
This incident has been reported.
tags: | added: xenial2bionic |
description: | updated |
Changed in ubuntu-release-upgrader (Ubuntu): | |
status: | Triaged → Fix Committed |
This is a duplicate of https:/ /bugs.launchpad .net/ubuntu/ +source/ linux/+ bug/1460447 and solution is setting `RESUME=none` in `/etc/initramfs -tools/ conf.d` as described in https:/ /askubuntu. com/questions/ 1029598/ xubuntu- 18-04-kernel- takes-long- to-boot
No problem with 16.04 though. Never been.