Bionic net installer on ppc64el fails, can't chroot to target

Bug #1737661 reported by Jeremy Kerr
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
The Ubuntu-power-systems project
New
High
Canonical Foundations Team
debian-installer (Ubuntu)
New
Undecided
Unassigned

Bug Description

When attempting a netboot install on bionic, it fails during base system install, with the message:

. │ │ Debootstrap warning │ │
. │ │ Warning: Failure trying to run: chroot /target dpkg-deb -f │ │
. │ │ /var/cache/apt/archives/dpkg_1.19.0.4ubuntu1_ppc64el.deb Version │ │

Trying to run anything in the chroot at /target/ fails:

  ~ # chroot /target /bin/bash
  chroot: can't execute '/bin/bash': No such file or directory
  ~ # ls -l /target/bin/bash
  -rwxr-xr-x 1 root root 1544376 May 17 2017 /target/bin/bash

... which looks like a missing dynamic linker:

  $ readelf -l bash | grep interpreter
      [Requesting program interpreter: /lib64/ld64.so.2]

  ~ # ls -l /target/lib64/ld64.so.2
  ls: /target/lib64/ld64.so.2: No such file or directory
  ~ # ls -la /target/lib64/
  drwxr-xr-x 2 root root 4096 Oct 11 20:21 .
  drwxr-xr-x 20 root root 4096 May 23 2017 ..

The syslog seems to indicate that the installer failed to untar a symlink:

  Dec 12 05:17:36 debootstrap: tar: skipping unsafe symlink to '/lib/powerpc64le-linux-gnu/ld-2.26.so' in archive, set EXTRACT_UNSAFE_SYMLINKS=1 to extract

I've attached a script to reproduce the issue in qemu. I can provide the full syslog if you need it.

Tags: ppc64el
Revision history for this message
Jeremy Kerr (jk-ozlabs) wrote :
Revision history for this message
Frank Heimes (fheimes) wrote :
Changed in ubuntu-power-systems:
importance: Undecided → High
assignee: nobody → Canonical Foundations Team (canonical-foundations)
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.