mirror of
https://github.com/dockur/windows.git
synced 2025-10-28 19:55:49 +00:00
Update install.sh
This commit is contained in:
parent
b957ac9284
commit
32ee299ad9
1 changed files with 8 additions and 8 deletions
|
|
@ -779,14 +779,20 @@ copyOEM() {
|
|||
local dir="$1"
|
||||
local folder="/oem"
|
||||
local drivers="$TMP/drivers"
|
||||
local dest="$src/\$WinPEDriver\$/"
|
||||
local src file
|
||||
|
||||
local msg="Copying drivers to image..."
|
||||
info "$msg" && html "$msg"
|
||||
|
||||
src=$(find "$dir" -maxdepth 1 -type d -iname sources | head -n 1)
|
||||
|
||||
rm -rf "$drivers"
|
||||
if [ ! -d "$src" ]; then
|
||||
error "failed to locate 'sources' folder in ISO image!" && return 1
|
||||
fi
|
||||
|
||||
local dest="$src/\$WinPEDriver\$/"
|
||||
mkdir -p "$dest"
|
||||
rm -rf "$drivers"
|
||||
|
||||
if ! 7z x /run/drivers.iso -o"$drivers" > /dev/null; then
|
||||
error "Failed to extract driver ISO file!" && return 1
|
||||
|
|
@ -803,12 +809,6 @@ copyOEM() {
|
|||
msg="Copying OEM folder to image..."
|
||||
info "$msg" && html "$msg"
|
||||
|
||||
src=$(find "$dir" -maxdepth 1 -type d -iname sources | head -n 1)
|
||||
|
||||
if [ ! -d "$src" ]; then
|
||||
error "failed to locate 'sources' folder in ISO image!" && return 1
|
||||
fi
|
||||
|
||||
dest="$src/\$OEM\$/\$1/"
|
||||
mkdir -p "$dest"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue