Commit Graph

96 Commits

Author SHA1 Message Date
Alexey Makhalov c66f6b98b8 rpi3 image: fix boot problem
Change ESP type from 'ef' to 'c'. RPi3 bootcode requires it
in order to find boot partition.

Change-Id: I987fa14061e5f499da11960f0e2f80a71edf5f52
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/8471
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
Tested-by: Anish Swaminathan <anishs@vmware.com>
2019-11-04 14:45:45 -08:00
Ankit Jain 1ca2f0aff1 ostree: Fixed multiple issues
- Fixed custom repo selection path
- Fixed progress_bar if ui is true
- removed extra imports in installer.py

Change-Id: I2baca4af68c016a5fc35dfcf8c43cb928e78288e
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/8432
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>
2019-10-31 09:23:07 -07:00
Siddharth Chandrasekaran 335cac942b installer: add support for user network configuration
The following new features are added to photon-installer:

- Add support for configuring network (VLAN/DHCP/Static)
- Add support for displaying a generic URL downloader window based on
  "download_screen" key in ui_config.json see installer/ui_config.txt
  for more details.
- Allow files from http/https URLs to be downloaded as part of
  additional_files

Other changes:

- Fix some random pylint issues.
- Add installer/ui_config.txt to document keys in ui_config.json

Note:

This patch add a new build and iso-install time dependency to python
package pyOpenSSL.

Change-Id: I7c56e15292781e874977c66410bf08cf4397b126

Conflicts:
	installer/installer.py

Change-Id: If5381e4749e1c9245c86c7a4c68de4b6f88e5c07
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/8409
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
2019-10-30 18:59:25 -07:00
Alexey Makhalov 135b59eb53 installer: fix kickstart installation
1) do not redirect STDOUT to /var/log/installer, but
print it on the screen. /var/log/installer.log will be
created by logger library.

2) eject cdrom not for the 'ui' path, but for 'live'.

Change-Id: Iced0871d6c57b8c38263b1fd37c2b9826520b5be
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/8443
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
Tested-by: Anish Swaminathan <anishs@vmware.com>
2019-10-30 18:26:01 -07:00
michellew-vmware f8af146e62 Update installer.py to get params of partition['fs_options']
Change-Id: I3b83046e4f5c1671e5d2e0b08f46752c5c9e31a3
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/8421
Tested-by: michellew <michellew@vmware.com>
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>
2019-10-30 11:59:32 -07:00
Piyush Gupta 2655898752 minimal-iso: Creating photon minimal-iso
-  Addded a new target 'minimal-iso' in Makefile
  * This generates photon-minimal-*.iso and corresponding debug iso
  * Size of minimal-iso is 263MB and size of debug iso is 1166M
- minimal-iso skips photon flavour selection(edge, developer and ostree) UI

Change-Id: I945d74e13c0fbca700cfd6a18467fdac42b68f87
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/8254
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>
2019-10-28 11:04:07 -07:00
hdommaraju 645cf6cc3e installer: Fix issues found during lvm validations
1. Fix for removing linux when linux-esx is selected
2. Remove existing vg's to continue re-installation
3. Cleanup improvements

Change-Id: I7902cb8dc52a19abaea161cd7066229507cc4313
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/8255
Reviewed-by: Ankit Jain <ankitja@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>
Tested-by: michellew <michellew@vmware.com>
2019-10-28 11:03:43 -07:00
michellew-vmware 3493429a69 image-builds: fix config json for rpi3 and ls1012afrwy
Change-Id: I614af1cfb96f68d7b6becfb24418c4f7f8d540bc
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/8384
Tested-by: michellew <michellew@vmware.com>
Reviewed-by: michellew <michellew@vmware.com>
(cherry picked from commit 2b1c80e03f)
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/8400
2019-10-25 17:06:16 -07:00
Ankit Jain 7002ceb809 ostree: Enabling Support for ARM Arch
- EFI partition required at least 10M to copy extra binary for aarch
- starting a docker before executing docker run
- Select the appropriate the docker file based on ARCH

Change-Id: I23746b5fe435a9a52f71ba6013637afeaf6542ed
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/8374
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
2019-10-24 12:06:37 -07:00
Alexey Makhalov 0ac99e7f12 installer, image-builder: set of fixes
1) Fix m_postinstall module.
2) Remove useless if condition from grub.cfg.
3) Add static /dev files.
4) Add empty public_key to ova images to allow root login over ssh.
5) Updated ks_config.txt.
6) Fix vhd.gz option.
7) Set ami bootmode to bios only.

Change-Id: I84898ce82307e270b47889f0b268d1b4ad8d4a10
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/8265
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>
2019-10-17 09:11:45 -07:00
Alexey Makhalov 23a5d5280c Installer: add imagegenerator postactions
It allows imagegenerator to do not execute any postactions by
simply specifying thme in installer config section.

Added extra steps to postinstall module.
Added machineid and locale modules.

expirepassword moved to installer->password->age field
as an integer value.

Removed mknod creation in /dev

Fix remote repo=

Change-Id: I76f947f8770a3e87012843f2e1371ef775cd951f
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/8245
Tested-by: michellew <michellew@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
2019-10-16 13:46:44 -07:00
Alexey Makhalov f8fdbcecc0 installer: remove shell scripts
..except mk-setup-grub.sh.

Extras:
- use PARTUUID/UUID in fstab. It is most flexible and will
  allow imagebuilder to use fstab creator from installer
  instead its own implementation.
- Renamed /boot/esp ESP mountpoint to /boot/efi.
- Updated installer/README.txt to reflect previous lvm change.
- Fixed UI config for skipping inactive screens.

Change-Id: I5df3044a42b8deb748c87278dee137081ed60079
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/8231
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
2019-10-14 18:13:22 -07:00
Ankit Jain c0c4b3cd1e rpm-ostree: Generalise partitioning logic in ostree installer
- Genarlize the partition logic in ostree installer instead of hardcoding
 - Also, reorganises the ostreeinstaller.py
- Added ostree entry in ks_config.txt
- Changed password string to "changeme" in sample_ks.cfg

Change-Id: I13d842aea252ba4a3538c8c9381a3068ed8eea13
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/8168
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>
Tested-by: gerrit-photon <photon-checkins@vmware.com>
2019-10-14 06:35:41 -07:00
hdommaraju 802c5823a7 installer: lvm support partition
[Alexey] Extras:
1) Introduced tree view of partitions for multiple disk and LVM support.
2) Multiple disk core functionality implementation.
3) LVM detach using 'dmsetup remove'.
4) Add LVM documentation to ks_config.txt
5) Fix json syntax in ks_config.txt (" instead of ').
6) UI: support for /dev/loop (1) and /dev/vda (254) disks.
7) Fix install_linux_esx logic.
8) Treat BIOS and EFI boot partition as normal partitions (inject
   them into partitions list).
9) Introduced PartitionType enum.
10) Renamed non obvious steps in _unsafe_install().
11) Use vfat instead of fat for ESP.
12) Update grubx64.efi to support lvm.

Co-developed-by: Alexey Makhalov <amakhalov@vmware.com>
Change-Id: I49e26f22e80eb399e3b48ee98d92ea460a957bf1
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/8125
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Harinadh Dommaraju <hdommaraju@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
2019-10-11 01:21:07 -07:00
Siddharth Chandrasekaran 3799cb7c2e installer/builder: get additional_rpms_path from config files
Change-Id: I8491540a95fbf0d2de27f93c8c6bb0c1a1239c20
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/8120
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Srinidhi Rao <srinidhir@vmware.com>
2019-10-09 01:12:40 -07:00
Alexey Makhalov 9273a97061 installer: refactor UI initialization
Move curses.wrapper down to classes/methods instead of
wrapping entire isoInstaller.
It will allow us to run KS installation in console(non curses)
mode, if install_config['ui'] set to false.

Extras:
1) Cleaned up logging.
2) Introduced install_config['log_level'] parameter.
3) Introduced --ui-config argument for isoInstaller.
4) Fixed ostree installation path. OStree installer works,
but target system was not tested.
5) Moved ostree specific install_config options under
install_config['ostree']

Change-Id: I6c31821778d506f3f28fa07254a556830b1fe534
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/8156
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
2019-10-08 15:16:20 -07:00
Alexey Makhalov b291a1d201 installer: reorganize entry point
Installer engine consist of two pieces (stages):
1) installer.configure(install_config, ui_config)
   - install_config is a KS input config as well as 'installer'
     portion of image builder config
   if 'install_config' is None then configure will trigger
   interactive ncurses configurator
   - ui_config is a config for interactive ncurses configurator.
     Can be used to control what screens to show.
   No actions allowed toward target system (disk or image) during
   configure stage.

2) installer.execute(install_config)
   - takes install_config and "execute" it. All actions on target
     system are performed here.

Installer can be run as an app, like ./isoInstaller

In this case control flow looks like:
isoInstaller
  <detect KS from kernel cmdline> - no luck
  installer.configure(None, ui_config)
    ui_config - run ncurses interractive installer to
                construct 'install_config'
    <perform sanity checks of install_config>
  installer.execute(install_config)

When isoInstaller detects KS file - control flow is like:
isoInstaller
  <detect KS from kernel cmdline> - success - create 'install_config'
  installer.configure(install_config, None)
    <perform sanity checks of install_config>
  installer.execute(install_config)

When installer called from image builder it is similar to KS case:
image builder
  <parses its config file> - creates install_config out of
                             'installer' section
  installer.configure(install_config, None)
    <perform sanity checks of install_config>
  installer.execute(install_config)
  <performs post actions>
  <convert raw disk to some output format>

Changed images config file to move installer specific
changes to 'installer' subsection

Deprecate install_config fields: iso_installer, ui_install,
additional-files.

Unified password related logic in installer and removed it
from image builder.

Added ks_config.txt file - documentation for ks file format.

NOTE: this commit can break ostree, as it was not tested.

Change-Id: I3f718b6793c7f0befeb63df4d7e99072cf4d7693
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/8127
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>
2019-10-04 11:00:33 -07:00
Alexey Makhalov 6889b0191f installer: image file partitioning support
image-builder: use installer instead of mk-setup-vmdk.sh
script to partition /dev/loop device.

Use default partitioning scheme (provided by installer) for
most images. For other images specify 'partitions' (in kickstart
syntax) field for custom partitioning. Only 'size' field
remaining for the size of the raw image file. It is image builder
responsibility to create raw image file and losetup it.

install_config['partition_type'] was introduced to support
MSDOS partition table, for images like rpi3.

introduced new optional field for partition - 'fs_options' to
set additional mkfs options for given fs type.

'boot' was renamed to 'bootmode' to avoid confusion.

Remove chown fro mk-prepare-system

Fix installer exception if tdnf is not found on the host.

Deprecated mk-setup-vmdk.sh.
Deprecated mk-clean-vmdk.sh, move corresponding code to
python.

Change-Id: I8ce9426cf8b5524e2a9037f1aa365b49be53ab35
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/8123
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
Tested-by: gerrit-photon <photon-checkins@vmware.com>
2019-10-02 20:35:37 -07:00
Alexey Makhalov f42f786030 installer: do not abuse install_config
1) Do not add UI specific fields in install_config which is not used
at execution state, such as custom partition internal information.
Use only install_config['partitions']

2) Do not overwrite install_config['disk'] by partitions data.
Create new field for that: install_config['partitions_data']

3) New class pastitionpane as a sub element of custom partitioning
screen.

4) Rename PartitionISO to CustomPartition to avoid confusion.

5) Cleanup Image Builder.

Change-Id: Id1aef8b18b866ee464bd583c820f92c5037aae71
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/8105
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
2019-09-30 14:28:35 -07:00
Alexey Makhalov a935ac9148 installer: always use tdnf
Only image builder used 'rpm' to install packages.
Switch to 'tdnf'. If tdnf is not available or version is old
(basically if host's tdnf failed) then use tdnf from photon:3.0
docker image.

Extras: remove swap add/remove logic as it is useless

Change-Id: Ifb8a3a29531ed6776cba450e977fbc0c36e49450
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/8097
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
2019-09-30 00:11:58 -07:00
Alexey Makhalov 17096ae22e installer: use logging
Use logging facility for all logging activities in installer
to console and to the file. Do not use direct print or write
to file and do not use journald.

Extra: remove deprecated and not used files

Change-Id: Ic41817589c55178634af8e15443079cd78454203
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/8093
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
Tested-by: gerrit-photon <photon-checkins@vmware.com>
2019-09-26 20:41:51 -07:00
Alexey Makhalov 661da1302e installer: move partitioning to execution stage
Do not do partitioning in the very beginning of ui config
or at the end of ks config. Merge partitioning code and
move it to installer execution. Remove any partitioning
code from selectdisk ui screen.

Extras:
- deprecate 'vmdk_install' (it is same as 'not iso_installer')
- improve nsurses ui rendering. Avoid unnecessary refresh.
- removed unused param in display() and menu items handlers

Change-Id: I90522da30bb29b452bb68e64e749ab81177875a0
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/8088
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
Tested-by: Anish Swaminathan <anishs@vmware.com>
2019-09-25 15:10:49 -07:00
Alexey Makhalov e5be3552ce installer: deprecate 'iso_system'
Previous commit separated iso builder and installer.
So, iso_system in installer is not used anymore, it is
always False. Safe to remove.

Change-Id: I269bcaff6b05e451dfa0af88bf945f5fca1d44a6
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/8038
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
2019-09-25 13:23:07 -07:00
Alexey Makhalov 694a83894b installer: do not remove input RPMS
RPMS got accidentally removed by tdnf as part of cachedir cleaning.
When cachedir is bindmounted to rpm_path, use keepcache=1 to keep
them intact.

Extras:
- incremetal build: do full build if support/{make,pullpublishrpms}
were changes in addition to support/package-builder.
- remove 3.0 and x86_64 from temporary repo file.

Change-Id: I7c41985c77781657a833be37bc98af550f4ff9aa
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/8036
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
2019-09-18 21:23:59 -07:00
Alexey Makhalov 16d923c8e5 installer: make it runnable as an app
The purpose of this commit is to improve debugability
of installer codebase. Installer can be run from running
Photon OS instance just as "./isoInstaller". You do not
need to create bootable ISO and run it to verify installer
code.
Changes in this commit:
- use local input.json as build_install_options
- support "packages" field in build_install_options file
- do not modify and use host's /etc/yum/repos.d and
  /etc/tdnf.conf create them in working directory instead
- added --rpms-path parameter, default: ../stage/RPMS
- add logging of shell scripts to installer.log
- do not use "swapoff -a" at finalize step, swapoff only
  installer created swap

Change-Id: I9cf034ba069e4625bd79a22aff6db3bbcba869d0
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/8024
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
2019-09-18 13:36:28 -07:00
Him Kalyan Bordoloi 5ed3277a08 dualboot: install bios and efi in separate partitions
Change-Id: I819ac3888f82d97352ff58c2fb4b52a66ea76921
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/6165
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
2019-05-23 17:13:50 -07:00
suezzelur 37be780326 Remove copying of rpms step for image builder
Change-Id: Icfe0e8b8cc0cbf75a3b6bf287efebcb2c5ea6eb5
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/6549
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
Tested-by: Anish Swaminathan <anishs@vmware.com>
2019-01-22 15:48:49 -08:00
suezzelur eaa2d6fccd Remove packaging of installer folder in image creation
Change-Id: Iaa787a5c8baa13f6a60ab2941f1e435278e414b9
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/6460
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>
2019-01-09 15:42:37 -08:00
suezzelur f097abe796 Fix bug in replacing packages in installer
Change-Id: I82fa2f0b0ac7bf2574a2c7c0cf46c1eb9dc61409
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/6450
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
2019-01-09 15:40:41 -08:00
suezzelur e259433a18 Fix removal of linux in VMware hypervisor case
After multiversion support, linux package was not getting
removed when linux-esx was supposed to get installed
due to the presence of the additional version information in
the package list json, this fixes it.

Change-Id: Iad007d2a7fd8459d15296a602c793ef5cef13d03
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/6444
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Sharath George
2019-01-04 11:51:42 -08:00
Srivatsa S. Bhat (VMware) 2b9eedb1b5 installer: Do not proceed if bootloader setup fails
When building an AMI image, if grub2 is not available on the system,
the bootloader setup will fail. However, the image builder ignores
this error and proceeds anyway, creating an unbootable image. Fix it
by erroring out if mk-setup-grub.sh fails.

Change-Id: I0c9f69e176513f47be761e0d464484660b9d9856
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/6339
Tested-by: michellew <michellew@vmware.com>
Reviewed-by: Sharath George
2018-12-10 18:26:54 -08:00
suezzelur d07c27b729 Additional improvements to image builder
-Remove the use of photoninstaller.py
-Replace image builder script
-Enhance image builder config file
-Support image building using config files from Makefile
    - make image IMG_NAME=<name>
    - make image CONFIG=<config_file>
    - or combination of both the above

Change-Id: I1a0db70969224826130c5e4c25a74e7217a8dace
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/6150
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
Tested-by: Anish Swaminathan <anishs@vmware.com>
2018-11-14 17:36:26 -08:00
suezzelur ee1e6b58f2 Installer and image builder improvements
- Use image-builder instead of cloud-image-builder
- Remove install type from json files for images
- Clean up json files
- Add metapackage minimal
- Remove full flavor from ISO and add developer and edge
- Remove installation type from json files and use package list json

Change-Id: I6b667beb92f9f68533e48482f84139102b818342

Conflicts:
	Makefile
	support/package-builder/SpecData.py
Change-Id: Iff18095a5f53151d0456c694c039da720eef2398
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/6170
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
Tested-by: Anish Swaminathan <anishs@vmware.com>
2018-11-14 17:35:46 -08:00
suezzelur 92ce7429fe Package missing rpm versions in the iso
Change-Id: I0968b741ccfb04b94a2146578c90513fac5c9e4e
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/6122
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>
2018-11-07 16:45:08 -08:00
suezzelur 26b5567968 Clean up logging of package builder
- Add log levels for package builder
- Remove unwanted logs from Makefile targets
- Remove unused Makefile targets

Change-Id: I4cb4c812ac15a5617d4df6245ac2a891e7a93c16
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/5895
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>
Tested-by: Sharath George
2018-10-11 17:25:35 -07:00
Alexey Makhalov 6fff46340a glibc: version update to 2.28
Extras:
- Installer: fix make iso
- Makefile: support THREADS=n for make <package>
- glibc: disable obsoleted rpc - use libtirpc instead.
         disable obsoleted nsl.
- gcc/libsanitizer: do not use deprecated ustat syscall.
- coreutils: version update to support new glibc.
- gzip: fix compilation issue against glibc-2.28.
- findutils: fix compilation issue against glibc-2.28.
- m4: fix compilation issue against glibc-2.28.
- parted: fix compilation issue against glibc-2.28.
- make: fix compilation issue against glibc-2.27.
- bison: fix compilation issue against glibc-2.28.
- e2fsprogs: version update to fix compilation issue againts glibc-2.28
- hdparm: version update to fix compilation issue againts glibc-2.28
- kexec-tools: version update to fix compilation issue againts glibc-2.28
- librpcsecgcc: use libtirpc instead of glibc/rpc.
- libunistring: version update to fix compilation issue againts glibc-2.28
- psmisc: version update to fix compilation issue againts glibc-2.28
- sg3_utils: fix compilation issue against glibc-2.28.
- syslinux: fix compilation issue against glibc-2.28.
- btrfs-progs: fix compilation issue against e2fsprogs-1.44.
- fsarchiver: fix compilation issue against glibc-2.28.
- systemd: fix compilation issue against glibc-2.28.
- nfs-utils: fix compilation issue against glibc-2.28
             use internal rpcgen, disable librpcsecgss dependency.
- mysql: use libtirpc instead obsoleted rpc from glibc.
- vsftpd: use libnsl instead of obsoleted nsl from glibc.
- libnsl: new package.
- rpcsvc-proto: new package.
- python-pyvim: use --no-same-owner for tar.
- autofs: use rpcsvc-proto and libtirpc.
- xmlsec1: fix requires.
- open-vm-tools: version update to 10.3.0 to support tirpc.
- xinetd: use libtirpc.
- tcp_wrappers: use libnsl.
- libvirt: use libtirpc.
- motd: fix always rebuild issue.
- rubygem-ffi: fix always rebuild issue.
- ceph: remove epoch.

Change-Id: Ida206a38398aeb7fd18e1c24acaf21a3511ff853
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/5548
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>
Tested-by: Sharath George
2018-09-26 11:55:40 -07:00
xiaolin-vmware 26c3b66284 Clean installer.py and log more error messages.
Change-Id: I8b44aaed9a9361a5e25be9d429dda6efeef2859c
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/4636
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Rui Gu <ruig@vmware.com>
2018-01-12 14:32:20 -08:00
xiaolin-vmware a5a8bd39de Limit lines to a maximum of 99 characters, add more functions to installer.py.
Change-Id: Idad0f5e11a41c048ec8b187e1bf93a5ea29af918
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/4614
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Divya Thaluru <dthaluru@vmware.com>
2018-01-10 10:26:46 -08:00
xiaolin-vmware c533b30802 Clean install code. Limit all lines to a maximum of 99 characters
Change-Id: I9d4758fb6428aa41305a165a076d9156e46b4e42
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/4576
Reviewed-by: Divya Thaluru <dthaluru@vmware.com>
Tested-by: gerrit-photon <photon-checkins@vmware.com>
2017-12-28 13:39:44 -08:00
xiaolin-vmware a672bd2436 Python3 isoinstaller.
Change-Id: I27fc8cd53b8cea2700b8d4ed47a78f71ce4b9469
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/4325
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
2017-12-27 11:13:22 -08:00
xiaolin-vmware e51de7175e Use the with keyword when dealing with file objects.
Change-Id: I3586b00e5c671707c221347fdc542ec28b4db9a9
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/4472
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Bo Gan <ganb@vmware.com>
2017-12-11 16:46:21 -08:00
Alexey Makhalov 0f1fdc4bd5 package builder: host arch agnostic build
Remove hardcoded x86_64 strings.
Installer: support for aarch64 efi boot

Change-Id: Id7b5d978531d801d8b6f390674cb987e169b838a
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3991
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Vinay Kulkarni <kulkarniv@vmware.com>
Reviewed-by: Rui Gu <ruig@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
2017-10-11 00:24:20 -07:00
xiaolin-vmware c7dd4da8d5 installer : check if /etc/resolv.conf exists before copying, remove unused import.
Change-Id: Iff87c0f9a6d84713a5957fa6fde56894df868176
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3973
Reviewed-by: Bo Gan <ganb@vmware.com>
Tested-by: gerrit-photon <photon-checkins@vmware.com>
2017-10-06 10:06:31 -07:00
xiaolin-vmware 0c250142d7 installer:
-- remove unused shebangs.
-- interger division with operator //
-- replace Set with set.
-- replace `` with repr.
-- replace has_key with in

Change-Id: I8ef92b42cb1a4477eb8be23da6a86499a3436876
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3860
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Bo Gan <ganb@vmware.com>
2017-10-03 12:34:52 -07:00
xiaolin-vmware c9711d2f51 Copy /var/log/installer-kickstart.log to target machine after installation. (Bug 1894880)
Change-Id: Ifddc7f7d637d2a070b613b2d5886f4118634fe50
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3247
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Divya Thaluru <dthaluru@vmware.com>
2017-07-14 15:29:16 -07:00
xiaolin-vmware 2f40f1d3de Unbind repo dir if necessary.
Change-Id: Ib751f6e2e2f57efc66de15e8cc7c154d74d37dde
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3172
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Bo Gan <ganb@vmware.com>
2017-07-10 16:49:34 -07:00
xiaolin-vmware 1b11aa2dac Move all kickstart code to function ks_install in file isoInstaller.py.
Change-Id: I5cfae1779b77c161e294fa44d873e2da67b6ed31
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3068
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Divya Thaluru <dthaluru@vmware.com>
2017-07-05 10:00:31 -07:00
xiaolin-vmware d3de51b814 Remove mk-install-package.sh.
Change-Id: Iac1b361ce906ccd52a0e680728ea9b608f9e6bc7
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2901
Reviewed-by: Bo Gan <ganb@vmware.com>
Tested-by: gerrit-photon <photon-checkins@vmware.com>
2017-06-08 17:58:00 -07:00
Bo Gan f5cac19671 fix installer with one rpm transaction
Change-Id: I787450a8404767eefe1abe126b695f95b37c83dd
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2874
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Xiaolin Li <xiaolinl@vmware.com>
2017-06-06 14:01:53 -07:00
Danut Moraru e63361bfdf Kickstart option to eject cdrom or not after installation is done
By default, cdrom is ejected unless "eject_cdrom" : false is present

Change-Id: Ied85c13f5c3761822cfae7113bc1d85919199ac8
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2860
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Xiaolin Li <xiaolinl@vmware.com>
2017-06-05 10:13:40 -07:00