Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[solved] Portage syncing on its own? How to disable?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
poolshrk
n00b
n00b
User avatar
Posts: 23
Joined: Thu Apr 26, 2007 10:43 am

[solved] Portage syncing on its own? How to disable?

  • Quote

Post by poolshrk » Sat Dec 16, 2017 2:05 am

Hi, I have multiple computers so instead of syncing portage on each one I manually mount /usr/portage as an nfs/sshfs file system.

Recently however I have noticed that all of my computers seem to be automatically syncing portage on their own. This is very annoying. Why/how is this happening and how can I stop it?
Last edited by poolshrk on Sun Dec 17, 2017 12:07 am, edited 2 times in total.
Top
eccerr0r
Watchman
Watchman
Posts: 10239
Joined: Thu Jul 01, 2004 6:51 pm
Location: almost Mile High in the USA
Contact:
Contact eccerr0r
Website

  • Quote

Post by eccerr0r » Sat Dec 16, 2017 2:15 am

Were these fresh installs or did you inherit these computers? My machines do not automatically sync.

Check your crontabs and ensure you or previous owner hadn't automated it.
Intel Core i7 2700K/Radeon Firepro W2100/24GB DDR3/800GB SSD
What am I supposed watching?
Top
poolshrk
n00b
n00b
User avatar
Posts: 23
Joined: Thu Apr 26, 2007 10:43 am

  • Quote

Post by poolshrk » Sat Dec 16, 2017 2:22 am

Thanks for the suggestion.

I briefly checked out the crontabs and didn't see anything. It's possible I accidentally synced the wrong computer (multiple times) but it seems to be happening so often and on multiple different computers that it seems unlikely.

I'll look into it more in depth when I get some free time, but though I would ask here first just in case it could save me some time. Thanks again.
Top
szatox
Advocate
Advocate
Posts: 3858
Joined: Tue Aug 27, 2013 12:35 pm

  • Quote

Post by szatox » Sat Dec 16, 2017 1:22 pm

ps auxwf will print all processes stacked as a tree for your convenience.
You can find the trigger there, unless it's fire, fork and forget sort of trigger that exists immediately, making PID 1 the parent of its orphaned subprocess.

Perhaps running it from cron (or even in a loop in a terminal) would help you nail it.
Also, grep produces different exit codes when it finds a string you're looking for than when it fails, so you have an easy way to find whether or not a particular dump from ps contains the process you're looking for (hint: grep -B7 -A2 -E '[s]ync' )
Top
limn
l33t
l33t
Posts: 997
Joined: Fri May 13, 2005 8:08 pm

  • Quote

Post by limn » Sat Dec 16, 2017 1:33 pm

Do you see

Code: Select all

1513427085:  *** emerge  --sync
in the /var/log/emerge.log on all of the boxes?
Top
Jaglover
Watchman
Watchman
User avatar
Posts: 8291
Joined: Sun May 29, 2005 1:57 am
Location: Saint Amant, Acadiana

  • Quote

Post by Jaglover » Sat Dec 16, 2017 2:56 pm

There can be more than one crontab and there is system crontab. Have you looked at all of them?
My Gentoo installation notes.
Please learn how to denote units correctly!
Top
poolshrk
n00b
n00b
User avatar
Posts: 23
Joined: Thu Apr 26, 2007 10:43 am

  • Quote

Post by poolshrk » Sat Dec 16, 2017 6:45 pm

Hmmm...

I may have found it. The other day I installed lynis (security auditing tool) just to check it out, and I just noticed it automatically installed a crontab in cron.daily:

Code: Select all

#!/bin/sh

/usr/sbin/lynis --checkall --auditor "automated" --cronjob
in the lynis log file I found this:

Code: Select all

2017-12-16 11:10:13 Performing test ID PKGS-7393 (Check for Gentoo vulnerable packages)
2017-12-16 11:10:13 Action: updating portage with emerge-webrsync
2017-12-16 11:10:38 Result: emerge-webrsync finished
2017-12-16 11:10:38 Test: checking if /usr/bin/glsa-check exists
2017-12-16 11:10:38 Result: found /usr/bin/glsa-check
2017-12-16 11:10:38 Test: checking if there are any vulnerable packages
So that appears to be the issue?

Thanks everyone.
Top
eccerr0r
Watchman
Watchman
Posts: 10239
Joined: Thu Jul 01, 2004 6:51 pm
Location: almost Mile High in the USA
Contact:
Contact eccerr0r
Website

  • Quote

Post by eccerr0r » Sat Dec 16, 2017 7:06 pm

Sounds right. I guess all these things are elective after all; I'm not a lynis user.
Intel Core i7 2700K/Radeon Firepro W2100/24GB DDR3/800GB SSD
What am I supposed watching?
Top
poolshrk
n00b
n00b
User avatar
Posts: 23
Joined: Thu Apr 26, 2007 10:43 am

  • Quote

Post by poolshrk » Sun Dec 17, 2017 12:06 am

For others who may run across this issue, it looks like you can disable it by creating the file

/etc/lynis/custom.prf

with the following configuration option

Code: Select all

refresh-repositories=no
Top
Ant P.
Watchman
Watchman
Posts: 6920
Joined: Sat Apr 18, 2009 7:18 pm
Contact:
Contact Ant P.
Website

  • Quote

Post by Ant P. » Sun Dec 17, 2017 8:48 pm

FWIW the correct way to check only for GLSAs (which I'm guessing this software is supposed to do but messed up) is "emaint sync --sync-submodule glsa".
Top
Post Reply

10 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic