Installer hangs idle before populating root-fs with directories, "Saving installed packages..."

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

Bug Description

Trying to install the Xubuntu 20200408 amd64 ISO from USB, Try (safe graphics mode) on Lenovo E495 (AMD Ryzen 7 mobile CPU) - not sure if the CPU might have something to do with this but probably not.

Nothing obvious in the logs I've checked.

Currently the system has been sitting idle for almost 2 hours with the ubiquity GUI showing "Saving installed packages...".

I'm doing a custom partitioning that I've done for years.

Before the installer is started I use gdisk to create the EFI-SP and 2 dm-crypt partitions for /boot/ and LVM respectively.

I use cryptsetup luksFormat --type=xxx ... on the partitions then open them as LUKS_BOOT and LUKS_VG respectively.

I create the VG and several LVs for rootfs, var, home, usr_local.

I format each as ext4 with labels matching the LV name, and format LUKS_BOOT as well.

I format the EFI-SP as vfat with FAT16.

In partman's "Something Else" I then select each LV and set its mountpoint and do not choose to format it (again) since I wish to retain the labels.

I get passed the User Info questions then it idles whilst showing "Saving installed packages...".

The root file-system directory structure hasn't been created:

root@xubuntu:~# mount | grep rootfs
/dev/mapper/ELLOE00-rootfs on /tmp/tmp.woX6753mbL type ext4 (rw,relatime)

root@xubuntu:~# find /tmp/tmp.woX6753mbL/
/tmp/tmp.woX6753mbL/
/tmp/tmp.woX6753mbL/lost+found

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: ubiquity 20.04.9
ProcVersionSignature: Ubuntu 5.4.0-21.25-generic 5.4.27
Uname: Linux 5.4.0-21-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu24
Architecture: amd64
CasperVersion: 1.443
Date: Wed Apr 8 19:36:52 2020
InstallCmdLine: BOOT_IMAGE=/casper/vmlinuz file=/cdrom/preseed/xubuntu.seed quiet splash ---
LiveMediaBuild: Xubuntu 20.04 LTS "Focal Fossa" - Beta amd64 (20200408)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=C.UTF-8
 SHELL=/bin/bash
SourcePackage: ubiquity
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
TJ (tj) wrote :
Revision history for this message
TJ (tj) wrote :
Download full text (4.3 KiB)

Reviewing the source it looks to be stalling in partman/finish.d/apt_clone_save

I added 'set -x' to top of that file in the live system and captured the following in its syslog. Looks like there's a failure to create the root-fs directory structure and so there is no mountpoint for the /var/ file-system:

xubuntu@xubuntu:~$ ls -latr /tmp/tmp.GRbQsIC1FI/
total 20
drwx------ 2 root root 16384 Apr 8 17:02 lost+found
drwxr-xr-x 3 root root 4096 Apr 8 17:02 .
drwxrwxrwt 20 root root 500 Apr 8 21:06 ..

--- syslog ---
Apr 8 20:01:02 xubuntu ubiquity: + db_progress START 0
Apr 8 20:01:02 xubuntu ubiquity: 1 ubiquity/install/title
Apr 8 20:01:02 xubuntu ubiquity: + _db_cmd PROGRESS START
Apr 8 20:01:02 xubuntu ubiquity: 0 1 ubiquity/install/title
Apr 8 20:01:02 xubuntu ubiquity: + _db_internal_IFS= #011
Apr 8 20:01:02 xubuntu ubiquity:
Apr 8 20:01:02 xubuntu ubiquity: + IFS=
Apr 8 20:01:02 xubuntu ubiquity: + printf %s\n PROGRESS START 0 1 ubiquity/install/title
Apr 8 20:01:02 xubuntu ubiquity: + IFS=
Apr 8 20:01:02 xubuntu ubiquity:
Apr 8 20:01:02 xubuntu ubiquity: + read -r _db_internal_line
Apr 8 20:01:02 xubuntu ubiquity: + IFS= #011
Apr 8 20:01:02 xubuntu ubiquity:
Apr 8 20:01:02 xubuntu ubiquity: + RET=OK
Apr 8 20:01:02 xubuntu ubiquity: + return 0
Apr 8 20:01:02 xubuntu ubiquity: + db_progress INFO ubiquity/install/apt_clone_save
Apr 8 20:01:02 xubuntu ubiquity: + _db_cmd PROGRESS INFO ubiquity/install/apt_clone_save
Apr 8 20:01:02 xubuntu ubiquity: + _db_internal_IFS= #011
Apr 8 20:01:02 xubuntu ubiquity:
Apr 8 20:01:02 xubuntu ubiquity: + IFS=
Apr 8 20:01:02 xubuntu ubiquity: + printf %s\n PROGRESS INFO ubiquity/install/apt_clone_save
Apr 8 20:01:02 xubuntu ubiquity: + IFS=
Apr 8 20:01:02 xubuntu ubiquity:
Apr 8 20:01:02 xubuntu ubiquity: + read -r _db_internal_line
Apr 8 20:01:02 xubuntu ubiquity: + IFS= #011
Apr 8 20:01:02 xubuntu ubiquity:
Apr 8 20:01:02 xubuntu ubiquity: + RET=OK
Apr 8 20:01:02 xubuntu ubiquity: + return 0

Apr 8 20:01:02 xubuntu ubiquity: + mount /dev/mapper/ELLOE00-rootfs /tmp/tmp.GRbQsIC1FI
Apr 8 20:01:02 xubuntu ubiquity: + [ -n /dev/mapper/ELLOE00-var ]
Apr 8 20:01:02 xubuntu kernel: [ 3188.701770] EXT4-fs (dm-2): mounted filesystem with ordered data mode. Opts: (null)

Apr 8 20:01:02 xubuntu ubiquity: + mount /dev/mapper/ELLOE00-var /tmp/tmp.GRbQsIC1FI/var
Apr 8 20:01:02 xubuntu ubiquity: mount: /tmp/tmp.GRbQsIC1FI/var: mount point does not exist.

Apr 8 20:01:02 xubuntu ubiquity[24878]: debconffilter_done: ubiquity.components.partman_commit (current: ubi-timezone)
Apr 8 20:01:04 xubuntu ubiquity[24878]: switched to page timezone
Apr 8 20:01:06 xubuntu localechooser: info: debian-installer/language preseeded to 'en_GB:en' (seen: false)
Apr 8 20:01:06 xubuntu localechooser: info: debian-installer/country preseeded to 'GB' (seen: true)
Apr 8 20:01:06 xubuntu localechooser: info: debian-installer/locale preseeded to 'en_GB.UTF-8' (seen: true)
Apr 8 20:01:06 xubuntu localechooser: info: Preseeded language ignored: unknown language code
Apr 8 20:01:06 xubuntu localechooser: info: Language = 'en'
Apr 8 20:01:06 xubuntu localechooser: info: line=en;0;US;en_US.UTF...

Read more...

description: updated
Revision history for this message
TJ (tj) wrote :

Solution:

Create all the mountpoints in the root-fs when doing a manual install.

e.g:

sudo mkdir -p /target/{proc,sys,dev/pts,var,home,boot,usr/local}

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.