@@ -108,7 +108,7 @@ Setting the boot order with efibootmgr will ensure that the desired network inte
108
108
109
109
> ** ` NOTE ` ** The four digit hex numbers shown in the examples below may be different, even between nodes of the same function and vendor. The first two efibootmgr commands will display the correct hex numbers for the third efibootmgr command to use in setting the proper boot order.
110
110
111
- 1 . Create our boot-bios-selector file(s) based on the manufacturer :
111
+ Follow the section corresponding to the hardware manufacturer of the system :
112
112
113
113
> <a name =" gigabyte-technology " ></a >
114
114
> #### Gigabyte Technology
@@ -122,8 +122,9 @@ Setting the boot order with efibootmgr will ensure that the desired network inte
122
122
> ncn-m# efibootmgr | grep cray | tee /tmp/bbs2
123
123
> Boot0000* cray (sda1)
124
124
> Boot0002* cray (sdb1)
125
- > ncn-m# efibootmgr -o $( cat /tmp/bbs* | awk ' !x[$0]++' | sed ' s/^Boot//g' | awk ' {print $1}' | tr -t ' * ' ' ,' | tr -d ' \n ' | sed ' s/,$//' ) | grep -i bootorder
125
+ > ncn-m# efibootmgr -o $( cat /tmp/bbs* | awk ' !x[$0]++' | sed ' s/^Boot//g' | tr -d ' * ' | awk ' {print $1}' | tr -t ' \n ' ' ,' | sed ' s/,$//' ) | grep -i bootorder
126
126
> BootOrder: 0007,0009,0000,0002
127
+ > ncn-m# cat /tmp/bbs* | awk ' !x[$0]++' | sed ' s/^Boot//g' | tr -d ' *' | awk ' {print $1}' | xargs -r -t -i efibootmgr -b {} -a
127
128
> ` ` `
128
129
>
129
130
> # #### Storage
@@ -135,8 +136,9 @@ Setting the boot order with efibootmgr will ensure that the desired network inte
135
136
> ncn-s# efibootmgr | grep cray | tee /tmp/bbs2
136
137
> Boot0000* cray (sda1)
137
138
> Boot0002* cray (sdb1)
138
- > ncn-s# efibootmgr -o $( cat /tmp/bbs* | awk ' !x[$0]++' | sed ' s/^Boot//g' | awk ' {print $1}' | tr -t ' * ' ' ,' | tr -d ' \n ' | sed ' s/,$//' ) | grep -i bootorder
139
+ > ncn-s# efibootmgr -o $( cat /tmp/bbs* | awk ' !x[$0]++' | sed ' s/^Boot//g' | tr -d ' * ' | awk ' {print $1}' | tr -t ' \n ' ' ,' | sed ' s/,$//' ) | grep -i bootorder
139
140
> BootOrder: 0007,0009,0000,0002
141
+ > ncn-s# cat /tmp/bbs* | awk ' !x[$0]++' | sed ' s/^Boot//g' | tr -d ' *' | awk ' {print $1}' | xargs -r -t -i efibootmgr -b {} -a
140
142
> ` ` `
141
143
>
142
144
> # #### Workers
@@ -152,8 +154,9 @@ Setting the boot order with efibootmgr will ensure that the desired network inte
152
154
> ncn-w# efibootmgr | grep cray | tee /tmp/bbs2
153
155
> Boot0000* cray (sda1)
154
156
> Boot0002* cray (sdb1)
155
- > ncn-w# efibootmgr -o $( cat /tmp/bbs* | awk ' !x[$0]++' | sed ' s/^Boot//g' | awk ' {print $1}' | tr -t ' * ' ' ,' | tr -d ' \n ' | sed ' s/,$//' ) | grep -i bootorder
157
+ > ncn-w# efibootmgr -o $( cat /tmp/bbs* | awk ' !x[$0]++' | sed ' s/^Boot//g' | tr -d ' * ' | awk ' {print $1}' | tr -t ' \n ' ' ,' | sed ' s/,$//' ) | grep -i bootorder
156
158
> BootOrder: 0009,0007,000B,0000,0002
159
+ > ncn-w# cat /tmp/bbs* | awk ' !x[$0]++' | sed ' s/^Boot//g' | tr -d ' *' | awk ' {print $1}' | xargs -r -t -i efibootmgr -b {} -a
157
160
> ` ` `
158
161
>
159
162
> < a name=" hewlett-packard-enterprise" ></a>
@@ -169,8 +172,9 @@ Setting the boot order with efibootmgr will ensure that the desired network inte
169
172
> ncn-m# efibootmgr | grep cray | tee /tmp/bbs2
170
173
> Boot0021* cray (sdb1)
171
174
> Boot0022* cray (sdc1)
172
- > ncn-m# efibootmgr -o $( cat /tmp/bbs* | awk ' !x[$0]++' | sed ' s/^Boot//g' | awk ' {print $1}' | tr -t ' * ' ' ,' | tr -d ' \n ' | sed ' s/,$//' ) | grep -i bootorder
175
+ > ncn-m# efibootmgr -o $( cat /tmp/bbs* | awk ' !x[$0]++' | sed ' s/^Boot//g' | tr -d ' * ' | awk ' {print $1}' | tr -t ' \n ' ' ,' | sed ' s/,$//' ) | grep -i bootorder
173
176
> BootOrder: 0014,0018,0021,0022
177
+ > ncn-m# cat /tmp/bbs* | awk ' !x[$0]++' | sed ' s/^Boot//g' | tr -d ' *' | awk ' {print $1}' | xargs -r -t -i efibootmgr -b {} -a
174
178
> ` ` `
175
179
>
176
180
> # #### Storage
@@ -182,8 +186,9 @@ Setting the boot order with efibootmgr will ensure that the desired network inte
182
186
> ncn-s# efibootmgr | grep cray | tee /tmp/bbs2
183
187
> Boot0002* cray (sdg1)
184
188
> Boot0020* cray (sdh1)
185
- > ncn-s# efibootmgr -o $( cat /tmp/bbs* | awk ' !x[$0]++' | sed ' s/^Boot//g' | awk ' {print $1}' | tr -t ' * ' ' ,' | tr -d ' \n ' | sed ' s/,$//' ) | grep -i bootorder
189
+ > ncn-s# efibootmgr -o $( cat /tmp/bbs* | awk ' !x[$0]++' | sed ' s/^Boot//g' | tr -d ' * ' | awk ' {print $1}' | tr -t ' \n ' ' ,' | sed ' s/,$//' ) | grep -i bootorder
186
190
> BootOrder: 001C,001D,0002,0020
191
+ > ncn-s# cat /tmp/bbs* | awk ' !x[$0]++' | sed ' s/^Boot//g' | tr -d ' *' | awk ' {print $1}' | xargs -r -t -i efibootmgr -b {} -a
187
192
> ` ` `
188
193
>
189
194
> # #### Workers
@@ -195,8 +200,9 @@ Setting the boot order with efibootmgr will ensure that the desired network inte
195
200
> ncn-w# efibootmgr | grep cray | tee /tmp/bbs2
196
201
> Boot0017* cray (sdb1)
197
202
> Boot0018* cray (sdc1)
198
- > ncn-w# efibootmgr -o $( cat /tmp/bbs* | awk ' !x[$0]++' | sed ' s/^Boot//g' | awk ' {print $1}' | tr -t ' * ' ' ,' | tr -d ' \n ' | sed ' s/,$//' ) | grep -i bootorder
203
+ > ncn-w# efibootmgr -o $( cat /tmp/bbs* | awk ' !x[$0]++' | sed ' s/^Boot//g' | tr -d ' * ' | awk ' {print $1}' | tr -t ' \n ' ' ,' | sed ' s/,$//' ) | grep -i bootorder
199
204
> BootOrder: 0012,0017,0018
205
+ > ncn-w# cat /tmp/bbs* | awk ' !x[$0]++' | sed ' s/^Boot//g' | tr -d ' *' | awk ' {print $1}' | xargs -r -t -i efibootmgr -b {} -a
200
206
> ` ` `
201
207
>
202
208
> < a name=" intel-corporation" ></a>
@@ -210,8 +216,9 @@ Setting the boot order with efibootmgr will ensure that the desired network inte
210
216
> ncn-m# efibootmgr | grep -i ' cray' | tee /tmp/bbs2
211
217
> Boot0011* cray (sda1)
212
218
> Boot0012* cray (sdb1)
213
- > ncn-m# efibootmgr -o $( cat /tmp/bbs* | awk ' !x[$0]++' | sed ' s/^Boot//g' | awk ' {print $1}' | tr -t ' * ' ' ,' | tr -d ' \n ' | sed ' s/,$//' ) | grep -i bootorder
219
+ > ncn-m# efibootmgr -o $( cat /tmp/bbs* | awk ' !x[$0]++' | sed ' s/^Boot//g' | tr -d ' * ' | awk ' {print $1}' | tr -t ' \n ' ' ,' | sed ' s/,$//' ) | grep -i bootorder
214
220
> BootOrder: 000E,0014,0011,0012
221
+ > ncn-m# cat /tmp/bbs* | awk ' !x[$0]++' | sed ' s/^Boot//g' | tr -d ' *' | awk ' {print $1}' | xargs -r -t -i efibootmgr -b {} -a
215
222
> ` ` `
216
223
> # #### Storage
217
224
> ` ` ` bash
@@ -221,8 +228,9 @@ Setting the boot order with efibootmgr will ensure that the desired network inte
221
228
> ncn-s# efibootmgr | grep -i ' cray' | tee /tmp/bbs2
222
229
> Boot0014* cray (sda1)
223
230
> Boot0015* cray (sdb1)
224
- > ncn-s# efibootmgr -o $( cat /tmp/bbs* | awk ' !x[$0]++' | sed ' s/^Boot//g' | awk ' {print $1}' | tr -t ' * ' ' ,' | tr -d ' \n ' | sed ' s/,$//' ) | grep -i bootorder
231
+ > ncn-s# efibootmgr -o $( cat /tmp/bbs* | awk ' !x[$0]++' | sed ' s/^Boot//g' | tr -d ' * ' | awk ' {print $1}' | tr -t ' \n ' ' ,' | sed ' s/,$//' ) | grep -i bootorder
225
232
> BootOrder: 000E,0012,0014,0015
233
+ > ncn-s# cat /tmp/bbs* | awk ' !x[$0]++' | sed ' s/^Boot//g' | tr -d ' *' | awk ' {print $1}' | xargs -r -t -i efibootmgr -b {} -a
226
234
> ` ` `
227
235
> # #### Workers
228
236
>
@@ -233,8 +241,9 @@ Setting the boot order with efibootmgr will ensure that the desired network inte
233
241
> ncn-w# efibootmgr | grep -i ' cray' | tee /tmp/bbs2
234
242
> Boot0010* cray (sda1)
235
243
> Boot0011* cray (sdb1)
236
- > ncn-w# efibootmgr -o $( cat /tmp/bbs* | awk ' !x[$0]++' | sed ' s/^Boot//g' | awk ' {print $1}' | tr -t ' * ' ' ,' | tr -d ' \n ' | sed ' s/,$//' ) | grep -i bootorder
244
+ > ncn-w# efibootmgr -o $( cat /tmp/bbs* | awk ' !x[$0]++' | sed ' s/^Boot//g' | tr -d ' * ' | awk ' {print $1}' | tr -t ' \n ' ' ,' | sed ' s/,$//' ) | grep -i bootorder
237
245
> BootOrder: 0008,000C,0010,0011
246
+ > ncn-w# cat /tmp/bbs* | awk ' !x[$0]++' | sed ' s/^Boot//g' | tr -d ' *' | awk ' {print $1}' | xargs -r -t -i efibootmgr -b {} -a
238
247
> ` ` `
239
248
240
249
After following the steps above on a given NCN, that NCN will now use the desired Shasta boot order.
@@ -271,7 +280,7 @@ Simply run the reverse-pattern of the PXE commands from the [setting boot order]
271
280
2. Remove them:
272
281
273
282
` ` ` bash
274
- ncn# cat /tmp/rbbs* | awk ' !x[$0]++' | sed ' s/^Boot//g' | awk ' {print $1}' | tr -d ' *' | xargs -t -i efibootmgr -b {} -B
283
+ ncn# cat /tmp/rbbs* | awk ' !x[$0]++' | sed ' s/^Boot//g' | awk ' {print $1}' | tr -d ' *' | xargs -r - t -i efibootmgr -b {} -B
275
284
` ` `
276
285
277
286
Your boot menu should be trimmed down to contain only relevant entries.
0 commit comments