Forums

Skip to content

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

error updating systemd cgroup-hybrid SOLVED

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
mlybarger
Guru
Guru
User avatar
Posts: 482
Joined: Wed Sep 04, 2002 1:03 am

error updating systemd cgroup-hybrid SOLVED

  • Quote

Post by mlybarger » Fri Nov 15, 2024 6:24 pm

i have an error updating my world, the systemd tells me that it doesn't like this use flag. i don't know that i ever set or used this flag.

how can i resolve this?

Code: Select all

 * Package:    sys-apps/systemd-256.7:0/2
 * Repository: gentoo
 * Maintainer: systemd@gentoo.org
 * USE:        abi_x86_64 acl amd64 bpf cgroup-hybrid curl dns-over-tls elibc_glibc gcrypt kernel-install kernel_linux kmod lz4 openssl pam pcre policykit python_single_target_python3_11 resolvconf seccomp sysv-utils zstd
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * This system appears to be booted with the 'hybrid' cgroup layout.
 * This layout obsolete and is disabled in systemd.
 * Disable the 'cgroup-hybrid' USE flag.
 * Rebuild any initramfs images after rebuilding systemd.
 * ERROR: sys-apps/systemd-256.7::gentoo failed (pretend phase):
 *   cgroup-hybrid is no longer supported
 * 
Last edited by mlybarger on Fri Nov 15, 2024 9:54 pm, edited 1 time in total.
Top
grknight
Retired Dev
Retired Dev
Posts: 2565
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Fri Nov 15, 2024 7:49 pm

mlybarger wrote:how can i resolve this?

Code: Select all

 * Disable the 'cgroup-hybrid' USE flag.
 * Rebuild any initramfs images after rebuilding systemd.
I think the message is very clear what to do.

Initramfs images include genkernel, dracut, gentoo-kernel, or gentoo-kernel-bin (as the most common tools) depending on your setup.
If you don't use any of these, then just the USE flag will be enough.
Top
mlybarger
Guru
Guru
User avatar
Posts: 482
Joined: Wed Sep 04, 2002 1:03 am

  • Quote

Post by mlybarger » Fri Nov 15, 2024 8:34 pm

thanks for the reply. it's actually not clear. i didn't even add this use flag or set it. i looked at the options to unset it, but even after using ufed to set so that it has a minus sign on the left, it's gives the same error.

Code: Select all

lightning /home/mark # grep cgroup /etc/portage/make.conf 
lightning /home/mark # 
when i use ufed, it shows >=sys-apps/systemd-249.9 with a plus sign, but nothing is selected on the left. when i cycle through the options (plus adds a plus sign to all 4 items there), a negative or minus sign leaves the >=systemd-249.9 with a plus and everything else has a minus sign.
Top
zen_desu
Guru
Guru
Posts: 501
Joined: Fri Oct 25, 2024 3:14 pm
Location: your area

  • Quote

Post by zen_desu » Fri Nov 15, 2024 9:18 pm

what initramfs are you using?

What is the output of "grep cgroup /proc/mounts"
µgRD dev
Wiki writer
Top
mlybarger
Guru
Guru
User avatar
Posts: 482
Joined: Wed Sep 04, 2002 1:03 am

  • Quote

Post by mlybarger » Fri Nov 15, 2024 9:22 pm

i have gentoo-sources built with genkernel if that matters. here's the output.

Code: Select all

lightning /home/mark # grep cgroup /proc/mounts
tmpfs /sys/fs/cgroup tmpfs ro,nosuid,nodev,noexec,size=4096k,nr_inodes=1024,mode=755,inode64 0 0
cgroup2 /sys/fs/cgroup/unified cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate 0 0
cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,name=systemd 0 0
cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0
cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct 0 0
cgroup /sys/fs/cgroup/net_cls,net_prio cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio 0 0
cgroup /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_event 0 0
cgroup /sys/fs/cgroup/pids cgroup rw,nosuid,nodev,noexec,relatime,pids 0 0
cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0
cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0
cgroup /sys/fs/cgroup/memory cgroup rw,nosuid,nodev,noexec,relatime,memory 0 0
cgroup /sys/fs/cgroup/hugetlb cgroup rw,nosuid,nodev,noexec,relatime,hugetlb 0 0
cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0
cgroup /sys/fs/cgroup/rdma cgroup rw,nosuid,nodev,noexec,relatime,rdma 0 0

Top
Hu
Administrator
Administrator
Posts: 24398
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Fri Nov 15, 2024 9:44 pm

Your initial output shows that USE=cgroup-hybrid is enabled. What is the output of grep -r cgroup-hybrid /etc/portage/package.use?
Top
mlybarger
Guru
Guru
User avatar
Posts: 482
Joined: Wed Sep 04, 2002 1:03 am

  • Quote

Post by mlybarger » Fri Nov 15, 2024 9:53 pm

i think you hit the nail on the head. i found this

Code: Select all

lightning /home/mark # grep -r cgroup-hybrid /etc/portage/package.use
/etc/portage/package.use/zz-autounmask:>=sys-apps/systemd-249.9 cgroup-hybrid
and removed it. seems this was pulled in and maybe set by snapd. now my system is updating. thanks! marking as solved.
Top
Post Reply

7 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