Revision e9568fe9 create

b/create
81 81
    boot_dev=$(map_partition $filesystem_dev boot)
82 82
    swap_dev=$(map_partition $filesystem_dev swap)
83 83

  
84
    # Check partition existence
85
    if [ ! -e "$root_dev" ] ; then
86
        log_error "Root partition: $root_dev does not exist!"
87
        exit 1;
88
    fi
89
    if [ -n $boot_dev -a ! -e $boot_dev ] ; then
90
        log_error "Boot partition: $boot_dev does not exist!"
91
        exit 1;
92
    fi
93
    if [ -n $swap_dev -a ! -e $swap_dev ] ; then
94
        log_error "Swap partiion: $swap_dev does not exist!"
95
        exit 1;
96
    fi
97

  
84 98
    if [ "${IMAGE_TYPE}" = "tarball" -o "${IMAGE_TYPE}" = "dump" ] ; then
85 99
        ${OS_FAMILY}_mkfs_disk0
86 100
        root_uuid="$($VOL_ID $root_dev)"

Also available in: Unified diff