From 8974a1c84810d773e015ec6ad7e92e975c579733 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 14 Feb 2020 15:29:30 +0100 Subject: partially podify fs::* --- perl-install/NEWS | 1 + perl-install/fs/format.pm | 95 +++++++++++++++++++++++++++++++--- perl-install/fs/get.pm | 22 +++++++- perl-install/fs/partitioning_wizard.pm | 28 ++++++++-- perl-install/fs/type.pm | 58 +++++++++++++++++++-- 5 files changed, 188 insertions(+), 16 deletions(-) diff --git a/perl-install/NEWS b/perl-install/NEWS index 1304240f2..b7ebeb824 100644 --- a/perl-install/NEWS +++ b/perl-install/NEWS @@ -1,6 +1,7 @@ - update list for modules needing firmware - recognize new kernel 5.2 - 5.4 drivers - diskdrake: + o enhanced internal doc o make reformating nilfs2 fses to work o support adding partitions to Live ISOs on USB sticks (mga#25224) - drakfont: diff --git a/perl-install/fs/format.pm b/perl-install/fs/format.pm index 1e1175b3e..b75ed54a6 100644 --- a/perl-install/fs/format.pm +++ b/perl-install/fs/format.pm @@ -10,6 +10,20 @@ use fs::type; use fs::loopback; use log; +=head1 SYNOPSYS + +B enables to format filesystems. + +=head1 Variables + +=over + +=item %cmds + +For each filesystem, list: [ package_name, command_to_use, options_to_use ] + +=cut + my %cmds = ( ext2 => [ 'e2fsprogs', 'mkfs.ext2', '-F' ], ext3 => [ 'e2fsprogs', 'mkfs.ext3', '-F' ], @@ -27,7 +41,14 @@ my %cmds = ( nilfs2 => [ 'nilfs-utils', 'mkfs.nilfs2', '-f' ], ); -my %LABELs = ( #- option, length, handled_by_mount + +=item %LABELs + +For each filesystem, list: [ option, max_length, handled_by_mount ] + +=cut + +my %LABELs = ( ext2 => [ '-L', 16, 1 ], ext3 => [ '-L', 16, 1 ], ext4 => [ '-L', 16, 1 ], @@ -44,9 +65,17 @@ my %LABELs = ( #- option, length, handled_by_mount nilfs2 => [ '-L', 16, 1 ], ); -my %edit_LABEL = ( # package, command, option -# If option is defined, run