Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Commit

Permalink
Merge pull request #59 from zancas/remove_tarball
Browse files Browse the repository at this point in the history
remove tarball and dependent code.
  • Loading branch information
pjbreaux authored Aug 22, 2017
2 parents 618327a + a1037fb commit c4c7dd8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
16 changes: 12 additions & 4 deletions bin/patch-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ function validate_packages() {
}

function validate_inputs() {
if ! [ -f $startup_pkg ]; then
echo "startup file $startup_pkg does not exist"
if ! [ -d $startup_pkg ]; then
echo "startup directory $startup_pkg does not exist"
badusage
fi

Expand Down Expand Up @@ -123,8 +123,16 @@ function get_dev() {
}

function inject_files() {
if [ -f $startup_pkg ]; then
tar -xf $startup_pkg -C /mnt/bigip-config/
if [ -d $startup_pkg ]; then
pushd $startup_pkg
sha256sum startup os-functions/* > sourceshas
tar -vcf - ./* | tar -xf - -C /mnt/bigip-config/
cp -a startup /mnt/bigip-config/startup_from_cp
cp startup /mnt/bigip-config/startup_from_cp_noa
sha256sum /mnt/bigip-config/startup /mnt/bigip-config/os-functions/* > /mnt/bigip-config/posttarsums
ls -la /mnt/bigip-config
ls -la ./*
popd
fi

if $firstboot_file; then
Expand Down
2 changes: 1 addition & 1 deletion f5_image_prep/ve_image_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
DISKFORMAT = 'qcow2'
PATCHTOOL = '/home/imageprep/f5-openstack-image-prep/bin/patch-image.sh'
STARTUPSCRIPTPKG = \
'/home/imageprep/f5-openstack-image-prep/lib/f5_image_prep/startup.tar'
'/home/imageprep/f5-openstack-image-prep/lib/f5_image_prep/'
WORKDIR = os.environ['HOME']


Expand Down
Binary file removed lib/f5_image_prep/startup.tar
Binary file not shown.

0 comments on commit c4c7dd8

Please sign in to comment.