Skip to content

Latest commit

 

History

History
62 lines (61 loc) · 2.8 KB

README_scripts.md

File metadata and controls

62 lines (61 loc) · 2.8 KB

Scripts in Tool-set

The following scripts are part of this tool-set. The scripts are listed in the order to be executed. Execution of all scripts is required to successfully create an AMI:

DiskSetup.sh Configure attached EBS into target partitioning-state. Honors the flags:
   -b|--bootlabel: FS-label applied to '/boot' filesystem
   -d|--disk: dev-path to disk to be partitioned
   -r|--rootlabel: FS-label to apply to '/' filesystem (no LVM in use)
   -v|--vgname: LVM2 Volume-Group name for root volumes
Note: the "-r" and "-v" options are mutually exclusive
MkChrootTree.sh Setup/mount chroot'ed volumes/partitions
   Argument 1: dev-path to target disk
MkTabs.sh Setup chroot's `/etc/fstab` file
ChrootBuild.sh Install initial, minimal RPM-set into chroot
AWScliSetup.sh Install AWS utilities (scripting tools and optimized drivers for HVM instances)
   Argument 1 (optional): root-URI path to site's private AWS CLI bundle-installer. Defaults to: https://s3.amazonaws.com/aws-cli
   Argument 2 (optional): path to site's private EPEL repository definition file. Defaults to: https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-7.noarch.rpm
Insert local customizations, here. If deploying to a disconnected network (e.g., an isolated VPC) or network using private/customized yum repos, run any repo-setup scripts, here.
ChrootCfg.sh Perform supplementary configuration of components within ${CHROOT}
GrubSetup.sh Configures GRUB2 to target the root LVM2 volume-group and installs requisite bootblock into the MBR.
   Argument 1: device-path containing root volume-group
NetSet.sh Configure AMI to use DHCP for IP address management
CleanChroot.sh Do some file cleanup...
PreRelabel.sh Do SELinux auto-relabel prior to taking the snapshot. Obviates need for boot-time relabel operation.
Umount.sh Dismount and deactivate the chroot EBS