Giter Club home page Giter Club logo

Comments (10)

skyblaster avatar skyblaster commented on July 29, 2024 1

I've yet to test the new bcdboot options, but after reading the documentation, the command looks sound.

You may want to consider adding a /p switch for those who may have existing grub2 or rEFInd boot loaders in place....or simply for those who want to preserve their existing boot order.

from osd.

skyblaster avatar skyblaster commented on July 29, 2024

Since I suck at git, I'll just link this: 61d9983

I think this is the relevant code currently in use. Will test tomorrow.

from osd.

skyblaster avatar skyblaster commented on July 29, 2024

Sorry for the screen glare, but my edit to Diskpart-FormatSystemPartition.ps1 is unnecessary as illustrated below.
image

In troubleshooting with diskpart/list volume, the S drive letter remains intact until Get-WindowsEdition is called. Then it is dropped for some unknown reason.

from osd.

OSDeploy avatar OSDeploy commented on July 29, 2024

Confirmed, System partition is mapped to S: as detailed in New-OSDPartitionSystem
image

from osd.

skyblaster avatar skyblaster commented on July 29, 2024

Commenting lines 1087 and 1091 in OSDCloud.ps1 does the trick with regards to solving the original issue.

$SystemDrive | Remove-PartitionAccessPath -AccessPath "S:\"

Running diskpart/list volume again from OOBE doesn't show the letter, so I won't begin to understand when or why it's necessary.

EDIT: Upon further testing. All I can say is: 60% of the time, it works every time.

from osd.

OSDeploy avatar OSDeploy commented on July 29, 2024

Running diskpart/list volume again from OOBE doesn't show the letter, so I won't begin to understand when or why it's necessary.

Maybe I should have taken better notes and added them to the script, but removing the S: partition was necessary when I created this file, possibly for certain versions of WinPE10 had issues where S: was still visible after reboot, if I remember correctly. I'm not open to removing those two lines unless I can fully confirm there won't be any issues, and that will take some time testing previous versions of WinPE and previous versions of Windows

from osd.

skyblaster avatar skyblaster commented on July 29, 2024

Eeek. I think your latest commit foiled my testing.
EDIT: Scratch that. I'm still using OSD 23.5.18.1

Essentially my solution would have been to simply add the following line before nuking the S: volume mount.

In CMD:
bcdedit /set {bootmgr} device partition=s:

or in PS:

bcdedit /set '{bootmgr}' device partition=s:

from osd.

skyblaster avatar skyblaster commented on July 29, 2024

For reference, my reference was this:
https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/bcd-system-store-settings-for-uefi

from osd.

OSDeploy avatar OSDeploy commented on July 29, 2024

Solution:
image

from osd.

OSDeploy avatar OSDeploy commented on July 29, 2024

Closing this issue as complete with the latest release of OSD
image

from osd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.