Commit 229508b
committed
hotstack-os: Fix config processing and improve CI compatibility
This commit addresses several issues in the hotstack-os devsetup that
prevent it from running correctly in CI environments:
1. Switch from sed to perl for config file processing
- sed cannot handle multi-line replacement strings (e.g., DNS servers)
- perl's -pe mode properly handles newlines in replacements
- Fixes "unterminated 's' command" errors during config generation
2. Make firewalld configuration optional
- Return success (0) instead of failure (1) when firewalld is not running
- Allows setup to proceed in minimal CI environments without firewalld
3. Add HOTSTACK_CLEANUP_CONFIRM environment variable
- Skip interactive cleanup prompt when set
- Enables automated cleanup in CI pipelines
4. Add HOTSTACK_NO_PROGRESS environment variable
- Disables download progress bars in post-setup.py
- Produces cleaner, more readable CI logs
5. Remove redundant --log-queries from dnsmasq CMD
- Already configured in dnsmasq.conf
- Avoids duplication between config file and container command
These changes make hotstack-os more robust and CI-friendly while
maintaining full functionality for interactive use.
Assisted-By: Claude (claude-sonnet-4-20250514)
Signed-off-by: Harald Jensås <hjensas@redhat.com>1 parent b4d9542 commit 229508b
File tree
5 files changed
+59
-36
lines changed- devsetup/hotstack-os
- configs/dnsmasq
- containerfiles
- scripts
5 files changed
+59
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
133 | 137 | | |
134 | 138 | | |
135 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 18 | | |
27 | 19 | | |
28 | 20 | | |
| |||
48 | 40 | | |
49 | 41 | | |
50 | 42 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
774 | 774 | | |
775 | 775 | | |
776 | 776 | | |
777 | | - | |
778 | | - | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
779 | 789 | | |
780 | 790 | | |
781 | 791 | | |
782 | | - | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
783 | 797 | | |
784 | 798 | | |
785 | 799 | | |
786 | | - | |
787 | | - | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
788 | 818 | | |
789 | 819 | | |
790 | 820 | | |
| |||
983 | 1013 | | |
984 | 1014 | | |
985 | 1015 | | |
986 | | - | |
987 | | - | |
| 1016 | + | |
| 1017 | + | |
988 | 1018 | | |
989 | 1019 | | |
990 | 1020 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
666 | 666 | | |
667 | 667 | | |
668 | 668 | | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
669 | 672 | | |
670 | 673 | | |
671 | 674 | | |
| |||
0 commit comments