Skip to content

Commit

Permalink
temp fix for #347
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonskie committed May 7, 2024
1 parent 1967e4f commit 917e848
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bosh-stemcell/spec/os_image/ubuntu_noble_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@
bin:x:2:
sys:x:3:
adm:x:4:vcap
tty:x:5:
tty:x:5:syslog
disk:x:6:
lp:x:7:
mail:x:8:
Expand Down Expand Up @@ -492,7 +492,7 @@
bin:*::
sys:*::
adm:*::vcap
tty:*::
tty:*::syslog
disk:*::
lp:*::
mail:*::
Expand Down
5 changes: 5 additions & 0 deletions stemcell_builder/stages/rsyslog_config/apply.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ run_in_bosh_chroot $chroot "
useradd --system --user-group --no-create-home --shell /sbin/nologin syslog || true
usermod -G vcap syslog
"
# syslog needs to be able to write to /dev/console
# see https://github.com/cloudfoundry/bosh-linux-stemcell-builder/issues/347
run_in_bosh_chroot $chroot "
adduser syslog tty
"

# Configure /var/log directory
filenames=( auth.log cloud-init.log daemon.log kern.log syslog cron.log )
Expand Down

0 comments on commit 917e848

Please sign in to comment.