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

remove tarball and dependent code. #59

Merged
merged 1 commit into from
Aug 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these necessary? Are they used? Or is this just a test?

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.