in-target: mkinitramfs: failed to determine device for /
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
base-installer (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Xenial |
Won't Fix
|
Undecided
|
Unassigned | ||
Bionic |
Expired
|
Undecided
|
Unassigned | ||
initramfs-tools (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Xenial |
Won't Fix
|
Undecided
|
Unassigned | ||
Bionic |
Expired
|
Undecided
|
Unassigned | ||
live-installer (Ubuntu) |
Expired
|
Undecided
|
Unassigned | ||
Xenial |
Won't Fix
|
Undecided
|
Unassigned | ||
Bionic |
Expired
|
Undecided
|
Unassigned |
Bug Description
Sysadmin reported in #ubuntu (later #ubuntu-kernel) the 16.04 ubuntu-server ISO installer failed due to being unable to configure linux-image-
Lots of diagnostics and one SSH remote session later we seem to have narrowed it down to the installer.
At the installer's boot menu the F6 option "Expert mode" is chosen.
During initial ram file-system creation (after the kernel image is installed) the /dev/ file-system is not mounted in /target/ and therefore
the initramfs-
the mount device of "/" (in this case /dev/sda3) with any node under /dev/ which only contains static entries.
Cause appears to be that live-installer.
#waypoint 1 setup_dev
OS=linux
setup_dev() calls setup_dev_${OS}
setup_dev_linux() mounts procfs and devtmpfs into /target/
----
Originally the cause of the error message appeared to be that the symlink names in /dev/disk/by-uuid/ haven't been updated after the partitioning stage if there were pre-existing partitions and file-systems on the install device, *and* the sysadmin chose to format the existing partitions when selecting mountpoints.
In this case a hardware RAID device presents:
/dev/sda1 (/boot/)
/dev/sda2 (swap)
/dev/sda3 (/)
From the shell I noticed:
root@tmpstorage:/# ll /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 May 17 19:39 130e4419-
lrwxrwxrwx 1 root root 10 May 17 19:39 127d3fa1-
lrwxrwxrwx 1 root root 10 May 17 19:39 78b88456-
lrwxrwxrwx 1 root root 9 May 17 19:39 2016-04-
drwxr-xr-x 6 root root 120 May 17 19:39 ..
drwxr-xr-x 2 root root 120 May 17 19:39 .
root@tmpstorage:/# blkid /dev/sda*
/dev/sda: PTUUID="a84e60fd" PTTYPE="dos"
/dev/sda1: UUID="61365714-
/dev/sda2: UUID="78b88456-
/dev/sda3: UUID="75f68451-
More details to follow.
description: | updated |
description: | updated |
Changed in initramfs-tools (Ubuntu): | |
status: | New → Invalid |
Changed in base-installer (Ubuntu): | |
status: | New → Invalid |
tags: | added: ubuntu-server |
tags: | added: server-triage-discuss |
tags: | removed: server-triage-discuss ubuntu-server |
Changed in base-installer (Ubuntu Xenial): | |
status: | New → Won't Fix |
Changed in initramfs-tools (Ubuntu Xenial): | |
status: | New → Won't Fix |
Using a virtual machine I'm able to reproduce the differing UUIDs but not able to reproduce the failure of the initrd generation.
The code that fires the error is /usr/share/ initramfs- tools/hook- functions: :dep_add_ modules_ mount()