forked from illiliti/tinyramfs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.example.conf
123 lines (93 loc) · 3.54 KB
/
config.example.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# vim: set ft=sh:
# shellcheck shell=sh
#
# https://shellcheck.net/wiki/SC2034
# shellcheck disable=2034
# https://shellcheck.net/wiki/SC2148
# shellcheck disable=2148
###################################
## modules
# define modules to be copied, overrides other configs in hooks
# off: prevent modules to be copied
# hostonly (default): copy only modules used in host system
# config: copy only modules defined (modules_list) in config files
# all: copy all modules (likely to be HUGE!!!)
modules_copy=config
# define modules to be copied when modules_copy=config, will be passed to "find" command
modules_list="fs lib arch crypto \
drivers/input/keyboard \
drivers/md drivers/ata drivers/scsi drivers/block \
drivers/virtio drivers/usb/host drivers/usb/storage drivers/mmc"
###################################
## compression
# define compress methods for initramfs
# gzip -9: use gzip
# xz --check=crc32 -c -9 -T0: use xz
# (xz encoder must be told to generate crc32 (xz --check=crc32) as embedded XZ does not support sha256/crc64)
compress="gzip -9"
###################################
## mounting
# define root partition, can be override with kernel arg "root"
# /dev/xdY or /dev/nvme0nXpY
# LABEL=label
# PARTUUID=partuuid
# UUID=uuid
root=/dev/sda1
# define root partition type
# undefined: auto detect root type when mounting (not recommended), modules will be copied from /porc/mounts
# ext4,btrfs,overlay,...: set root type, overlay if use live
#root_type=
# define root partition mount flags, can be override automatically by using "live" hook
#root_opts=
# define root partition ro/rw mounting, default to use ro to make use of init system, can be override with kernel arg "ro" and "rw"
#rorw=ro
###################################
## hooks
# define hooks to run, order is important, splitted by ","
hooks=mdev,plymouth
###################################
## hook: live system
# activated if "live" hook is included in hooks
# define live medium partition locator type
live_disk_type=label
# define live medium partition located in /dev/disk/by-$live_disk_type
live_disk=EWE_ISO
# define live medium partition fs type, iso9660 by default
#live_disk_fs=iso9660
# define squashfs mount options, "defaults,ro" by default
#live_sfs_opts="defaults,ro"
# define if squashfs should be copied into ram, can be override with kernel arg "live_ram"
live_ram=1
# define ramdisk mounting options
live_ram_opts="size=50%,mode=0755"
###################################
## hook: plymouth
# activated if "plymouth" hook is included in hooks and plymouth is installed
# define to prevent copying modules during plymouth hook
#plymouth_nocopymodule=
# define to quit plymouth when late hook executed (instead of using init system)
#plymouth_earlyquit=
###################################
## hook: loadkmap / loadkeys
# activated if "loadkmap" or "loadkeys" hook is included in hooks
# define keymap file to be used
keymap_path=
###################################
## hook: luks
# activated if "luks" hook is included in hooks
# define luks root partition to be used, unset to use $root and override $root when volume is decrypted
# /dev/xdY or /dev/nvme0nXpY
# LABEL=label
# PARTUUID=partuuid
# UUID=uuid
#luks_root=
# define to allow the use of discard (TRIM) requests for your luks device
# WARNING*: This option may have a negative security impact. For more info read *cryptsetup*(8).
#luks_discard=
# define path to LUKS header
#luks_header=
# define path to LUKS keyfile
#luks_key=
# name to map LUKS device to
# default: crypt-${device##*/}
#luks_name=