Skip to content

Commit

Permalink
Re-inserted a rm statement for firstboot file
Browse files Browse the repository at this point in the history
Issues:
Fixes F5Networks#75

Problem:
* The firstboot is given to the BIG-IP from onboarding
* After the initial, firstboot init cycle, this file should be removed
  * Without it's removal config collisions could occur
  * Without it's removal reboot cycles take longer

Analysis:
* This inserts the removal statement after all first boot inits

Tests:
None.  This is a startup scripting for onboarding.  While we have some
tests in regards to this, it would be very difficult to tell whether or
not the first boot init was done twice after a reboot.
  • Loading branch information
sorensF5 committed Jul 26, 2017
1 parent 630b598 commit 1c41271
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/f5_image_prep/startup
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,11 @@ function main() {
log "Cannot run OpenStack auto-configuration on non-VE platforms, quitting..."
fi

# Delete the /config/firstboot file, we have completed initial setup
if [[ ${IS_FIRST_BOOT} == "true" ]]; then
rm -f $FIRST_BOOT_FILE
fi

wait_condition_notify

cleanup_user_data
Expand Down

0 comments on commit 1c41271

Please sign in to comment.