Skip to content

Commit

Permalink
v3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
brod-intel committed Dec 1, 2022
1 parent d26008d commit 800ab23
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 4 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,18 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Known Problem
- Missing instructions of how to build the boot.wim, boot.sdi and BCD from Microsoft ADK

## [3.0.1] - 2022-11-30
### Added
- Added additional kernel modules to the ESP uOS

### Changed
- Fixed WEBROOT creation with Gitea is disabled
- Fixed USB image size calculation
- Fixed ESP build when dynamic profile is active
- Updated the version of docker-compose inside core container

### Known Problem
- Missing instructions of how to build the boot.wim, boot.sdi and BCD from Microsoft ADK


[1.5.1]: https://github.com/intel/Edge-Software-Provisioner/compare/v1.5...v1.5.1
Expand All @@ -217,3 +228,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
[2.5.3]: https://github.com/intel/Edge-Software-Provisioner/compare/v2.5.2...v2.5.3
[2.5.4]: https://github.com/intel/Edge-Software-Provisioner/compare/v2.5.3...v2.5.4
[3.0.0]: https://github.com/intel/Edge-Software-Provisioner/compare/v2.5.4...v3.0
[3.0.1]: https://github.com/intel/Edge-Software-Provisioner/compare/v3.0...v3.0.1
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ if [[ "${DYNAMIC_PROFILE}" == "false" ]]; then
profilesActions genProfilePxeMenu
genPxeMenuTail

printBanner "Generating ${C_GREEN}IPXE Menu..."
logMsg "Generating IPXE Menu..."
genIpxeMenuHead
profilesActions genProfileIpxeMenu
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ LABEL maintainer "Bryan J Rodriguez <[email protected]>"
RUN apk --no-cache add \
bash \
dumb-init \
docker-compose \
inotify-tools \
git \
nmap \
nmap-scripts \
rsync \
syslinux \
docker-compose \
wget && \
apk --no-cache -U upgrade && \
update-ca-certificates
Expand Down
4 changes: 2 additions & 2 deletions scripts/profileutils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,7 @@ genProfileUsbBoot() {
export CALC_IMG_SIZE=$(( ((${KERNEL_SIZE} + ${INITRD_SiZE} + 52428800)/4096) + ( (${KERNEL_SIZE} + ${INITRD_SiZE} + 52428800) % 4096 > 0 ) ))

if [ "${USB_BIOS}" == "efi" ]; then
docker run -it --rm --privileged ${DOCKER_RUN_ARGS} -v /dev:/dev:shared -v $(pwd)/data:/data -v $(pwd)/${usb_path}/${name}:/usb ${UOS_BUILDER} -c "IMG_SIZE=\${CALC_IMG_SIZE} && \
docker run -it --rm --privileged ${DOCKER_RUN_ARGS} -v /dev:/dev:shared -v $(pwd)/data:/data -v $(pwd)/${usb_path}/${name}:/usb ${UOS_BUILDER} -c "IMG_SIZE=${CALC_IMG_SIZE} && \
truncate --io-blocks --size \${IMG_SIZE} /usb/temp.img && \
TEMP_IMG_DEV=\$(losetup --find --show /usb/temp.img) && \
dd bs=440 count=1 conv=notrunc if=/usr/share/syslinux/gptmbr.bin of=\${TEMP_IMG_DEV} > /dev/null 2>&1 && \
Expand All @@ -1417,7 +1417,7 @@ genProfileUsbBoot() {
mv /usb/temp.img /usb/${IMG_NAME}.img"
umount /dev/console
else
docker run -it --rm --privileged ${DOCKER_RUN_ARGS} -v /dev:/dev:shared -v $(pwd)/data:/data -v $(pwd)/${usb_path}/${name}:/usb ${UOS_BUILDER} -c "IMG_SIZE=\${CALC_IMG_SIZE} && \
docker run -it --rm --privileged ${DOCKER_RUN_ARGS} -v /dev:/dev:shared -v $(pwd)/data:/data -v $(pwd)/${usb_path}/${name}:/usb ${UOS_BUILDER} -c "IMG_SIZE=${CALC_IMG_SIZE} && \
truncate --io-blocks --size \${IMG_SIZE} /usb/temp.img && \
TEMP_IMG_DEV=\$(losetup --find --show /usb/temp.img) && \
parted --script \${TEMP_IMG_DEV} mklabel msdos mkpart primary fat32 1MiB 100% set 1 boot on && \
Expand Down
1 change: 1 addition & 0 deletions scripts/pxemenuutils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ genPxeMenuHead() {
}

genIpxeMenuHead() {
makeDirectory "${WEB_ROOT}"
cp "./template/ipxe/menu.ipxe.head" "${WEB_ROOT}/tmp_menu.ipxe"
}

Expand Down
5 changes: 4 additions & 1 deletion scripts/templateutils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,16 @@ renderSystemNetworkTemplates() {
local tmpDnsMasqConf="template/dnsmasq/dnsmasq.conf"
if [[ ${DYNAMIC_PROFILE} == "false" ]];then
local tmpPxeMenuFile=$(getTmpPxeMenuLocation)
local tmpIpxeMenuFile=$(getTmpIpxeMenuLocation)
else
local tmpPxeMenuFile="template/pxelinux.cfg/default.dynamic"
local tmpIpxeMenuFile="template/ipxe/menu.ipxe.head"
fi

# Copy template files
copySampleFile ${tmpDnsMasqConf} ${tmpDnsMasqConf}.modified
copySampleFile ${tmpPxeMenuFile} ${tmpPxeMenuFile}.modified
copySampleFile ${tmpIpxeMenuFile} ${tmpIpxeMenuFile}.modified

# Replace the template variables with their appropriate values
local dhcpRangeMinimumPlaceholder=("@@DHCP_MIN@@" "@@ESP_DHCP_MIN@@" "@@RNI_DHCP_MIN@@" "@@EDGEBUILDER_DHCP_MIN@@")
Expand All @@ -235,7 +238,7 @@ renderSystemNetworkTemplates() {
# Note that profile-scoped variables are not accessible here.
# In order to gain access to that scope use the renderTemplate
# functionality
local stgFiles=("${tmpDnsMasqConf}.modified" "${tmpPxeMenuFile}.modified" "${WEB_ROOT}/tmp_menu.ipxe")
local stgFiles=("${tmpDnsMasqConf}.modified" "${tmpPxeMenuFile}.modified" "${tmpIpxeMenuFile}.modified")
for stgFile in ${stgFiles[@]}; do
for i in {0..2}
do
Expand Down

0 comments on commit 800ab23

Please sign in to comment.