This is needed to produce a more unified ramdisk that can be
used for ansible-deploy with minimal rebuild
changes include:
- deprecate ENABLE_SSH var, split it to INSTALL_SSH and AUTHORIZE_SSH
- INSTALL_SSH (defaults to true) installs and configures OpenSSH
server
- AUTHORIZE_SSH (defaults to false) adds SSH_PUBLIC_KEY as authorized
for 'tc' user and makes some other changes
- symlink all from '/usr/local/(s)bin' to '/usr/(s)bin'
- adds a new script 'add-ssh-tinyipa' and 'addssh' make target
- this effectively does those parts that finalise-tinyipa.sh script
would do when AUTHORIZE_SSH is enabled
- this make target will be used in gate jobs for ansible deploy
interface
Change-Id: Ib6fcd5bbd7e79b9df83b660441dd685b1b17be62
Related-Bug: #1526308
45 lines
861 B
Makefile
45 lines
861 B
Makefile
.PHONY: default all dependencies build finalise addssh iso clean clean_build clean_iso
|
|
default: dependencies build finalise instance-images
|
|
|
|
all: dependencies build finalise iso instance-images
|
|
|
|
dependencies:
|
|
./install-deps.sh
|
|
|
|
build:
|
|
./build-tinyipa.sh
|
|
|
|
finalise:
|
|
./finalise-tinyipa.sh
|
|
|
|
addssh:
|
|
./add-ssh-tinyipa.sh
|
|
|
|
iso:
|
|
./build-iso.sh
|
|
|
|
instance-images:
|
|
./build-instance-images.sh
|
|
|
|
clean: clean_build clean_iso
|
|
|
|
clean_build:
|
|
sudo -v
|
|
sudo rm -rf tinyipabuild
|
|
sudo rm -rf tinyipafinal
|
|
rm -f *tinyipa*.vmlinuz
|
|
rm -f *tinyipa*.gz
|
|
rm -f *tinyipa*.sha256
|
|
rm -f build_files/corepure64.gz
|
|
rm -f build_files/vmlinuz64
|
|
rm -f build_files/*.tcz
|
|
rm -f build_files/*.tcz.*
|
|
rm -f tiny-instance-part*.img
|
|
rm -f tiny-instance-uec*.tar.gz
|
|
|
|
clean_iso:
|
|
rm -rf newiso
|
|
rm -f build_files/syslinux-4.06.tar.gz
|
|
rm -rf build_files/syslinux-4.06
|
|
rm -f tinyipa.iso
|