Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Oct 13, 2024
1 parent dfbe907 commit dd33252
Showing 1 changed file with 2 additions and 27 deletions.
29 changes: 2 additions & 27 deletions src/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ addDrivers() {
# Workaround Virtio GPU driver bug
local dst="$src/\$OEM\$/\$\$/Drivers"
mkdir -p "$dst"
! cp -a "$dest/." "$dst" && return 1
! cp -r "$dest/." "$dst" && return 1
rm -rf "$dest/viogpudo"
;;
esac
Expand All @@ -769,37 +769,12 @@ addDrivers() {
return 0
}

addFolder() {

local src="$1"
local folder="/oem"

[ ! -d "$folder" ] && folder="/OEM"
[ ! -d "$folder" ] && folder="$STORAGE/oem"
[ ! -d "$folder" ] && folder="$STORAGE/OEM"
[ ! -d "$folder" ] && return 0

local msg="Adding OEM folder to image..."
info "$msg" && html "$msg"

local dest="$src/\$OEM\$/\$1/OEM"
mkdir -p "$dest"

! cp -a "$folder/." "$dest" && return 1

local file
file=$(find "$dest" -maxdepth 1 -type f -iname install.bat | head -n 1)
[ -f "$file" ] && unix2dos -q "$file"

return 0
}

updateImage() {

local dir="$1"
local asset="$2"
local language="$3"
local tmp="/run/shm/img"
local tmp="/tmp/install"
local file="autounattend.xml"
local org="${file//.xml/.org}"
local dat="${file//.xml/.dat}"
Expand Down

0 comments on commit dd33252

Please sign in to comment.