Skip to content

Commit

Permalink
Merge pull request #132 from endlessm/T35093-remove-endless-key-v1
Browse files Browse the repository at this point in the history
Remove USB image support (for Endless Key V1)
  • Loading branch information
dbnicholson authored Nov 29, 2023
2 parents ad07374 + ad614ff commit 4b2aa88
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 161 deletions.
9 changes: 0 additions & 9 deletions config/defaults.ini
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ packages_add =
endless-ca-cert
eos-keyring
eos-tech-support
exfat-fuse
exfat-utils
fdisk
flatpak
gir1.2-flatpak-1.0
Expand Down Expand Up @@ -152,9 +150,6 @@ boot_zip = true
# Don't build ISOs by default
iso = false

# Don't build USB images by default
usb = false

# Don't build VM images by default
# This setting only works for arch=amd64, for all other values this is a no-op
# (please also add the comment above to anywhere 'vm_image' is changed)
Expand Down Expand Up @@ -308,10 +303,6 @@ kolibri_pkgspec = https://github.com/learningequality/kolibri/releases/download/
# (ex. artist, explorer, spanish etc).
collections =

[usb]
size = 16000000000
free_space = 1000

[ostree]
# Repository setup. By default the remote, remote repo and OS name are
# all named eos.
Expand Down
138 changes: 0 additions & 138 deletions helpers/create-usb-image

This file was deleted.

14 changes: 0 additions & 14 deletions stages/eib_image
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,6 @@ dpkgdir="${OSTREE_DEPLOYMENT}"/var/lib/dpkg
packageinfo="${EIB_TMPDIR}"/packages.txt
dpkg-query -W --admindir="${dpkgdir}" > "${packageinfo}"

# Create a clean USB image workspace directory
if [[ "${EIB_IMAGE_USB}" = "true" ]]; then
export EIB_USB_IMAGE_WORKSPACE_DIR="${EIB_TMPDIR}/usb-image-extra"
recreate_dir "${EIB_USB_IMAGE_WORKSPACE_DIR}"
fi

# Add package info to manifest using helper. This needs to be run here
# rather than in an image hook because the dpkg database will be masked
# by the OS /var mount.
Expand Down Expand Up @@ -626,14 +620,6 @@ EOF
"${EIB_HELPERSDIR}"/create-vm-image "$(eib_outfile ovf.zip)" "${img}"
fi

# Create USB image if required
# This expects to have an ISO image for eos-write-live-image.
if [[ "${EIB_IMAGE_USB}" = "true" && "${EIB_IMAGE_ISO}" = "true" && "${EIB_IMAGE_BOOT_ZIP}" = "true" ]]; then
"${EIB_HELPERSDIR}"/create-usb-image "${version}" "$(eib_outfile usb.img)" \
"$(eib_outfile iso)" "${boot_zip}" "${img_csum}" "${boot_zip}.sha256" \
"${img_asc}" "${boot_zip}.asc"
fi

# Await signing and checksumming subprocesses
wait

Expand Down

0 comments on commit 4b2aa88

Please sign in to comment.