Need scripting for automatic ubiquity: pre commands

Bug #144845 reported by Michael Brown
4
Affects Status Importance Assigned to Milestone
casper (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: casper

Automatic ubiquity needs some scripting hooks for running scripts before it starts the install.

Background:
    There are two circumstances when these scripts will run:
    A) during a factory install
    B) during a customer re-install

It is expected that for (A), there will be absolutely no user-interaction, everything will be completely automatic.

For (B), we need to ask the user two questions:
  1) A confirmation question so that the user acknowledges that they will lose all data on the system
  2) A question about if they would like to save the contents of /home (optional, informed by cjwatson that this might not be feasible).

The expected method of distinguishing between (A) and (B) is that we will lay down a flag file during (A), so that it will be detected the next run-through and operate in mode (B).

The current install of Feisty does the question from the console, but this is not a requirement for Gutsy. We could easily write a small GTK app to throw up a confirmation screen from X, if the scripts are run after X is started (This is a better user experience.)

Requirements:
    The script needs to be able to access files on the hard drive.
    For mode (B), the script will need to be able to repartition the hard drive (deleting partitions sda3, and sda4.) This can be accomplished by parted, so no special arrangements need to be made to run this before the hdd is mounted (as far as I understand things currently).

Tags: cqa-verified

Related branches

Revision history for this message
Jose De la Rosa (jose-de-la-rosa) wrote :

Must have for our factory install

Changed in dell:
importance: Undecided → Critical
status: New → Confirmed
Revision history for this message
Colin Watson (cjwatson) wrote :

casper (1.106) gutsy; urgency=low

  * Support preseed/early_command; code supplied here will be run using 'sh
    -c' from casper-bottom, and can chroot to /root if needed (LP: #144845).
  * Make sure we don't accidentally continue to boot if casper-md5check
    fails (LP: #82856).
  * Clear out debconf database backup files after preseeding to save memory
    (LP: #43706).
  * Mount everything as noatime to avoid unnecessary metadata writes.

 -- Colin Watson <email address hidden> Fri, 28 Sep 2007 15:27:52 +0100

Changed in casper:
status: New → Fix Released
Changed in dell:
status: Confirmed → Fix Released
Changed in dell:
status: Fix Released → Confirmed
Changed in dell:
status: Confirmed → Fix Released
Chris Gregan (cgregan)
tags: added: cqa-verified
Changed in somerville:
importance: Undecided → Critical
status: New → Fix Released
no longer affects: dell
Revision history for this message
Timothy R. Chavez (timrchavez) wrote :

The bug task for the somerville project has been removed by an automated script. This bug has been cloned on that project and is available here: https://bugs.launchpad.net/bugs/1305846

no longer affects: somerville
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.