Code: Select all
# hwclock --systohcIf you use something like that, I would recommend to set clock_systohc=YES.codefossa wrote:Just a closing to the issue I brought up. I use chrony so my system clock was fine
You mentioned that your hardware clock is in local time; this is not recommended for a reason. Maybe this was your first boot after a DST change (or maybe this issue occurs since the latest DST change)?Not really sure what caused it to be a bit funky after the upgrade
Thanks for the advice. I checked that out and went ahead and set it.mv wrote:If you use something like that, I would recommend to set clock_systohc=YES.
The reason I went with local is because I have Windows dual booted and the config suggests using local in that case. I never actually use the Windows install, but like to keep it as an option in case I really need it for work. I'll show below what I see in the hwclock config.mv wrote:You mentioned that your hardware clock is in local time; this is not recommended for a reason. Maybe this was your first boot after a DST change (or maybe this issue occurs since the latest DST change)?
Code: Select all
# Set CLOCK to "UTC" if your Hardware Clock is set to UTC (also known as
# Greenwich Mean Time). If that clock is set to the local time, then
# set CLOCK to "local". Note that if you dual boot with Windows, then
# you should set it to "local".
clock="local"The solution to this problem is to mask sys-fs/eudev-3.2.11-r2 and freeze eudev at version 3.2.11-r1.Naib wrote: It doesn't seem as simple as that...
I use eudev but this new package is blocking
Code: Select all
[blocks B ] sys-apps/systemd-utils[udev] ("sys-apps/systemd-utils[udev]" is soft blocking sys-fs/eudev-3.2.11-r2) [blocks B ] sys-fs/eudev ("sys-fs/eudev" is soft blocking sys-apps/systemd-utils-250.4-r1)
No, for eudev users the solution is just to disable USE=udev on systemd-utils, or else it's the equivalent of installing <sys-fs/udev-250 with sys-fs/eudevGatsby wrote:The solution to this problem is to mask sys-fs/eudev-3.2.11-r2 and freeze eudev at version 3.2.11-r1.Naib wrote:It doesn't seem as simple as that...
I use eudev but this new package is blockingCode: Select all
[blocks B ] sys-apps/systemd-utils[udev] ("sys-apps/systemd-utils[udev]" is soft blocking sys-fs/eudev-3.2.11-r2) [blocks B ] sys-fs/eudev ("sys-fs/eudev" is soft blocking sys-apps/systemd-utils-250.4-r1)
O.k. .. solution for people like me, using openrc-0.17, virtual/libudev-232-r3 and virtual/udev-217.Ionen wrote:No, solution is just to disable USE=udev on systemd-utils, or else it's the equivalent of installing <sys-fs/udev-250 with sys-fs/eudevGatsby wrote:The solution to this problem is to mask sys-fs/eudev-3.2.11-r2 and freeze eudev at version 3.2.11-r1.Naib wrote:It doesn't seem as simple as that...
I use eudev but this new package is blockingCode: Select all
[blocks B ] sys-apps/systemd-utils[udev] ("sys-apps/systemd-utils[udev]" is soft blocking sys-fs/eudev-3.2.11-r2) [blocks B ] sys-fs/eudev ("sys-fs/eudev" is soft blocking sys-apps/systemd-utils-250.4-r1)
Thank you for taking the time to help out. I've gone ahead and changed it to UTC and made the change in Windows registry. I'll link that below just in case anyone ends up here in the future.Hu wrote:Historically, Windows kept the hardware clock in local time for compatibility with earlier versions of Windows, which did it for compatibility with MS-DOS. From that, users who dual-booted with affected Windows installations needed to have Linux keep the clock in local time too. Recent versions of Windows finally introduced a registry knob that can be used to keep the system clock in UTC.
And for... mdev users ?Ionen wrote:No, for eudev users the solution is just to disable USE=udev on systemd-utils, or else it's the equivalent of installing <sys-fs/udev-250 with sys-fs/eudev
Code: Select all
# egrep -r "systemd|udev|tmpfiles" /etc/portage
/etc/portage/package.mask/opentmpfiles:sys-apps/systemd-tmpfiles
/etc/portage/package.mask/opentmpfiles:-sys-apps/opentmpfiles
/etc/portage/package.mask/udev:sys-fs/eudev
/etc/portage/package.mask/udev:sys-apps/systemd
/etc/portage/package.mask/udev:sys-fs/udev
/etc/portage/package.mask/udev:virtual/udev
/etc/portage/make.conf: -systemd -systemd-units -tls-heartbeat -tmpfiles -udev -webstart"
/etc/portage/make.conf:INSTALL_MASK="${INSTALL_MASK} /lib/systemd /lib64/systemd /usr/lib/systemd /usr/lib64/systemd /etc/systemd"
# emerge -pvuDNt world
(snip)
[nomerge ] virtual/man-0-r4::gentoo
[nomerge ] sys-apps/man-db-2.10.2-r1::gentoo USE="manpager nls seccomp zlib (-selinux) -static-libs"
[ebuild U ] virtual/tmpfiles-0-r3::gentoo [0-r1::gentoo] 0 KiB
[ebuild N ] sys-apps/systemd-utils-250.6::gentoo USE="acl kmod (split-usr) tmpfiles -boot (-selinux) -sysusers -test -udev" 10 950 KiB
(snip)
The following USE changes are necessary to proceed:
(see "package.use" in the portage(5) man page for more details)
# required by virtual/tmpfiles-0-r3::gentoo
# required by www-servers/apache-2.4.53::gentoo
# required by @selected
# required by @world (argument)
>=sys-apps/systemd-utils-250.6 tmpfilesYes, anyone who uses a *dev other than systemd-udevd should either:Syl20 wrote:And for... mdev users ?Ionen wrote:No, for eudev users the solution is just to disable USE=udev on systemd-utils, or else it's the equivalent of installing <sys-fs/udev-250 with sys-fs/eudev
You should replace this with either:Syl20 wrote:Code: Select all
# egrep -r "systemd|udev|tmpfiles" /etc/portage /etc/portage/package.mask/opentmpfiles:sys-apps/systemd-tmpfiles
Code: Select all
sys-apps/systemd-utils tmpfilesCode: Select all
# Disable ALL systemd utilities:
# - systemd-udevd
# - systemd-tmpfiles
# - systemd
sys-apps/systemd-utilsThese are now obsolete and can be removed.Syl20 wrote:Code: Select all
/etc/portage/package.mask/udev:sys-apps/systemd /etc/portage/package.mask/udev:sys-fs/udev
According to that output, virtual/tmpfiles-0-r3 requires sys-apps/systemd-utils[tmpfiles]. You must enable that flag, or not install this version of virtual/tmpfiles-0-r3.Syl20 wrote:Code: Select all
# emerge -pvuDNt world The following USE changes are necessary to proceed: (see "package.use" in the portage(5) man page for more details) # required by virtual/tmpfiles-0-r3::gentoo # required by www-servers/apache-2.4.53::gentoo # required by @selected # required by @world (argument) >=sys-apps/systemd-utils-250.6 tmpfiles
Then you must undertake the ever-increasing maintenance burden of retaining it while upstream moves away.Syl20 wrote:Yes, I still "use" opentmpfiles.
Indeed. That's why, a long time ago, I already disabled the "udev" USE flag (globally), and "tmpfiles" (globally too). But portage persists again and again, it really wants to install systemd-utils.Hu wrote:As an mdev user, you probably want the second choice.
Done. But :Hu wrote:Code: Select all
# Disable ALL systemd utilities: # - systemd-udevd # - systemd-tmpfiles # - systemd sys-apps/systemd-utils
Code: Select all
# emerge -pvuDN world
These are the packages that would be merged, in order:
Calculating dependencies... done!
Total: 0 packages, Size of downloads: 0 KiB
!!! The following update has been skipped due to unsatisfied dependencies:
virtual/tmpfiles:0
selected: (virtual/tmpfiles-0-r1:0/0::gentoo, installed)
skipped: (virtual/tmpfiles-0-r3:0/0::gentoo, ebuild scheduled for merge) (see unsatisfied dependency below)
!!! All ebuilds that could satisfy "sys-apps/systemd-utils[tmpfiles]" have been masked.
!!! One of the following masked packages is required to complete your request:
- sys-apps/systemd-utils-250.6::gentoo (masked by: package.mask)
- sys-apps/systemd-utils-250.5::gentoo (masked by: package.mask, ~amd64 keyword)
- sys-apps/systemd-utils-250.4-r3::gentoo (masked by: package.mask, ~amd64 keyword)
(dependency required by "virtual/tmpfiles-0-r3::gentoo" [ebuild])
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.I'm not sure :Hu wrote:These are now obsolete and can be removed.Syl20 wrote:Code: Select all
/etc/portage/package.mask/udev:sys-apps/systemd /etc/portage/package.mask/udev:sys-fs/udev
Code: Select all
# cat /etc/portage/package.mask/udev
sys-fs/eudev
#sys-apps/systemd
#sys-fs/udev
virtual/udev
# emerge -pvuDN world
These are the packages that would be merged, in order:
Calculating dependencies... done!
The following USE changes are necessary to proceed:
(see "package.use" in the portage(5) man page for more details)
# required by sys-apps/systemd-250.6::gentoo
# required by sys-apps/gentoo-systemd-integration-9::gentoo
>=sys-apps/dbus-1.12.22-r1 systemd
* In order to avoid wasting time, backtracking has terminated early
* due to the above autounmask change(s). The --autounmask-backtrack=y
* option can be used to force further backtracking, but there is no
* guarantee that it will produce a solution.
!!! All ebuilds that could satisfy ">=virtual/udev-217" have been masked.
!!! One of the following masked packages is required to complete your request:
- virtual/udev-217-r5::gentoo (masked by: package.mask)
/etc/portage/package.mask/udev:
#sys-apps/systemd
#sys-fs/udev
- virtual/udev-217-r3::gentoo (masked by: package.mask)
(dependency required by "sys-fs/udev-init-scripts-34::gentoo" [ebuild])
(dependency required by "sys-apps/systemd-250.6::gentoo" [ebuild])
(dependency required by "sys-apps/dbus-1.12.22-r1::gentoo[systemd]" [ebuild])
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.Yes, again. Another package to freeze and another ebuild to move into my local repo, because 1/ too many packages depend on virtual/tmpfiles to simply remove it, and 2/ there are no alternatives. Gentoo is about choice...Hu wrote:According to that output, virtual/tmpfiles-0-r3 requires sys-apps/systemd-utils[tmpfiles]. You must enable that flag, or not install this version of virtual/tmpfiles-0-r3.
I'm ready to assume that. But here, I also have to continuously fight against some parts of the Gentoo maintainers' work, because I don't like _their_ vision of _my_ systems. If it ain't broke, don't fix it.Hu wrote:Then you must undertake the ever-increasing maintenance burden of retaining it while upstream moves away.
Code: Select all
# echo "virtual/tmpfiles-9999" >> /etc/portage/profile/package.provided
# emerge -avC virtual/tmpfiles
* This action can remove important packages! In order to be safer, use
* `emerge -pv --depclean <atom>` to check for reverse dependencies before
* removing packages.
>>> These are the packages that would be unmerged:
virtual/tmpfiles
selected: 0-r1
protected: none
omitted: none
All selected packages: =virtual/tmpfiles-0-r1
>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.
Would you like to unmerge these packages? [Yes/No]
>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3 2 1
>>> Unmerging (1 of 1) virtual/tmpfiles-0-r1...
No package files given... Grabbing a set.
>>> Regenerating /etc/ld.so.cache...
* GNU info directory index is up-to-date.
# emerge -avuDN world
These are the packages that would be merged, in order:
Calculating dependencies... done!
Total: 0 packages, Size of downloads: 0 KiB
Nothing to merge; quitting.I was mistaken here. I should not have listed systemd as a package that would be disabled by this mask. I should have written systemd-boot. Fortunately, as a comment, this mistake has little practical impact.Hu wrote:Code: Select all
# Disable ALL systemd utilities: # - systemd-udevd # - systemd-tmpfiles # - systemd sys-apps/systemd-utils
Right. As I noted above, virtual/tmpfiles-0-r3 requires sys-apps/systemd-utils, so you will need to replace or avoid it.Syl20 wrote:Done. But :Code: Select all
# emerge -pvuDN world !!! One of the following masked packages is required to complete your request: - sys-apps/systemd-utils-250.6::gentoo (masked by: package.mask) (dependency required by "virtual/tmpfiles-0-r3::gentoo" [ebuild])
I was wrong. Keep sys-apps/systemd uncommented in the mask file.Syl20 wrote:I'm not sure :Code: Select all
# cat /etc/portage/package.mask/udev #sys-apps/systemd
Gentoo tries to provide choice where practical. The decisions of upstream projects to rely on a tmpfiles provider, and the lack of choices for alternative tmpfiles providers, limit what choices the Gentoo maintainers can offer you. As has been stated elsewhere, if there were a tmpfiles provider that was broadly compatible with the format used by various upstream projects, Gentoo could offer it. There is no such provider. As far as I know, there are three providers:Syl20 wrote:Yes, again. Another package to freeze and another ebuild to move into my local repo, because 1/ too many packages depend on virtual/tmpfiles to simply remove it, and 2/ there are no alternatives. Gentoo is about choice...
Except it is broken, because upstream keeps breaking things. Gentoo is just passing through the problems caused by upstream. If upstream projects treated tmpfiles as optional instead of mandatory, then the dependency on virtual/tmpfiles could be optional. If systemd upstream didn't make it so painful to manage patching their extracted tmpfiles processor, this thread wouldn't exist.Syl20 wrote:I'm ready to assume that. But here, I also have to continuously fight against some parts of the Gentoo maintainers' work, because I don't like _their_ vision of _my_ systems. If it ain't broke, don't fix it.
OK. Indeed, that doesn't change anything here.Hu wrote:I should have written systemd-boot. Fortunately, as a comment, this mistake has little practical impact.
I understand Gentoo's choice to not support opentmpfiles, as upstream didn't maintain it anymore. But... opentmpfiles works. Correct me if I'm wrong, but the "security breach" that makes Gentoo maintainers abandon opentmpfiles exists only if a (really) stupid sysadmin hijacks it to autocreate directories writable by a human user.Hu wrote:Except it is broken, because upstream keeps breaking things.
Obvious. And if everybody uses such a tool only for its main usage, this is not a problem.Hu wrote:If upstream projects treated tmpfiles as optional instead of mandatory, then the dependency on virtual/tmpfiles could be optional.
If systemd upstream didn't make systemd so huge, so complicated, so freaky, so... (add as many swearwords as you want) , and if Redhat didn't make it so unavoidable, this forum database would take up half of its size. Another reason to make this... thing as optional as possible, no ?Hu wrote:If systemd upstream didn't make it so painful to manage patching their extracted tmpfiles processor, this thread wouldn't exist.
Even disregarding security, opentmpfiles only works partially. With no maintenance it doesn't support newer tmpfiles options properly and you get bugs like:Syl20 wrote:I understand Gentoo's choice to not support opentmpfiles, as upstream didn't maintain it anymore. But... opentmpfiles works.
As discussed at length in a thread similar to this one, the problem is that the opentmpfiles specification permits upstream projects to write a configuration file that opentmpfiles will process in an unsafe way, and systemd-tmpfiles will process in a safe way. The people who allege this further allege that it is not trivial to validate which configuration files were written safely, so it is not feasible to expect the Gentoo maintainers to flag unsafe files. The only way to use opentmpfiles safely is to INSTALL_MASK out every configuration file that you have not reviewed for safety.Syl20 wrote:I understand Gentoo's choice to not support opentmpfiles, as upstream didn't maintain it anymore. But... opentmpfiles works. Correct me if I'm wrong, but the "security breach" that makes Gentoo maintainers abandon opentmpfiles exists only if a (really) stupid sysadmin hijacks it to autocreate directories writable by a human user.
So, for the vast majority of the sysadmins, opentmpfiles is sufficient.
This was also discussed in that other thread. The Gentoo project cannot in good conscience distribute a program that its own maintainer claims has an unfixable security problem. If opentmpfiles is not distributed in ::gentoo, then it is difficult to have virtual/tmpfiles permit it as a provider.Syl20 wrote:And so, instead of permitting the existing to... just... keep going (with a notice to the users that opentmpfiles is not maintained anymore), why Gentoo maintainers spend so much time and energy to force everybody to switch to the "dark side" ? Maintainers, please, give us a break.
Absolutely. I expect many people look forward to a volunteer stepping up to make tmpfiles support more optional than it is today. None of the existing Gentoo maintainers has publicly declared an intent to be such a volunteer.Syl20 wrote:Another reason to make this... thing as optional as possible, no ?
Code: Select all
[ebuild U ] virtual/libudev-232-r7 [232-r5]
[ebuild N ] sys-apps/systemd-utils-250.6 USE="acl kmod (split-usr) tmpfiles udev -boot (-selinux) -sysusers -test" ABI_X86="(64) -32 (-x32)"
[uninstall ] sys-fs/udev-249.6-r2
[blocks b ] <sys-fs/udev-250 ("<sys-fs/udev-250" is soft blocking sys-apps/systemd-utils-250.6)
[ebuild U ] virtual/udev-217-r5 [217-r3]
[ebuild U ] sys-apps/systemd-tmpfiles-250 [249.9]
[blocks b ] <sys-apps/systemd-tmpfiles-250 ("<sys-apps/systemd-tmpfiles-250" is soft blocking sys-apps/systemd-utils-250.6)
[ebuild U ] virtual/tmpfiles-0-r3 [0-r1]Code: Select all
# tail sys-apps:systemd-utils-250.6:20220531-175512.log
/lib/udev/v4l_id
/lib64/libudev.so.1.7.3
* Adding 'systemd-tmpfiles-setup-dev' service to the 'sysinit' runlevel [ ok ]
* Adding 'systemd-tmpfiles-setup' service to the 'boot' runlevel ... [ ok ]
* Updating hwdb ... [ ok ]
* Running udev control --reload for reloading rules and databases ... [ ok ]