summaryrefslogtreecommitdiffstats
path: root/perl-install/partition_table/lvm.pm
blob: 91a9dfbc587810ffef373971f37528a78de87519 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package partition_table::lvm; # $Id: $

# LVM on full disk

use diagnostics;
use strict;

our @ISA = qw(partition_table::raw);

use common;
use partition_table::raw;
use fs::type;
use lvm;

sub initialize {
    my ($hd) = @_;

    my $part = { size => $hd->{totalsectors}, device => $hd->{device} };
    add2hash($part, fs::type::type_name2subpart('Linux Logical Volume Manager'));

    $hd->{readonly} = $hd->{getting_rid_of_readonly_allowed} = 1;
    $hd->{primary}{normal} = [ $part ];   

    bless $hd, 'partition_table::lvm';
}