Preseeded btrfs installation fails on zesty amd64

Bug #1673605 reported by Max Brustkern
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubiquity (Ubuntu)
New
Undecided
Unassigned

Bug Description

When I run a preseeded virtual machine install using btrfs on a zesty ubuntu-desktop amd64 image, the system never starts the bootloader after the post-install reboot. i386 works fine, and manual selection of btrfs on amd64 seems to work.

Revision history for this message
Max Brustkern (nuclearbob) wrote :

Last successful install was 2016-12-08

Revision history for this message
Phillip Susi (psusi) wrote :

Please attach /var/log/syslog and /var/log/partman after the install finishes. They are copied to the hard drive under /var/log/installer/ if you have already left the live environment.

Changed in ubiquity (Ubuntu):
status: New → Incomplete
Revision history for this message
Max Brustkern (nuclearbob) wrote :

When I mount the disk image leftover after the install, I get a single btrfs partition containing the following files:
.
./@
./@/home
./@/swapfile
./@/etc
./@/etc/fstab
./@/media
./@home

Revision history for this message
Phillip Susi (psusi) wrote :

It used to be that you would see /@, which is normally mounted in /, and /@home, which is normally mounted in /home, thus the log files would be under /@/var/log/installer. I am not sure where these other directories came from.

Revision history for this message
Max Brustkern (nuclearbob) wrote :

Is there a convenient way to access the installer environment on a preseeded install? I recall being able to ctrl-alt-f1, etc. in the past, but I think that's restricted on more recent builds. I can put a delay in the ubiquity success command to give myself the opportunity to get in and grab the installer logs, but I'm not sure how to get in to do so.

Revision history for this message
Phillip Susi (psusi) wrote :

As I have been saying, they are copied to the hard drive at the end of the installation process, so you can just get them off of there.

Revision history for this message
Max Brustkern (nuclearbob) wrote :

The list I gave before comprised all of the files on the drive. The log files do not appear to be available after the installations I've seen complete. That was after mounting the only partition on the drive as well.

Revision history for this message
Phillip Susi (psusi) wrote :

Did you not understand that /@ is a directory, not a file? Look in /@/var/log/installer.

Revision history for this message
Max Brustkern (nuclearbob) wrote :

As I previously attempted to convey, that is an exhaustive list of files on the partition. This is the output of ls -lR:
.:
total 0
drwxr-xr-x 1 root root 40 Mar 9 15:57 @
drwxr-xr-x 1 root root 0 Mar 9 15:56 @home

./@:
total 376520
drwxrwxr-x 1 root root 10 Mar 9 15:56 etc
drwxrwxr-x 1 root root 0 Mar 9 15:56 home
drwxrwxr-x 1 root root 0 Mar 9 15:57 media
-rw------- 1 root root 385556480 Mar 9 15:56 swapfile

./@/etc:
total 4
-rw-rw-r-- 1 root root 693 Mar 9 15:57 fstab

./@/home:
total 0

./@/media:
total 0

./@home:
total 0

/@/var is not present.

Revision history for this message
Max Brustkern (nuclearbob) wrote :

I ran the test again. This time, I did get a /var directory under @ on the partition, but it's empty. /usr and /lib are populated; I can get a full file list if necessary, but it's very long, unlike the previous install. The preseed in use is here:
http://bazaar.launchpad.net/~ubuntu-test-case-dev/ubuntu-test-cases/desktop/view/head:/preseeds/default_btrfs.cfg
The only difference between that and the preseed here that works:
http://bazaar.launchpad.net/~ubuntu-test-case-dev/ubuntu-test-cases/desktop/view/head:/preseeds/default.cfg
is this line:
d-i partman/default_filesystem string btrfs

Revision history for this message
Phillip Susi (psusi) wrote :

It looks like the installation never finished, but you say it appeared to finish, and prompt to restart? Strange...

Changed in ubiquity (Ubuntu):
status: Incomplete → New
Revision history for this message
Max Brustkern (nuclearbob) wrote :

I'm running these on a fast VM host. Is there any chance that the filesystem doesn't finish syncing before the qemu/kvm/libvirt VM restarts? That could explain the difference in contents between the different installs.

Revision history for this message
Max Brustkern (nuclearbob) wrote :

I watched an installation with today's iso (20170321) and it was indicating that it was creating the btrfs filesystem for / when ubiquity stopped and the system rebooted. We're not getting as far as the success_command, so I don't think I can use that to copy logs out. Is there something I can do in an early_command that would work to help get logs out of the installer environment? The automation system we're using (https://code.launchpad.net/utah) uses rsyslog on the system under test after the install completes, I can look into whether it's possible to get it running during the installation. Any other suggestions would be welcome. I can also send the repacked iso or the initrd (with preseed) that we're using to anyone else who might be able to recreate the issue.

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.