talm

Форк
0
/
constants.go 
42 строки · 1.2 Кб
1
// This Source Code Form is subject to the terms of the Mozilla Public
2
// License, v. 2.0. If a copy of the MPL was not distributed with this
3
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
4

5
package partition
6

7
// Type in partition table.
8
type Type = string
9

10
// GPT partition types.
11
//
12
// TODO: should be moved into the blockdevice library.
13
const (
14
	EFISystemPartition  Type = "C12A7328-F81F-11D2-BA4B-00A0C93EC93B"
15
	BIOSBootPartition   Type = "21686148-6449-6E6F-744E-656564454649"
16
	LinuxFilesystemData Type = "0FC63DAF-8483-4772-8E79-3D69D8477DE4"
17
)
18

19
// FileSystemType is used to format partitions.
20
type FileSystemType = string
21

22
// Filesystem types.
23
const (
24
	FilesystemTypeNone FileSystemType = "none"
25
	FilesystemTypeXFS  FileSystemType = "xfs"
26
	FilesystemTypeVFAT FileSystemType = "vfat"
27
)
28

29
// Partition default sizes.
30
const (
31
	MiB = 1024 * 1024
32

33
	EFISize      = 100 * MiB
34
	BIOSGrubSize = 1 * MiB
35
	BootSize     = 1000 * MiB
36
	// EFIUKISize is the size of the EFI partition when UKI is enabled.
37
	// With UKI all assets are stored in the EFI partition.
38
	// This is the size of the old EFISize + BIOSGrubSize + BootSize.
39
	EFIUKISize = EFISize + BIOSGrubSize + BootSize
40
	MetaSize   = 1 * MiB
41
	StateSize  = 100 * MiB
42
)
43

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.