forked from u-root/u-root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
templates.go
221 lines (219 loc) · 9.29 KB
/
templates.go
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
// Copyright 2015-2020 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
// TODO: make templates able to include other templates.
// e.g. "all" below should just say "core" and "boot". Use it to replace
// the old 'systemboot' template.
// Or just call it a day, now that we have the new directory structure, and dump the templates
// completely; that may be our best bet.
var templates = map[string][]string{
"all": {
"github.com/u-root/u-root/cmds/core/*",
"github.com/u-root/u-root/cmds/boot/*boot*",
},
"boot": {
"github.com/u-root/u-root/cmds/boot/*boot*",
},
// Absolutely everything, including experimental commands.
"world": {
"github.com/u-root/u-root/cmds/*/*",
},
// Core should be things you don't want to live without.
"core": {
"github.com/u-root/u-root/cmds/core/*",
},
// Minimal should be things you can't live without.
"minimal": {
"github.com/u-root/u-root/cmds/core/blkid",
"github.com/u-root/u-root/cmds/core/cat",
"github.com/u-root/u-root/cmds/core/chmod",
"github.com/u-root/u-root/cmds/core/cmp",
"github.com/u-root/u-root/cmds/core/cp",
"github.com/u-root/u-root/cmds/core/date",
"github.com/u-root/u-root/cmds/core/dd",
"github.com/u-root/u-root/cmds/core/df",
"github.com/u-root/u-root/cmds/core/dhclient",
"github.com/u-root/u-root/cmds/core/dmesg",
"github.com/u-root/u-root/cmds/core/echo",
"github.com/u-root/u-root/cmds/core/elvish",
"github.com/u-root/u-root/cmds/core/find",
"github.com/u-root/u-root/cmds/core/free",
"github.com/u-root/u-root/cmds/core/gpgv",
"github.com/u-root/u-root/cmds/core/grep",
"github.com/u-root/u-root/cmds/core/gzip",
"github.com/u-root/u-root/cmds/core/hostname",
"github.com/u-root/u-root/cmds/core/id",
"github.com/u-root/u-root/cmds/core/init",
"github.com/u-root/u-root/cmds/core/insmod",
"github.com/u-root/u-root/cmds/core/io",
"github.com/u-root/u-root/cmds/core/ip",
"github.com/u-root/u-root/cmds/core/kexec",
"github.com/u-root/u-root/cmds/core/kill",
"github.com/u-root/u-root/cmds/core/ln",
"github.com/u-root/u-root/cmds/core/losetup",
"github.com/u-root/u-root/cmds/core/ls",
"github.com/u-root/u-root/cmds/core/lsmod",
"github.com/u-root/u-root/cmds/core/mkdir",
"github.com/u-root/u-root/cmds/core/mknod",
"github.com/u-root/u-root/cmds/core/mount",
"github.com/u-root/u-root/cmds/core/msr",
"github.com/u-root/u-root/cmds/core/mv",
"github.com/u-root/u-root/cmds/core/pci",
"github.com/u-root/u-root/cmds/core/ping",
"github.com/u-root/u-root/cmds/core/printenv",
"github.com/u-root/u-root/cmds/core/ps",
"github.com/u-root/u-root/cmds/core/pwd",
"github.com/u-root/u-root/cmds/core/readlink",
"github.com/u-root/u-root/cmds/core/rm",
"github.com/u-root/u-root/cmds/core/rmmod",
"github.com/u-root/u-root/cmds/core/seq",
"github.com/u-root/u-root/cmds/core/shutdown",
"github.com/u-root/u-root/cmds/core/sleep",
"github.com/u-root/u-root/cmds/core/sync",
"github.com/u-root/u-root/cmds/core/tail",
"github.com/u-root/u-root/cmds/core/tee",
"github.com/u-root/u-root/cmds/core/truncate",
"github.com/u-root/u-root/cmds/core/umount",
"github.com/u-root/u-root/cmds/core/uname",
"github.com/u-root/u-root/cmds/core/unshare",
"github.com/u-root/u-root/cmds/core/wc",
"github.com/u-root/u-root/cmds/core/wget",
"github.com/u-root/u-root/cmds/core/which",
},
// coreboot-app minimal environment
"coreboot-app": {
"github.com/u-root/u-root/cmds/core/cat",
"github.com/u-root/u-root/cmds/exp/cbmem",
"github.com/u-root/u-root/cmds/core/chroot",
"github.com/u-root/u-root/cmds/core/cp",
"github.com/u-root/u-root/cmds/core/dd",
"github.com/u-root/u-root/cmds/core/dhclient",
"github.com/u-root/u-root/cmds/core/dmesg",
"github.com/u-root/u-root/cmds/core/elvish",
"github.com/u-root/u-root/cmds/core/find",
"github.com/u-root/u-root/cmds/core/grep",
"github.com/u-root/u-root/cmds/core/id",
"github.com/u-root/u-root/cmds/core/init",
"github.com/u-root/u-root/cmds/core/insmod",
"github.com/u-root/u-root/cmds/core/ip",
"github.com/u-root/u-root/cmds/core/kill",
"github.com/u-root/u-root/cmds/core/ls",
"github.com/u-root/u-root/cmds/core/mount",
"github.com/u-root/u-root/cmds/core/pci",
"github.com/u-root/u-root/cmds/core/ping",
"github.com/u-root/u-root/cmds/core/ps",
"github.com/u-root/u-root/cmds/core/pwd",
"github.com/u-root/u-root/cmds/core/rm",
"github.com/u-root/u-root/cmds/core/rmmod",
"github.com/u-root/u-root/cmds/core/shutdown",
"github.com/u-root/u-root/cmds/core/sshd",
"github.com/u-root/u-root/cmds/core/switch_root",
"github.com/u-root/u-root/cmds/core/tail",
"github.com/u-root/u-root/cmds/core/tee",
"github.com/u-root/u-root/cmds/core/uname",
"github.com/u-root/u-root/cmds/core/wget",
},
// If a name is commented out here, we expect to make it work.
// if you don't see a name here, and it is in core, we expect it
// not to work.
"plan9": {
"github.com/u-root/u-root/cmds/core/backoff",
"github.com/u-root/u-root/cmds/core/basename",
"github.com/u-root/u-root/cmds/core/bind",
"github.com/u-root/u-root/cmds/core/blkid",
"github.com/u-root/u-root/cmds/core/cat",
"github.com/u-root/u-root/cmds/core/chmod",
"github.com/u-root/u-root/cmds/core/chroot",
"github.com/u-root/u-root/cmds/core/cmp",
"github.com/u-root/u-root/cmds/core/comm",
"github.com/u-root/u-root/cmds/core/cp",
"github.com/u-root/u-root/cmds/core/cpio",
"github.com/u-root/u-root/cmds/core/date",
"github.com/u-root/u-root/cmds/core/dd",
"github.com/u-root/u-root/cmds/core/df",
"github.com/u-root/u-root/cmds/core/dhclient",
"github.com/u-root/u-root/cmds/core/dirname",
"github.com/u-root/u-root/cmds/core/dmesg",
"github.com/u-root/u-root/cmds/core/echo",
"github.com/u-root/u-root/cmds/core/false",
"github.com/u-root/u-root/cmds/core/find",
"github.com/u-root/u-root/cmds/core/free",
"github.com/u-root/u-root/cmds/core/fusermount",
"github.com/u-root/u-root/cmds/core/gpgv",
"github.com/u-root/u-root/cmds/core/gpt",
"github.com/u-root/u-root/cmds/core/grep",
"github.com/u-root/u-root/cmds/core/gzip",
"github.com/u-root/u-root/cmds/core/hexdump",
"github.com/u-root/u-root/cmds/core/hostname",
"github.com/u-root/u-root/cmds/core/hwclock",
"github.com/u-root/u-root/cmds/core/id",
"github.com/u-root/u-root/cmds/core/init",
"github.com/u-root/u-root/cmds/core/insmod",
"github.com/u-root/u-root/cmds/core/io",
"github.com/u-root/u-root/cmds/core/ip",
"github.com/u-root/u-root/cmds/core/kexec",
"github.com/u-root/u-root/cmds/core/kill",
"github.com/u-root/u-root/cmds/core/lddfiles",
"github.com/u-root/u-root/cmds/core/ln",
"github.com/u-root/u-root/cmds/core/lockmsrs",
"github.com/u-root/u-root/cmds/core/losetup",
"github.com/u-root/u-root/cmds/core/ls",
"github.com/u-root/u-root/cmds/core/lsdrivers",
"github.com/u-root/u-root/cmds/core/lsmod",
"github.com/u-root/u-root/cmds/core/man",
"github.com/u-root/u-root/cmds/core/md5sum",
"github.com/u-root/u-root/cmds/core/mkdir",
"github.com/u-root/u-root/cmds/core/mkfifo",
"github.com/u-root/u-root/cmds/core/mknod",
"github.com/u-root/u-root/cmds/core/mktemp",
"github.com/u-root/u-root/cmds/core/more",
"github.com/u-root/u-root/cmds/core/mount",
"github.com/u-root/u-root/cmds/core/msr",
"github.com/u-root/u-root/cmds/core/mv",
"github.com/u-root/u-root/cmds/core/netcat",
"github.com/u-root/u-root/cmds/core/ntpdate",
"github.com/u-root/u-root/cmds/core/pci",
"github.com/u-root/u-root/cmds/core/ping",
"github.com/u-root/u-root/cmds/core/printenv",
"github.com/u-root/u-root/cmds/core/ps",
"github.com/u-root/u-root/cmds/core/pwd",
"github.com/u-root/u-root/cmds/core/readlink",
"github.com/u-root/u-root/cmds/core/rm",
"github.com/u-root/u-root/cmds/core/rmmod",
"github.com/u-root/u-root/cmds/core/rsdp",
"github.com/u-root/u-root/cmds/core/scp",
"github.com/u-root/u-root/cmds/core/seq",
"github.com/u-root/u-root/cmds/core/shasum",
"github.com/u-root/u-root/cmds/core/shutdown",
"github.com/u-root/u-root/cmds/core/sleep",
"github.com/u-root/u-root/cmds/core/sluinit",
"github.com/u-root/u-root/cmds/core/sort",
"github.com/u-root/u-root/cmds/core/sshd",
"github.com/u-root/u-root/cmds/core/strace",
"github.com/u-root/u-root/cmds/core/strings",
"github.com/u-root/u-root/cmds/core/stty",
"github.com/u-root/u-root/cmds/core/switch_root",
"github.com/u-root/u-root/cmds/core/sync",
"github.com/u-root/u-root/cmds/core/tail",
"github.com/u-root/u-root/cmds/core/tar",
"github.com/u-root/u-root/cmds/core/tee",
"github.com/u-root/u-root/cmds/core/time",
"github.com/u-root/u-root/cmds/core/tr",
"github.com/u-root/u-root/cmds/core/true",
"github.com/u-root/u-root/cmds/core/truncate",
"github.com/u-root/u-root/cmds/core/ts",
"github.com/u-root/u-root/cmds/core/umount",
"github.com/u-root/u-root/cmds/core/uname",
"github.com/u-root/u-root/cmds/core/uniq",
"github.com/u-root/u-root/cmds/core/unmount",
"github.com/u-root/u-root/cmds/core/unshare",
"github.com/u-root/u-root/cmds/core/uptime",
"github.com/u-root/u-root/cmds/core/watchdog",
"github.com/u-root/u-root/cmds/core/watchdogd",
"github.com/u-root/u-root/cmds/core/wc",
"github.com/u-root/u-root/cmds/core/wget",
"github.com/u-root/u-root/cmds/core/which",
"github.com/u-root/u-root/cmds/core/yes",
},
}