Skip to content

Commit

Permalink
Fix OSTree TLS dependencies in ISO installer to let pull from https w…
Browse files Browse the repository at this point in the history
…ork.
  • Loading branch information
toliaqat committed Aug 12, 2015
1 parent 6bca51a commit a9158ca
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ ostree-host-iso: check $(PHOTON_STAGE) ostree-repo
-f > \
$(PHOTON_LOGS_DIR)/installer.log 2>&1

live-iso: check $(PHOTON_STAGE) $(PHOTON_PACKAGES_MINIMAL)
live-iso: check $(PHOTON_STAGE) $(PHOTON_PACKAGES_MINIMAL) minimal-iso
@echo "Building Photon Minimal LIVE ISO..."
@cd $(PHOTON_INSTALLER_DIR) && \
$(PHOTON_INSTALLER) -i $(PHOTON_STAGE)/photon-live-iso.iso \
Expand Down Expand Up @@ -305,7 +305,11 @@ install-docker-image: docker-image

ostree-repo: $(PHOTON_PACKAGES)
@echo "Creating OSTree repo from local PRMs in ostree-repo.tar.gz..."
$(SRCROOT)/support/ostree-tools/make-ostree-image.sh $(SRCROOT)
@if [ -f $(PHOTON_STAGE)/ostree-repo.tar.gz ]; then \
echo "ostree-repo.tar.gz already present, not creating again..."; \
else \
$(SRCROOT)/support/ostree-tools/make-ostree-image.sh $(SRCROOT); \
fi

clean: clean-install clean-chroot
@echo "Deleting Photon ISO..."
Expand Down
3 changes: 1 addition & 2 deletions SPECS/glib-networking/glib-networking.spec
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ These are the additional language files of glib-networking.
%build
export CFLAGS="%{optflags}"
./configure --prefix=%{_prefix} \
--with-ca-bundle=/etc/pki/tls/certs/ca-bundle.crt \
--disable-static
--with-ca-bundle=/etc/pki/tls/certs/ca-bundle.crt

make %{?_smp_mflags}

Expand Down
4 changes: 3 additions & 1 deletion common/data/packages_iso.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@
"libgpg-error", "libhif", "libhif-devel",
"librepo", "librepo-devel", "libsoup", "libsoup-devel",
"libxml2", "mkinitcpio", "openssl-devel",
"yum", "ostree" ,"dosfstools", "pciutils", "efivar", "efibootmgr"]
"yum", "libtasn1", "nettle", "nettle-devel", "gnutls",
"gnutls-devel", "glib-networking", "ostree", "gmp",
"dosfstools", "pciutils", "efivar", "efibootmgr"]
}
3 changes: 2 additions & 1 deletion installer/isoInstaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ def __init__(self, stdscreen, options_file):
# This represents the installer screen, the bool indicated if I can go back to this window or not
items = []
if not ks_config:
random_hostname = "photon-" + '%12x' % random.randrange(16**12)
random_id = '%12x' % random.randrange(16**12)
random_hostname = "photon-" + random_id.strip()
install_config = {'iso_system': False}
license_agreement = License(self.maxy, self.maxx)
select_disk = SelectDisk(self.maxy, self.maxx, install_config)
Expand Down

0 comments on commit a9158ca

Please sign in to comment.