live-config script is broken in ubuntu

Bug #913874 reported by Wagner Volanin
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
live-config (Ubuntu)
New
Undecided
Unassigned

Bug Description

An image created with live-build uses the scripts provided by live-config to configure the image during boot.
But the live-config main script (config.sh) is broken in ubuntu.

Ways to reproduce:
- Boot the newly build image with the noautologin or noxautologin kernel parameters.

What should happen:
- The live-config main script (config.sh) should execute the configuration scripts.

What happens:
- There is an error message about '???-sysvinit' not found and config.sh aborts.

Why it happens:
- The live config package in ubuntu removes the '007-gdm3' and '016-sysvinit' files, necessary for config.sh to run.

Proposed solution:
- It's a small problem that lies in the config.sh script. The noautologin and noxautologin options asks config.sh to NOT execute some scripts (007-gdm3 and 016-sysvinit in this case). But if these scripts are not available, config.sh aborts.

The simple attached patch fixes this config.sh behaviour and makes its script inclusion/exclusion routines much more robust. Please consider it for inclusion. Thank you.

Revision history for this message
Wagner Volanin (volanin) wrote :

Using live-config-3.0~a22 from Ubuntu Oneiric.
Bug is present in all architectures.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Fix config.sh inclusion/exclusion of config files." of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Leo Iannacone (l3on) wrote :

Notified to developer... we will wait for an ack.

Changed in live-config (Ubuntu):
assignee: nobody → Leo Iannacone (l3on)
Revision history for this message
Wagner Volanin (volanin) wrote :

This bug is still present in the current version of Ubuntu Precise. It always happens when you create an usb-hdd image using live-build, and sets the initramfs config option to live-boot. When booting the image, error messages about the missing scripts appear on the screen. I am attaching a cleaner patch that fix this.

What is expected to happen:
The image should ignore the missing scripts and boot normally.

What happened instead:
The missing scripts are hardcoded in the config script, and as such, the boot fails.

Using Ubuntu Precise 12.04 amd64.
Live-build 3.0~a24-1ubuntu32.

Leo Iannacone (l3on)
Changed in live-config (Ubuntu):
assignee: Leo Iannacone (l3on) → nobody
Revision history for this message
simon (smirnoffice3020) wrote :

live-config package is broken in latest kubuntu 14.04!!!

Revision history for this message
simon (smirnoffice3020) wrote :

live-config package is broken in latest kubuntu 14.04!!!
please fix it quickly i really need that package

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.