… | |
… | |
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 | |
309 | |
310 | This is how you would create a minimal hive with PBCDEDIT from Linux, |
310 | This is how you would create a minimal hive with PBCDEDIT from within |
311 | assuming F</dev/sda3> is the windows partition, using a random GUID for |
311 | GNU/Linux, assuming F</dev/sdc3> is the windows partition, using |
312 | the osloader and using C<partition> instead of C<legacypartition>: |
312 | a random GUID for the osloader and using C<partition> instead of |
|
|
313 | C<legacypartition>: |
313 | |
314 | |
314 | osldr="{$(uuidgen)}" |
315 | osldr="{$(uuidgen)}" |
315 | part=$(pbcdedit bcd-device /dev/sdc3) |
316 | part=$(pbcdedit bcd-device /dev/sdc3) |
316 | pbcdedit create minimal.bcd \ |
317 | pbcdedit create minimal.bcd \ |
317 | set '{bootmgr}' default "$osldr" \ |
318 | set '{bootmgr}' default "$osldr" \ |
318 | set "$osldr" type application::osloader \ |
319 | set "$osldr" type application::osloader \ |
319 | set "$osldr" description 'Windows Boot' \ |
320 | set "$osldr" description 'Windows Boot' \ |
320 | set "$osldr" device "$part" \ |
321 | set "$osldr" device "$part" \ |
321 | set "$osldr" osdevice "$part" \ |
322 | set "$osldr" osdevice "$part" \ |
322 | set "$osldr" path '\Windows\system32\windload.exe' \ |
323 | set "$osldr" path '\Windows\system32\winload.exe' \ |
323 | set "$osldr" systemroot '\Windows' |
324 | set "$osldr" systemroot '\Windows' |
324 | |
325 | |
325 | =head2 The C<meta> key |
326 | =head2 The C<meta> key |
326 | |
327 | |
327 | The C<meta> key is not stored in the BCD data store but is used only |
328 | The C<meta> key is not stored in the BCD data store but is used only |