mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 06:31:18 +02:00
Allow chronos user to renice back to 0
allow the chronos user to renice processes Review URL: http://codereview.chromium.org/518049
This commit is contained in:
parent
1830686c8f
commit
9d59051b65
@ -84,6 +84,10 @@ cat <<EOF | sudo dd of="${ROOT_FS_DIR}/etc/sudoers" conv=notrunc oflag=append
|
|||||||
$ADD_USER ALL=(ALL) ALL
|
$ADD_USER ALL=(ALL) ALL
|
||||||
EOF
|
EOF
|
||||||
sudo chmod 0440 "${ROOT_FS_DIR}/etc/sudoers"
|
sudo chmod 0440 "${ROOT_FS_DIR}/etc/sudoers"
|
||||||
|
echo "# Allow chronos user to renice processes so that chrome will adjust tab priorities" | \
|
||||||
|
sudo dd of="${ROOT_FS_DIR}/etc/security/limits.conf" conv=notrunc oflag=append
|
||||||
|
echo "chronos hard nice 0" | \
|
||||||
|
sudo dd of="${ROOT_FS_DIR}/etc/security/limits.conf" conv=notrunc oflag=append
|
||||||
|
|
||||||
# Set CHROMEOS_VERSION_DESCRIPTION here (uses vars set in chromeos_version.sh)
|
# Set CHROMEOS_VERSION_DESCRIPTION here (uses vars set in chromeos_version.sh)
|
||||||
# Was removed from chromeos_version.sh which can also be run outside of chroot
|
# Was removed from chromeos_version.sh which can also be run outside of chroot
|
||||||
|
Loading…
x
Reference in New Issue
Block a user