Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Aug 2, 2025. It is now read-only.
Open
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
8493f95
Gentoo: Add initial support for the core target.
Mar 21, 2017
30e634a
Gentoo: Add support for the audio target.
Mar 21, 2017
7a18dbd
Gentoo: Make portage rebuild packages if the use flags have changed.
Mar 21, 2017
48d0585
Gentoo: Add support for the cli-extra target.
Mar 21, 2017
a9d7b84
Gentoo: Add support for the xorg and x11-common targets.
Mar 21, 2017
06f3ccc
Gentoo: Fix sudo duplication and group GID.
Mar 21, 2017
d191fd2
Gentoo: Support the gtk-extra target.
Mar 22, 2017
96cc337
Gentoo: Update the portage tree during a core update.
Mar 22, 2017
5eaeb25
Gentoo: Add support for the xfce and xfce-desktop targets.
Mar 22, 2017
53ce0cb
Gentoo: Don't call install when there's nothing passed to install.
Mar 22, 2017
495a933
Gentoo: Add support for extension target.
Mar 22, 2017
c07cc92
Gentoo: Add support for enlightenment.
Mar 22, 2017
4dcbe08
Gentoo: Add the ability to keyword packages and accept licenses.
Mar 23, 2017
2db07c6
Gentoo: Add support for the chrome targets.
Mar 23, 2017
a6ed7f7
Gentoo: Add support for lxde target.
Mar 23, 2017
835ccde
Gentoo: Add support for the xiwi target.
Mar 23, 2017
40a0601
Gentoo: Remove the suid bit to allow LD_PRELOAD for libcroutonfreon.
Mar 23, 2017
0ba9260
Gentoo: Support use expand variables for simultaneous xiwi and xorg.
Mar 24, 2017
a026730
Gentoo: Add support for RSYNC_PROXY.
Mar 24, 2017
acbc6a2
Gentoo: Add support for MIRROR, remove debugging code.
Mar 25, 2017
28e09e8
Gentoo: Use CHOST from make.conf to determine architecture.
Mar 25, 2017
fd765fb
Gentoo: Simplify prepare functions.
Mar 25, 2017
2051ba1
Gentoo: Simplify changes to prepare.sh.
Mar 25, 2017
70a8ce7
Gentoo: Simplify packages for core target. Add dbus to global use flags.
Mar 25, 2017
a875747
Gentoo: Clean up audio target changes, remove redundant check.
Mar 25, 2017
ddabc68
Gentoo: Remove extra dbus use flag setting from cli-extra.
Mar 25, 2017
27cce46
Gentoo: Remove unused X utils from extension target.
Mar 25, 2017
8f71234
Gentoo: Simplify the gtk-extra target's install logic.
Mar 25, 2017
9bc8bef
Gentoo: Fix lxde-desktop target, remove lightdm.
Mar 25, 2017
fafe25e
Gentoo: Fix use flags, clean up package installation for X targets.
Mar 25, 2017
d9b3507
Gentoo: Update cpu flag code for cpuid2cflags >=2.
Mar 26, 2017
c9379bd
Gentoo: Add ability to turn off use flags in prepare.
Mar 26, 2017
6b58f4f
Gentoo: Make sure to trigger a world update in core.
Mar 26, 2017
4d0b883
Gentoo: Add support for other arches, remove temporary files.
Mar 31, 2017
f90cc28
Gentoo: Patch xf86-video-dummy and xf86-video-intel before the build.
Mar 31, 2017
85f1b94
Gentoo: Change xorg input targets to remove unused targets.
Mar 30, 2017
2ef3ccf
Gentoo: Make Gentoo update chrome using the package manager.
Mar 30, 2017
6f82d65
Let the user change the /tmp directory for low memory devices.
Mar 30, 2017
b430183
Gentoo: Simplify audio dependency code.
Mar 31, 2017
5ef61c3
Gentoo: Simplify creating the sudo group in core.
Mar 31, 2017
69ed164
Gentoo: Add support for extra arm targets, fix ARCH variable usage.
Apr 2, 2017
ec2bbfb
Gentoo: Rework intel and fbdev video_cards use expand.
Apr 2, 2017
821d21d
Gentoo: Add note for users installing *-desktop targets.
Apr 2, 2017
9d5e783
Gentoo: Adjust CPU use expand code to be more reliable.
Apr 2, 2017
a61e162
Gentoo: Set flags earlier to prevent recompiles. Add i915, i965 to VI…
Apr 3, 2017
fb56dff
Gentoo: Support switching profiles. Add support for kde and gnome tar…
Apr 3, 2017
8928954
Gentoo: Add kodi support and make the xbmc package work with kodi.
Apr 3, 2017
723dd74
Gentoo: Update copyright year for all of the files I've touched.
Apr 3, 2017
5655d86
Gentoo: Fix issue where disabled flags would cause prepare script to …
Apr 6, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Gentoo: Fix sudo duplication and group GID.
  • Loading branch information
Joseph Jezak committed Mar 23, 2017
commit 06f3cccc0ce9294ecfccfd84c0ba913476ded133
7 changes: 5 additions & 2 deletions targets/core
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,12 @@ fi
install --minimal ${CORE_pkgs}

# Gentoo doesn't have a group for sudo, add it now and allow those users to use sudo
# Debian uses GID 28 for sudo
if [ "${DISTROAKA:-"$DISTRO"}" = 'gentoo' ]; then
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need this test? Since other distros have a sudo group, the test below will fail and the group won't be created?

groupadd sudo
echo "%sudo ALL=(ALL) ALL" >> /etc/sudoers.d/crouton-group
if [ -z `getent group sudo | cut -f1 -d:` ]; then
groupadd -g 28 sudo
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it's necessary to use gid 28 specifically?

fi
echo "%sudo ALL=(ALL) ALL" > /etc/sudoers.d/crouton-group
fi

if [ "${DISTROAKA:-"$DISTRO"}" = 'debian' ]; then
Expand Down