16.68. cdist-type__install_partition_msdos(7)

16.68.1. NAME

cdist-type__install_partition_msdos - creates msdos partitions

16.68.2. DESCRIPTION

This cdist type allows you to create msdos paritions.

16.68.3. REQUIRED PARAMETERS

type
the partition type used in fdisk (such as 82 or 83) or "extended"

16.68.4. OPTIONAL PARAMETERS

device
the device we're working on. Defaults to the string prefix of --partition
minor
the partition number we're working on. Defaults to the numeric suffix of --partition
partition
defaults to object_id
bootable
mark partition as bootable, true or false, defaults to false
size
the size of the partition (such as 32M or 15G, whole numbers only), '+' for remaining space, or 'n%' for percentage of remaining (these should only be used after all specific partition sizes are specified). Defaults to +.

16.68.5. EXAMPLES

# 128MB, linux, bootable
__install_partition_msdos /dev/sda1 --type 83 --size 128M --bootable true
# 512MB, swap
__install_partition_msdos /dev/sda2 --type 82 --size 512M
# 100GB, extended
__install_partition_msdos /dev/sda3 --type extended --size 100G
# 10GB, linux
__install_partition_msdos /dev/sda5 --type 83 --size 10G
# 50% of the free space of the extended partition, linux
__install_partition_msdos /dev/sda6 --type 83 --size 50%
# rest of the extended partition, linux
__install_partition_msdos /dev/sda7 --type 83 --size +
# nvm device partition 2
__install_partition_msdos /dev/nvme0n1p2 --device /dev/nvme0n1 --minor 2 --type 83 --size 128M --bootable true

16.68.6. AUTHORS

Steven Armstrong <steven-cdist--@--armstrong.cc>

16.68.7. COPYING

Copyright (C) 2011-2017 Steven Armstrong. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.