diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2014-05-20 19:47:18 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2014-05-20 19:47:18 +0200 |
commit | 5b79623823350d79e58b0375ccdef294e24d4848 (patch) | |
tree | 78b2dd30924ffa8063bda2b54ae2c922e33a98c7 /perl-install/fs/dmcrypt.pm | |
parent | 335e8be11b757c6146819271135668b7f58afb81 (diff) | |
download | drakx-5b79623823350d79e58b0375ccdef294e24d4848.tar drakx-5b79623823350d79e58b0375ccdef294e24d4848.tar.gz drakx-5b79623823350d79e58b0375ccdef294e24d4848.tar.bz2 drakx-5b79623823350d79e58b0375ccdef294e24d4848.tar.xz drakx-5b79623823350d79e58b0375ccdef294e24d4848.zip |
partially podify some modules
Diffstat (limited to 'perl-install/fs/dmcrypt.pm')
-rw-r--r-- | perl-install/fs/dmcrypt.pm | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/perl-install/fs/dmcrypt.pm b/perl-install/fs/dmcrypt.pm index 0cb73a848..f26bad391 100644 --- a/perl-install/fs/dmcrypt.pm +++ b/perl-install/fs/dmcrypt.pm @@ -11,8 +11,22 @@ use fs::type; use fs::get; use run_program; +=head1 SYNOPSYS + +Manage encrypted file systems using cryptsetup + +=over + +=cut + sub _crypttab() { "$::prefix/etc/crypttab" } +=item init() + +Load kernel modules and init device mapper. + +=cut + sub init() { whereis_binary('cryptsetup') or die "cryptsetup not installed"; @@ -44,6 +58,12 @@ sub read_crypttab_ { } } +=item read_crypttab($all_hds) + +Read /etc/crypttab + +=cut + sub read_crypttab { my ($all_hds) = @_; read_crypttab_($all_hds, _crypttab()); @@ -67,6 +87,12 @@ sub save_crypttab_ { } $crypttab; } +=item save_crypttab($all_hds) + +Save /etc/crypttab + +=cut + sub save_crypttab { my ($all_hds) = @_; save_crypttab_($all_hds, _crypttab()); @@ -176,4 +202,8 @@ sub active_dm() { } run_program::get_stdout('dmsetup', 'table'); } +=back + +=cut + 1; |