~siretart/cryptsetup/debian

« back to all changes in this revision

Viewing changes to debian/cryptdisks.functions

  • Committer: Reinhard Tartler
  • Date: 2008-06-13 19:34:53 UTC
  • Revision ID: siretart@tauware.de-20080613193453-ywl35m67ce8pzvp3
import cryptsetup_1.0.6-1.dsc

Show diffs side-by-side

added added

removed removed

Lines of Context:
455
455
        key=$3
456
456
        opts=$4
457
457
 
 
458
        # Ignore noauto devices
 
459
        if [ "$IGNORE" = "yes" ]; then
 
460
                device_msg "$dst" "ignored"
 
461
                continue
 
462
        fi
 
463
 
458
464
        # Make sure that all fields are present
459
465
        if [ -z "$dst" ]; then
460
466
                continue
496
502
        fi
497
503
 
498
504
        # Do the real setup
499
 
        if [ "$IGNORE" = "yes" ]; then
500
 
                result="ignore"
 
505
        log_action_msg "$dst (starting)"
 
506
        result="ok"
 
507
        if [ "$USELUKS" = "yes" ]; then
 
508
                do_luks || result="fail"
501
509
        else
502
 
                log_action_msg "$dst (starting)"
503
 
                result="ok"
504
 
                if [ "$USELUKS" = "yes" ]; then
505
 
                        do_luks || result="fail"
506
 
                else
507
 
                        do_noluks || result="fail"
508
 
                fi
 
510
                do_noluks || result="fail"
509
511
        fi
510
512
 
511
513
        # Finish up
512
 
        if [ "$result" = "ignore" ]; then
513
 
                device_msg "$dst" "ignored"
514
 
        elif [ "$result" != "ok" ]; then
 
514
        if [ "$result" != "ok" ]; then
515
515
                rm_lo_setup
516
516
                device_msg "$dst" "failed"
517
517
        else