Natanael Copa
000f41a48b
Add .editorconfig and replace spaces with tabs
2023-05-19 04:13:16 +00:00
Natanael Copa
b63ffb71d0
Refactor imds tests and add tests for azure, gcp and oci
2023-05-18 13:25:27 +00:00
Jake Buchholz Göktürk
badf0f65d1
Fix UserData Script chmod, etc.
2023-05-15 01:33:57 +00:00
Jake Buchholz Göktürk
bc6edeeaa5
install user-data handlers, tweak logging
2023-05-13 22:05:58 +00:00
Natanael Copa
d1ed0c29e3
Make init__create_default_user return success
...
We should return success even if /etc/doas.d is missing
fixes https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud/-/issues/38
2023-05-08 12:19:11 +02:00
Jake Buchholz Göktürk
4ccc16f18f
Enable sshd & Source UserData Handler
2023-05-08 04:41:41 +00:00
Jake Buchholz Göktürk
4f9386bb94
Add "create_default_user" Init Action
2023-05-08 02:37:54 +00:00
Jake Buchholz Göktürk
ec139644a1
Set Default interfaces
2023-05-07 23:49:50 +00:00
Jake Buchholz Göktürk
58ac2108cd
Fixes for tiny-cloud Wrapper
...
* switch from phase functions to variables containing list of actions
* init actions prefixed with 'init__'
* refine output during init
* add syslog entries
* add --setup for putting init scripts in the right runlevel
2023-05-03 02:11:01 +00:00
Jake Buchholz Göktürk
81869cefcc
Consolidate init functionality in /sbin/tiny-cloud
2023-04-30 03:37:11 +00:00
Natanael Copa
38cbdee6a2
Return failure if any of install_modules fails
...
Add test to verify that install_modules can be skipped and that
install_modules returns failure if it fails to update mdev.conf.
2023-03-09 11:47:34 +01:00
Natanael Copa
091af053c5
Use printf for skip_action
...
printf is posix compatible and works with all shell. echo -n does not
work with yash and is not posix compatible.
Add test for skipping expand_root
2023-03-09 11:47:34 +01:00
Natanael Copa
a626e694c6
Refactor expand_root
...
Simplify it a bit.
- use awk /proc/mounts instead of busybox mountpoint
- use sysfs to find partition and volume. This is more robust
- add tests for it
2023-03-09 11:47:34 +01:00