cryptsetup preventing proper boot swap AND root on crypt device together
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cryptsetup (Ubuntu) |
Triaged
|
High
|
TJ |
Bug Description
Summary:
Boot drops into busybox (initramfs) on initial boot.
Cause:
initrd.
The hook script /usr/share/
incorrectly adds the swap entry.
Manually removing the entry from the initrd's cryptroot allows the system to boot correctly.
Overview:
# /etc/crypttab
sda5_crypt UUID=e395c3fa-
# extracted initrd.img
/tmp/initrd/
target=
target=
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/
# /boot was on /dev/sda1 during installation
UUID=955c7e81-
/dev/mapper/
blkid
/dev/sda1: UUID="955c7e81-
/dev/sda5: UUID="e395c3fa-
/dev/mapper/
/dev/mapper/
/dev/mapper/
/dev/sdb1: LABEL="Elements" UUID="308B9F8A5
lsblk
NAME FSTYPE LABEL MOUNTPOINT
sda
├─sda1 ext2 /boot
├─sda2
└─sda5 crypto_LUKS
└─sda5_crypt (dm-0) LVM2_member
├─ubuntu-
└─ubuntu-
sdb
└─sdb1 ntfs Elements /media/
sr0
# Debugging enabled (set -x) in /usr/share/
update-initramfs -vu
...
+ echo target=
...
+ echo target=
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: cryptsetup 2:1.6.1-1ubuntu1 [modified: usr/share/
ProcVersionSign
Uname: Linux 3.16.0-46-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.11
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Aug 20 09:39:02 2015
InstallationDate: Installed on 2015-07-06 (44 days ago)
InstallationMedia: Ubuntu 14.04.2 LTS "Trusty Tahr" - Release amd64 (20150218.1)
SourcePackage: cryptsetup
UpgradeStatus: No upgrade log present (probably fresh install)
crypttab: sda5_crypt UUID=e395c3fa-
Changed in cryptsetup (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → TJ (tj) |