~ubuntu-branches/ubuntu/lucid/lupin/lucid-proposed

« back to all changes in this revision

Viewing changes to casper/scripts/casper-premount/20iso_scan

  • Committer: Bazaar Package Importer
  • Author(s): Evan Dandrea, Agostino Russo, Evan Dandrea
  • Date: 2008-05-28 13:12:47 UTC
  • Revision ID: james.westby@ubuntu.com-20080528131247-3415f2gnxl3qochb
Tags: 0.18
[ Agostino Russo ]
* Fixed typos (thanks Steve Langasek and JP Vossen)
* Do not set LIVEMEDIA_OFFSET if the target is not an (ISO) file. This
  is a useful check per se', but it is also required to allow using
  iso_scan to look for iso content such as squashfs which in turn
  would help with LP: #207137

[ Evan Dandrea ]
* Note that you need to reboot twice when using chkdsk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
if [ "$iso_path" ]; then
29
29
    if find_path "${iso_path}" /isodevice rw; then
30
30
        echo "LIVEMEDIA=${FOUNDPATH}" >> /conf/param.conf
31
 
        echo "LIVEMEDIA_OFFSET=0" >> /conf/param.conf
 
31
        if [ -f "${iso_path}" ]; then
 
32
            echo "LIVEMEDIA_OFFSET=0" >> /conf/param.conf
 
33
        fi
32
34
    else
33
35
        panic "
34
36
Could not find the ISO $iso_path
35
 
This could also happen if the file-system is not clean because of an operating
36
 
system crash, or an interrupted boot process, or beacause of an inproper 
37
 
shutdown, or if a removable device was unplugged without unmounting/ejecting 
38
 
it first. To fix this, simply reboot into Windows, let it fully start, log in,
39
 
ideally run a chkdsk /r, then gracefully shut down. Once you restart, 
40
 
you should be able to resume the installation.
 
37
This could also happen if the file system is not clean because of an operating
 
38
system crash, an interrupted boot process, an improper shutdown, or unplugging
 
39
of a removable device without first unmounting or ejecting it.  To fix this,
 
40
simply reboot into Windows, let it fully start, log in, run 'chkdsk /r', then
 
41
gracefully shut down and reboot back into Windows. After this you should be
 
42
able to reboot again and resume the installation.
41
43
"
42
44
    fi
43
45
fi