Does not install correct syslinux theme

Bug #910859 reported by Redmar
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-defaults-builder (Ubuntu)
Fix Released
High
Martin Pitt

Bug Description

I used

ubuntu-defaults-template dutch

to generate all example files. I only changed the i18l/language.txt to include 'nl', and then build the package with dpkg-buildpackage.

Then I ran:

ubuntu-defaults-image *all.deb

which seemed to run without erros, but did not generate an iso file. I have attached binary.log

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: ubuntu-defaults-builder 0.23
ProcVersionSignature: Ubuntu 3.2.0-7.13-generic 3.2.0-rc7
Uname: Linux 3.2.0-7-generic x86_64
ApportVersion: 1.90-0ubuntu1
Architecture: amd64
Date: Mon Jan 2 15:15:44 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20111129.1)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, no user)
 LANG=nl_NL.UTF-8
 SHELL=/bin/bash
SourcePackage: ubuntu-defaults-builder
UpgradeStatus: Upgraded to precise on 2011-12-17 (15 days ago)

Revision history for this message
Redmar (redmar) wrote :
Revision history for this message
Martin Pitt (pitti) wrote :

cp: cannot stat `/usr/share/syslinux/themes/ubuntu-oneiric/isolinux-live/*': No such file or directory

You need to install the syslinux-themes-ubuntu package. ubuntu-defaults-builder recommends it, but perhaps you uninstalled it or installed with --no-install-recommends?

Changed in ubuntu-defaults-builder (Ubuntu):
status: New → Incomplete
Revision history for this message
Redmar (redmar) wrote :

I have syslinux-themes-ubuntu installed, but I'm running Precise. I think that means that ubuntu-defaults-image shouldn't look for the directory 'ubuntu-oneiric' but for 'ubuntu-precise'.

I'll try to copy ubuntu-precise to ubuntu-oneiric in /usr/share/syslinux/themes, and see if that solves it.

Revision history for this message
Redmar (redmar) wrote :

Copying ubuntu-oneiric to ubuntu-precise and building the example image did give an iso. It's not really functional, but thats probably due to the alpha nature of precise at the moment.

Revision history for this message
Martin Pitt (pitti) wrote :

Can you please give me the output of

  dpkg -l 'syslinux-themes*'|cat

? syslinux-themes-ubuntu version 2 depends on syslinux-themes-ubuntu-precise, which does ship /usr/share/syslinux/themes/ubuntu-precise .

Revision history for this message
Redmar (redmar) wrote :

test@test:~$ dpkg -l 'syslinux-themes*' | cat
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Naam Versie Omschrijving
+++-======================================-========================================-==============================================================================
ii syslinux-themes-ubuntu 2 collection of boot loaders (theme metapackage)
ii syslinux-themes-ubuntu-precise 2 collection of boot loaders (ubuntu-precise theme)

Also, I made an error in my previous comment. The system had /usr/share/syslinux/themes/ubuntu-precise, but ubuntu-default-image is looking for files in /usr/share/syslinux/themes/ubuntu-oneiric. So I copied ubuntu-precise to ubuntu-oneiric, and that seemed to help

Revision history for this message
Martin Pitt (pitti) wrote :

Ah, so that way around. Are you actually building a precise image, or an oneiric one? In the latter case, you'd need to install syslinux-themes-oneiric.

Revision history for this message
Redmar (redmar) wrote :

I'm trying to build a precise image. Since I'm on precise, I just call

ubuntu-default-image --package name.deb

so it should default to the current system, which is precise.

Revision history for this message
Paolo Sammicheli (xdatap1) wrote :

Hello Martin,

I'm building the Italian Iso for my LoCo Team and I can confirm this bug.
In a fresh Precise installations I ran:

ubuntu-defaults-image --ppa ubuntu-defaults-it-team/ubuntu-defaults-it --locale it --components main,restricted,universe --release precise --arch i386

And at the end I got:

P: Begin installing syslinux...
cp: cannot stat `/usr/share/syslinux/themes/ubuntu-oneiric/isolinux-live/*': No such file or directory

With this error the image hasn't been created. I ran the same commands from Oneiric and everything worked fine.

Changed in ubuntu-defaults-builder (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Redmar (redmar) wrote :

Hi Paolo Sammicheli,

I believe this is due to an error in ubuntu-defaults-builder (maybe the path to /usr/share/syslinux/themes/ubuntu-oneiric/isolinux-live/ is hardcoded?). As a temporary fix I just copied the content of /usr/share/syslinux/themes/ubuntu-oneiric to /usr/share/syslinux/themes/ubuntu-precise. When I do that, it does generate an image, but I'm not sure what other problems this could cause.

Revision history for this message
Paolo Sammicheli (xdatap1) wrote :

Thank you Redmar! Yes I've read about this workaround, thank you anyway.

I hope this bug will be fixed in time for Precise, btw

Ciao!

Revision history for this message
Martin Pitt (pitti) wrote :

Ah, I see the problem. live-build has in ./functions/defaults.sh:

        case "${LB_MODE}" in
                [...]
                ubuntu)
                        LB_SYSLINUX_THEME="${LB_SYSLINUX_THEME:-ubuntu-oneiric}"
                        ;;

So we'll need to set this explicitly.

Changed in ubuntu-defaults-builder (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
importance: Undecided → High
status: Confirmed → In Progress
summary: - ubuntu-defaults-image doesnt generate .iso file
+ Does not install correct syslinux theme
Revision history for this message
Martin Pitt (pitti) wrote :

Fixed in bzr, works now.

Changed in ubuntu-defaults-builder (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-defaults-builder - 0.24

---------------
ubuntu-defaults-builder (0.24) precise; urgency=low

  * debian/copyright, template/debian/copyright: Update to copyright format
    1.0.
  * debian/control, template/debian/control: Bump Standards-Version to 3.9.3.
  * Drop support for webbrowser/offline-startpage.txt, as this is not actually
    configurable in Firefox, and we do not support other browsers at the
    moment. (LP: #950097)
  * bin/ubuntu-defaults-image: Explicitly set LB_SYSLINUX_THEME, to not rely
    on live-build's static default (which is "ubuntu-oneiric" right now).
    (LP: #910859)
  * bin/ubuntu-defaults-image, man/ubuntu-defaults-image.1: Add --keep-apt
    option to not clean up /var/lib/apt/lists/*_Packages from the live system.
    This will significantly enlarge the resulting ISO image, but will make
    package related operations work without an initial "apt-get update" run.
    (LP: #942180)
  * template/desktop/default-{session,applications}.txt,
    template/webbrowser/searchengine.txt: Add comments that these files may
    not be changed for Ubuntu localizations, only for derivatives and OEM
    projects.
  * test/run: Change package name to "defaults-test", as with
    "ubuntu-defaults-test" we are going to fail for some customizations.
  * bin/dh_ubuntu_defaults: Check if template file has a "NotUbuntu:" tag, and
    if so, disallow changing defaults if the package name starts with
    "ubuntu-". (LP: #881371)
 -- Martin Pitt <email address hidden> Mon, 12 Mar 2012 15:03:23 +0100

Changed in ubuntu-defaults-builder (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
V字龍(Vdragon) (vdragon) wrote :

Hi, please checkout Bug #1514704 for the similar issue.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.