Skip to content

Commit b7d5652

Browse files
hanwen-clusterhanwen-pcluste
authored andcommitted
Move LT bootstrap log under /dev/ttyS0 instead of /dev/console
RedHat 9 does not report logs in the console when they are logged under /dev/console. While it does when they are sent to /dev/ttyS0. Also the other OS work with this new configuration Signed-off-by: Hanwen <[email protected]>
1 parent acc99c6 commit b7d5652

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cli/src/pcluster/resources/compute_node/user_data.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ repo_upgrade: none
4949
datasource_list: [ Ec2, None ]
5050

5151
output:
52-
all: "| tee -a /var/log/cloud-init-output.log | logger -t user-data -s 2>/dev/console"
52+
all: "| tee -a /var/log/cloud-init-output.log | logger -t user-data -s 2>/dev/ttyS0"
5353
write_files:
5454
- path: /tmp/bootstrap.sh
5555
permissions: '0744'

cli/src/pcluster/resources/login_node/user_data.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ repo_upgrade: none
4646
datasource_list: [ Ec2, None ]
4747

4848
output:
49-
all: "| tee -a /var/log/cloud-init-output.log | logger -t user-data -s 2>/dev/console"
49+
all: "| tee -a /var/log/cloud-init-output.log | logger -t user-data -s 2>/dev/ttyS0"
5050
write_files:
5151
- path: /tmp/bootstrap.sh
5252
permissions: '0744'

0 commit comments

Comments
 (0)