… | |
… | |
304 | } |
304 | } |
305 | |
305 | |
306 | Note that minimal doesn't mean recommended - Windows itself will add stuff |
306 | Note that minimal doesn't mean recommended - Windows itself will add stuff |
307 | to this during or after boot, and you might or might not run into issues |
307 | to this during or after boot, and you might or might not run into issues |
308 | when installing updates as it might not be able to find the F<bootmgr>. |
308 | when installing updates as it might not be able to find the F<bootmgr>. |
|
|
309 | |
|
|
310 | This is how you would create a minimal hive with PBCDEDIT from Linux, |
|
|
311 | assuming F</dev/sda3> is the windows partition, using a random GUID for |
|
|
312 | the osloader and using C<partition> instead of C<legacypartition>: |
|
|
313 | |
|
|
314 | osldr="{$(uuidgen)}" |
|
|
315 | part=$(pbcdedit bcd-device /dev/sdc3) |
|
|
316 | pbcdedit create minimal.bcd \ |
|
|
317 | set '{bootmgr}' default "$osldr" \ |
|
|
318 | set "$osldr" type application::osloader \ |
|
|
319 | set "$osldr" description 'Windows Boot' \ |
|
|
320 | set "$osldr" device "$part" \ |
|
|
321 | set "$osldr" osdevice "$part" \ |
|
|
322 | set "$osldr" path '\Windows\system32\windload.exe' \ |
|
|
323 | set "$osldr" systemroot '\Windows' |
309 | |
324 | |
310 | =head2 The C<meta> key |
325 | =head2 The C<meta> key |
311 | |
326 | |
312 | The C<meta> key is not stored in the BCD data store but is used only |
327 | The C<meta> key is not stored in the BCD data store but is used only |
313 | by PBCDEDIT. It is always generated when exporting, and importing will |
328 | by PBCDEDIT. It is always generated when exporting, and importing will |