Revision 2e8db6b9 create

b/create
67 67
    boot_dev=$(map_partition $filesystem_dev boot)
68 68
    swap_dev=$(map_partition $filesystem_dev swap)
69 69

  
70
    # Check partition existence
71
    if [ ! -e "$root_dev" ] ; then
72
        log_error "Root partition: $root_dev does not exist!"
73
        exit 1;
74
    fi
75
    if [ -n $boot_dev -a ! -e $boot_dev ] ; then
76
        log_error "Boot partition: $boot_dev does not exist!"
77
        exit 1;
78
    fi
79
    if [ -n $swap_dev -a ! -e $swap_dev ] ; then
80
        log_error "Swap partiion: $swap_dev does not exist!"
81
        exit 1;
82
    fi
83

  
70 84
    if [ "${IMAGE_TYPE}" = "tarball" -o "${IMAGE_TYPE}" = "dump" ] ; then
71 85
        mkfs_disk0
72 86
        root_uuid="$($VOL_ID $root_dev)"

Also available in: Unified diff