DOKK / manpages / debian 10 / rex / Rex::Commands::Mkfs.3pm.en
Rex::Commands::Mkfs(3pm) User Contributed Perl Documentation Rex::Commands::Mkfs(3pm)

Rex::Commands::Mkfs - Create filesystems

With this module you can create filesystems on existing partitions and logical volumes.

 use Rex::Commands::Mkfs;

Create a filesystem on device $devname.

 mkfs "sda1",
   fstype => "ext2",
   label  => "mydisk";
 mkfs "sda2",
   fstype => "swap";
2018-02-01 perl v5.26.1