Skip to content

Commit

Permalink
Ensure pulseaudio in guest also has timer mode disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
sakaki- committed Sep 11, 2019
1 parent ed4d919 commit 7b4e71b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions host-image/usr/sbin/init-container
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ chmod 0440 "${CONTAINER}/etc/sudoers.d/010_at-export"
cp -a "${SOURCE}/etc/sudoers.d/010_libgl-export" "${CONTAINER}/etc/sudoers.d/"
chmod 0440 "${CONTAINER}/etc/sudoers.d/010_libgl-export"

# ensure guest's pulseaudio also in non-timer mode
if [[ -s "${CONTAINER}/etc/pulse/default.pa" ]]; then
sed -i -e 's#^load-module module-udev-detect$#load-module module-udev-detect tsched=0#g' \
"${CONTAINER}/etc/pulse/default.pa"
fi

# finally, call other 'reflect' helpers once, to ensure the host- data
# inside the container is available for its first startup (it is up to
# counterpart services inside the container to actually use this)
Expand Down

0 comments on commit 7b4e71b

Please sign in to comment.