~ubuntu-branches/debian/squeeze/live-installer/squeeze

« back to all changes in this revision

Viewing changes to support/extX

  • Committer: Bazaar Package Importer
  • Author(s): Chris Lamb, Otavio Salvador, Daniel Baumann, Updated translations
  • Date: 2009-08-12 22:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20090812220051-cujzxlchyjlxmd2o
Tags: 12
[ Otavio Salvador ]
* Use a single supporting code for ext[234].
* Fix shebang to use -e in dir supporting code. (Closes: #540731)
* Calls autogen.sh in case configure isn't found to make sure it
  properly builds the print-inodes binary.
* Add support for Lenny.
* Exit installer in case we're running it in live mode (requires
  rootskel 1.79).

[ Daniel Baumann ]
* Mounting extX images read-only in order to not 'corrupt' images in case
  of a power-loss when installing from a read-write capable installation
  media, such as usb sticks.
* Using dh7 tiny rules and getting rid of cdbs.
* Using own in-target like function to call xserver-xorg reconfiguration
  in order to have it run noninteractively.
* Updating year in copyright file.
* Initial import of live-installer-launcher.

[ Otavio Salvador ]
* Fix permission of live-installer-launcher's scripts.

[ Daniel Baumann ]
* Always adding 'plainroot' to the boot parameters when installing the
  system in live mode, this is the only supported boot method in
  live-initramfs for live systems installed to the harddisk.

[ Updated translations ]
* Czech (cs.po) by Miroslav Kure
* Esperanto (eo.po) by Felipe Castro
* Estonian (et.po) by Mattias Põldaru
* Basque (eu.po) by Piarres Beobide
* Hindi (hi.po)
* Italian (it.po) by Milo Casagrande

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
 
 
3
PLACES="$PLACES /cdrom/live/filesystem.ext2 /cdrom/live/filesystem.ext3 /cdrom/live/filesystem.ext4"
 
4
 
 
5
extX_prepare() {
 
6
        modprobe $1 || true
 
7
 
 
8
        mkdir -p /mnt
 
9
        umount /mnt > /dev/null 2>&1 || true
 
10
        if ! mount -t $1 -o loop,ro $place /mnt; then
 
11
                error "$place has failed to be mounted as ext4."
 
12
                exit 1
 
13
        fi
 
14
 
 
15
        cd /mnt
 
16
}
 
17
 
 
18
extX_teardown() {
 
19
        umount -d /mnt > /dev/null 2>&1 || true
 
20
}
 
21
 
 
22
extX_count() {
 
23
        echo `print-inodes /mnt`
 
24
}
 
25
 
 
26
for fs in ext2 ext3 ext4; do
 
27
        eval "
 
28
        ${fs}_prepare() {
 
29
                extX_prepare $fs
 
30
        }
 
31
 
 
32
        ${fs}_teardown() {
 
33
                extX_teardown
 
34
        }
 
35
 
 
36
        ${fs}_count() {
 
37
                extX_count
 
38
        }
 
39
"
 
40
done