~gilir/+junk/ubiquity-lxdm-autologin

« back to all changes in this revision

Viewing changes to d-i/source/partman-basicfilesystems/finish.d/check_basicfilesystems

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson, Colin Watson, Jonathan Riddell
  • Date: 2007-02-22 09:59:44 UTC
  • Revision ID: james.westby@ubuntu.com-20070222095944-7hzx8c1kybvi50o9
Tags: 1.3.22
[ Colin Watson ]
* New partitioner:
  - Fix edit dialog not to try to resize partitions even if the resize
    spinbutton was left untouched (LP: #85227).
  - Add contextual buttons to GTK frontend (part of LP: #83166).
  - Add an undo facility.
  - partman-* updates add validation support (LP: #82768); also add
    XFS-on-/boot validation.
  - Break out of setting the mountpoint if it's invalid (LP: #84543).
* Fix crash if multiple newworld boot partitions are present (LP: #84429).
* GTK frontend:
  - Fix backup from user information page if migration-assistant is not
    active (LP: #85642).
  - Fix up step numbers if migration-assistant is disabled (LP: #85711).
  - Disable smooth zooming, as some video drivers are very slow at drawing
    this and it's hard to handle this dynamically (LP: #67572).
* Fill in a default username based on the user's full name (LP: #84550).
* Retranslate Forward button when going back from summary page
  (LP: #86047).
* configure.ac: Bump required GTK version to 2.10.0 (for GtkLinkButton).
* Automatic update of included source packages: apt-setup 1:0.16ubuntu4,
  base-installer 1.70ubuntu4, choose-mirror 2.10ubuntu2, clock-setup
  0.12ubuntu2, debian-installer-utils 1.42ubuntu2, migration-assistant
  0.4, partman-auto 62ubuntu5, partman-base 100ubuntu4,
  partman-basicfilesystems 51ubuntu2, partman-basicmethods 33ubuntu2,
  partman-efi 11ubuntu2, partman-ext3 45ubuntu2, partman-jfs 20ubuntu2,
  partman-newworld 16ubuntu1, partman-reiserfs 34ubuntu1, partman-target
  46ubuntu2, partman-xfs 32ubuntu1.

[ Jonathan Riddell ]
* Add new partitioner for KDE frontend

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
. /lib/partman/definitions.sh
4
 
 
5
 
for dev in $DEVICES/*; do
6
 
    [ -d "$dev" ] || continue
7
 
    cd $dev
8
 
    partitions=
9
 
    open_dialog PARTITIONS
10
 
    while { read_line num id size type fs path name; [ "$id" ]; }; do
11
 
        [ "$fs" != free ] || continue
12
 
        partitions="$partitions $id,$num"
13
 
    done
14
 
    close_dialog
15
 
    
16
 
    for part in $partitions; do
17
 
        id=${part%,*}
18
 
        num=${part#*,}
19
 
        [ -f $id/method -a ! -f $id/format \
20
 
            -a -f $id/acting_filesystem ] || continue
21
 
        filesystem=$(cat $id/acting_filesystem)
22
 
        case $filesystem in
23
 
            ext2|fat16|fat32)
24
 
                log "Check the file system in $dev/$id"
25
 
                template=partman-basicfilesystems/progress_checking
26
 
                RET=''
27
 
                db_metaget  partman/filesystem_short/"$filesystem" description || RET=''
28
 
                [ "$RET" ] || RET="$filesystem"
29
 
                db_subst $template TYPE "$RET"
30
 
                db_subst $template PARTITION "$num"
31
 
                db_subst $template DEVICE $(humandev $(cat device))
32
 
                name_progress_bar $template
33
 
                open_dialog CHECK_FILE_SYSTEM $id
34
 
                read_line status
35
 
                close_dialog
36
 
                if [ "$status" != good ]; then
37
 
                    db_subst partman-basicfilesystems/check_failed TYPE "$filesystem"
38
 
                    db_subst partman-basicfilesystems/check_failed PARTITION "$num"
39
 
                    db_subst partman-basicfilesystems/check_failed DEVICE $(humandev $(cat device))
40
 
                    db_set partman-basicfilesystems/check_failed 'true'
41
 
                    db_input critical partman-basicfilesystems/check_failed || true
42
 
                    db_go || true
43
 
                    db_get partman-basicfilesystems/check_failed
44
 
                    if [ "$RET" = 'true' ]; then
45
 
                        exit 1
46
 
                    fi
47
 
                fi
48
 
                ;;
49
 
        esac
50
 
    done
51
 
done