Commit 9d56a79
committed
fix: align 90-cleanup.sh with 90-cleanup-qemu.sh for SSH stability
Key changes:
- Set multi-user.target as default boot target to prevent graphical boot issues
- Move apt-get update/upgrade to after autoremove (matching qemu script order)
- Protect libevent-2.1-7t64 from autoremove (needed by PgBouncer)
- Add journalctl cleanup commands for proper log rotation
- Add fstrim at end to optimize disk
These changes align the AWS AMI cleanup script with the QEMU cleanup script
which has been working. The most critical fix is setting multi-user.target
as default, which ensures the system boots properly for SSH access.1 parent 471933c commit 9d56a79
1 file changed
Lines changed: 20 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
| 45 | + | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
60 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
61 | 71 | | |
62 | 72 | | |
63 | 73 | | |
64 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
65 | 78 | | |
66 | 79 | | |
67 | 80 | | |
68 | 81 | | |
69 | 82 | | |
70 | 83 | | |
71 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
72 | 88 | | |
73 | 89 | | |
74 | 90 | | |
| |||
87 | 103 | | |
88 | 104 | | |
89 | 105 | | |
90 | | - | |
| 106 | + | |
| 107 | + | |
0 commit comments