OSDN Git Service

Merge pull request #1435 from gportay/partition-attributes
[alterlinux/alterlinux-calamares.git] / src / modules / partition / partition.conf
1 # This setting specifies the mount point of the EFI system partition. Some
2 # distributions (Fedora, Debian, Manjaro, etc.) use /boot/efi, others (KaOS,
3 # etc.) use just /boot.
4 efiSystemPartition:     "/boot/efi"
5
6 # This optional setting specifies the size of the EFI system partition.
7 # If nothing is specified, the default size of 300MiB will be used.
8 # efiSystemPartitionSize:     300M
9
10 # This optional setting specifies the name of the EFI system partition.
11 # If nothing is specified, the partition name is left unset.
12 # efiSystemPartitionName:     EFI
13
14 # In autogenerated partitioning, allow the user to select a swap size?
15 # If there is exactly one choice, no UI is presented, and the user
16 # cannot make a choice -- this setting is used. If there is more than
17 # one choice, a UI is presented.
18 #
19 # Legacy settings *neverCreateSwap* and *ensureSuspendToDisk* correspond
20 # to values of *userSwapChoices* as follows:
21 #    - *neverCreateSwap* is true, means [none]
22 #    - *neverCreateSwap* is false, *ensureSuspendToDisk* is false, [small]
23 #    - *neverCreateSwap* is false, *ensureSuspendToDisk* is true, [suspend]
24 #
25 # Autogenerated swap sizes are as follows:
26 #    - *suspend*: Swap is always at least total memory size,
27 #      and up to 4GiB RAM follows the rule-of-thumb 2 * memory;
28 #      from 4GiB to 8 GiB it stays steady at 8GiB, and over 8 GiB memory
29 #      swap is the size of main memory.
30 #    - *small*: Follows the rules above, but Swap is at
31 #      most 8GiB, and no more than 10% of available disk.
32 # In both cases, a fudge factor (usually 10% extra) is applied so that there
33 # is some space for administrative overhead (e.g. 8 GiB swap will allocate
34 # 8.8GiB on disk in the end).
35 userSwapChoices:
36     - none      # Create no swap, use no swap
37     - reuse     # Re-use existing swap, but don't create any (unsupported right now)
38     - small     # Up to 4GB
39     - suspend   # At least main memory size
40     - file      # To swap file instead of partition (unsupported right now)
41
42 # LEGACY SETTINGS (these will generate a warning)
43 # ensureSuspendToDisk:    true
44 # neverCreateSwap:        false
45
46 # Correctly draw nested (e.g. logical) partitions as such.
47 drawNestedPartitions:   false
48
49 # Show/hide partition labels on manual partitioning page.
50 alwaysShowPartitionLabels: true
51
52 # Default filesystem type, used when a "new" partition is made.
53 #
54 # When replacing a partition, the existing filesystem inside the
55 # partition is retained. In other cases, e.g. Erase and Alongside,
56 # as well as when using manual partitioning and creating a new
57 # partition, this filesystem type is pre-selected. Note that
58 # editing a partition in manual-creation mode will not automatically
59 # change the filesystem type to this default value -- it is not
60 # creating a new partition.
61 #
62 # Suggested values: ext2, ext3, ext4, reiser, xfs, jfs, btrfs
63 # If nothing is specified, Calamares defaults to "ext4".
64 #
65 # Names are case-sensitive and defined by KPMCore.
66 defaultFileSystemType:  "ext4"
67
68 # Show/hide LUKS related functionality in automated partitioning modes.
69 # Disable this if you choose not to deploy early unlocking support in GRUB2
70 # and/or your distribution's initramfs solution.
71 #
72 # BIG FAT WARNING:
73 #
74 # This option is unsupported, as it cuts out a crucial security feature.
75 # Disabling LUKS and shipping Calamares without a correctly configured GRUB2
76 # and initramfs is considered suboptimal use of the Calamares software. The
77 # Calamares team will not provide user support for any potential issue that
78 # may arise as a consequence of setting this option to false.
79 # It is strongly recommended that system integrators put in the work to support
80 # LUKS unlocking support in GRUB2 and initramfs/dracut/mkinitcpio/etc.
81 # Support is offered to system integrators that wish to do so, through the
82 # Calamares bug tracker, as well as in #calamares on Freenode.
83 # For more information on setting up GRUB2 for Calamares with LUKS, see
84 # https://github.com/calamares/calamares/wiki/Deploy-LUKS
85 #
86 # If nothing is specified, LUKS is enabled in automated modes.
87 #enableLuksAutomatedPartitioning:    true
88
89 # Allow manual partitioning.
90 #
91 # When set to false, this option hides the "Manual partitioning" button,
92 # limiting the user's choice to "Erase", "Replace" or "Alongside".
93 # This can be useful when using a custom partition layout we don't want
94 # the user to modify.
95 #
96 # If nothing is specified, manual partitioning is enabled.
97 #allowManualPartitioning:   true
98
99 # To apply a custom partition layout, it has to be defined this way :
100 #
101 # partitionLayout:
102 #     - name: "rootfs"
103 #       type: "4f68bce3-e8cd-4db1-96e7-fbcaf984b709"
104 #       filesystem: "ext4"
105 #       mountPoint: "/"
106 #       size: 20%
107 #       minSize: 500M
108 #       maxSize: 10G
109 #       attributes: 0xffff000000000003
110 #     - name: "home"
111 #       type = "933ac7e1-2eb4-4f13-b844-0e14e2aef915"
112 #       filesystem: "ext4"
113 #       mountPoint: "/home"
114 #       size: 3G
115 #       minSize: 1.5G
116 #       features:
117 #         64bit: false
118 #         casefold: true
119 #     - name: "data"
120 #       filesystem: "fat32"
121 #       mountPoint: "/data"
122 #       features:
123 #         sector-size: 4096
124 #         sectors-per-cluster: 128
125 #       size: 100%
126 #
127 # There can be any number of partitions, each entry having the following attributes:
128 #   - name: filesystem label
129 #           and
130 #           partition name (gpt only; since KPMCore 4.2.0)
131 #   - type: partition type (optional parameter; gpt only; requires KPMCore >= 4.2.0)
132 #   - attributes: partition attributes (optional parameter; gpt only; requires KPMCore >= 4.2.0)
133 #   - filesystem: filesystem type
134 #   - mountPoint: partition mount point
135 #   - size: partition size in bytes (append 'K', 'M' or 'G' for KiB, MiB or GiB)
136 #           or
137 #           % of the available drive space if a '%' is appended to the value
138 #   - minSize: minimum partition size (optional parameter)
139 #   - maxSize: maximum partition size (optional parameter)
140 #   - features: filesystem features (optional parameter; requires KPMCore >= 4.2.0)
141 #       name: boolean or integer or string
142
143 # Checking for available storage
144 #
145 # This overlaps with the setting of the same name in the welcome module's
146 # requirements section. If nothing is set by the welcome module, this
147 # value is used instead. It is still a problem if there is no required
148 # size set at all, and the replace and resize options will not be offered
149 # if no required size is set.
150 #
151 # The value is in Gibibytes (GiB).
152 #
153 # BIG FAT WARNING: except for OEM-phase-0 use, you should be using
154 #                  the welcome module, **and** configure this value in
155 #                  `welcome.conf`, not here.
156 # requiredStorage: 3.5