Commit Graph

10 Commits

Author SHA1 Message Date
Ben Swartzlander 95f2065167 Add -xe flags to shell scripts
For better debugging, add -xe flags to all the shell
scripts.

Change-Id: Ifb8ceb889c4d20d51a522e6c15d7c715f6d51e46
2017-10-27 13:39:23 -04:00
Ben Swartzlander dca0bd32e5 Add fake sudo script
Manila tests use sudo all over the place and while the only
configured user in the test image is root, it's easier to
fake the sudo binary than to modify test code to know when
to sudo and when to not.

Also remove 2 mkdir calls that are obviated by the new file
getting copied in those directories.

Change-Id: Ib0cbe05130bc617154bf471e2ecc0a78b2bb8377
2017-02-16 16:47:09 +00:00
Ben Swartzlander 530dc3bdba Fix copying on JSON.sh
Correct a copy/paste error

Change-Id: I00baec064be96f6a4954a0704d693b230124259a
2017-01-30 09:22:35 -05:00
Ben Swartzlander 0c98cfee3e Wrap long lines
Fix bashate warning E006 by wrapping long lines.

Also make sure bashate runs on init scripts that don't end
in .sh.

Change-Id: I077a064505e6f11f61c65279a54c9b2430044bf0
2017-01-29 23:56:20 +00:00
Ben Swartzlander 0358d1f175 Conform to bashate standards for control structures
Enable bashate errors E010 and E011 which require "then" and "do"
tokens on the same lines as "if" and "while" respectively.

Change-Id: I4a167530a21ab95d5dbe9f903facc9566a0461e2
2017-01-29 23:56:06 +00:00
Ben Swartzlander 6f370f0608 Convert tabs to spaces
Replace all tabs with 4 spaces, and re-enable bashate
warnings E002 and E003.

Change-Id: I11f3a9ca9b910555e1b1477c52288493f9bb0244
2017-01-29 18:55:19 -05:00
Ben Swartzlander c533026ed7 Support SSH keys from config drive
Add kernel support for IDE CDROM drives, add a package for JSON
parsing, and updating the metadata script to look for SSH keys
on the config drive in addition to the metadata server.

Change-Id: Ic8f065bfd77dd4c533590a023bab8b1d32da1f53
2017-01-28 15:38:30 +00:00
Ben Swartzlander 9d1694b9fd Split out one-time steps into their own script
Clarify the documentation on building
2016-10-19 14:59:38 -04:00
Ben Swartzlander f3ba577269 Fix qcow building steps 2016-10-19 11:50:09 -04:00
Ben Swartzlander 9d92a48629 Initial commit 2016-10-19 11:36:17 -04:00