You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should make it hard to boot in cgroupv1 mode, i.e. refuse booting unless some magic option is specified to get it anyway.
Reacted by Mike Yuan, Frantisek Sumsal, Nils K, deathtrip, Gabríel Arthúr Pétursson, Ronan Pigott, Cunshun Xia, Phan Văn Hoà - 潘文和 - 반문화, Guillaume Seren and Hen Greville
Reacted by audunmg, andrzej maczuga, Willem Sonke and fish4terrisa-MSDSM
Breaking boot completely when the warning delay alone would have been more than enough to raise the issue is an asshole move. There are many classes of devices where recovery is not easy, because you can't easilly edit boot arguments after system fails to boot, or because they are remote.
Reacted by dsunnerer, Xun Sun, Tristan Mahé, Ragnar Groot Koerkamp, adamency, Rowan Taubitz, rkfg, tvmole, Alex Egana, Firat Akandere and 9 more
I JUST installed ArchLinuxARM on my Acer Chromebook R13. It worked until I ran pacman -Syu and rebooted. Now it does not boot due to this. How the hell do I add this kernel parameter on a Chromebook?!
EDIT: figured it out. for others with this issue, you have to use vbutil_kernel --repack with the new kernel parameters, and then flash it to the kernel partition.
@ohnoov It's unfortunate that you hit this. That's not how the warning meant to be (i.e. old PID1 setting up v1 and new one breaking).
Edge case of not updating initramfs often enough, I guess.
It seems that pacman doesn't automate that. I'd suggest adding a hook there to keep systemd binaries in sync. (Also, what was the version within the initrd? This suggests it must have been <=v247.)
It was quite old. Probably ~3 years old. I don't think I regenerated it ever since I set up full disk encryption on my notebook. I use kernel build without modules, so I don't normally need to update initramfs pretty much ever. (except this time :)) and prefer it that way due to stability/reliability. Normally on this platform (pinebook pro + levinboot all running from eMMC) it's only possible to update kernel arguments from a running system without extra tools and notebook disassembly.
I JUST installed ArchLinuxARM on my Acer Chromebook R13. It worked until I ran pacman -Syu and rebooted. Now it does not boot due to this. How the hell do I add this kernel parameter on a Chromebook?!
ArchLinuxARM-oak-latest.tar.gz is from 01-Mar-2023 so that suggests just a year old systemd in initramfs will result in this behavior.
I JUST installed ArchLinuxARM on my Acer Chromebook R13. It worked until I ran pacman -Syu and rebooted. Now it does not boot due to this. How the hell do I add this kernel parameter on a Chromebook?!
ArchLinuxARM-oak-latest.tar.gz is from 01-Mar-2023 so that suggests just a year old systemd in initramfs will result in this behavior.
Arch Linux switched the default to v2 long before that. With mkinitcpio I seriously doubt that systemd actually runs in the initramfs. Arch defaults to busybox-based init after all.
Please provide your /etc/mkinitcpio.conf and /proc/cmdline.
@YHNdnzj - Have same issue with Arch Linux ARM on an Odroid XU4 installed some time ago, but kept up to date.
The boot messages just mentioned "systemd[1]: Freezing execution.", which is very generic and didn't provide any clue to the underlying issue. Running out of options I've hooked the serial console and there I saw this: "[!!!!!!] Refusing to run under cgroup v1, SY… specified on kernel command line." which lead me to this page.
Okey, leaving this here for those interested on how to fix this on an Arch Linux, probably not the best place, but it ranks pretty up on Google, so here it goes:
I had systemd.unified_cgroup_hierarchy=0 added to the kernel params in boot.txt. This was done 3 or so years ago, and if I remember correctly, I've done it to make docker run.
Anyway, the fix is to edit boot.txt, remove the systemd.unified_cgroup_hierarchy=0, run a ./mkscr to make boot.scr and then reinstall the kernel with a pacman -S linux which will rebuild the initial ramdisk.
Interestingly enough, now docker runs without the cgroup option.
Reacted by Michal Koutný, Rüdiger Hahn, Roland Puntaier and Eight-Ball
ArchLinuxARM-oak-latest.tar.gz is from 01-Mar-2023 so that suggests just a year old systemd in initramfs will result in this behavior.
@ohnoov I ran into the same issue with the same chromebook image (I installed the image, updated, and rebooted, and ran into the issue). Is there a way to fix it now?
@ayunami2000 Can you please share more details? Since the system refuses to open at all, how do you run this command? And how/what file do you flash to the boot partition?
@ayunami2000 Can you please share more details? Since the system refuses to open at all, how do you run this command? And how/what file do you flash to the boot partition?
It was a while ago, but as far as I can remember, I could still boot to chrome os and used the terminal there to run that command and flash. I was booting off of an external flash drive. I do not remember the other details except that chrome os requires fancy shenanigans to boot stuff like this, and so that's why this was even possible to patch.
Can this be amended to either kill/exit systemd and trigger a panic (allowing CONFIG_PANIC_TIMEOUT= to take us back to the bootloader), or reboot the system after a timeout?
I'm doing "dumb shit" on a device with an old (4.2) vendor kernel, and while I've worked around this, I had to manually remove power to the system physically to recover.
Ah, yes it does. I've got 256.4 currently because my buildroot tree is 2024.08.2, but it's been bumped to .7 recently and I haven't updated it, thanks!
Activity
core: refuse cgroupv1 unless SYSTEMD_CGROUP_ENABLE_LEGACY_FORCE
core: refuse cgroupv1 unless SYSTEMD_CGROUP_ENABLE_LEGACY_FORCE
core: refuse cgroupv1 unless SYSTEMD_CGROUP_ENABLE_LEGACY_FORCE
core: refuse cgroupv1 unless SYSTEMD_CGROUP_ENABLE_LEGACY_FORCE
core: refuse cgroupv1 unless SYSTEMD_CGROUP_ENABLE_LEGACY_FORCE
meengu commentedon Jun 30, 2024
Breaking boot completely when the warning delay alone would have been more than enough to raise the issue is an asshole move. There are many classes of devices where recovery is not easy, because you can't easilly edit boot arguments after system fails to boot, or because they are remote.
10 remaining items
ayunami2000 commentedon Jul 16, 2024
I JUST installed ArchLinuxARM on my Acer Chromebook R13. It worked until I ran
pacman -Syuand rebooted. Now it does not boot due to this. How the hell do I add this kernel parameter on a Chromebook?!EDIT: figured it out. for others with this issue, you have to use
vbutil_kernel --repackwith the new kernel parameters, and then flash it to the kernel partition.meengu commentedon Jul 17, 2024
It was quite old. Probably ~3 years old. I don't think I regenerated it ever since I set up full disk encryption on my notebook. I use kernel build without modules, so I don't normally need to update initramfs pretty much ever. (except this time :)) and prefer it that way due to stability/reliability. Normally on this platform (pinebook pro + levinboot all running from eMMC) it's only possible to update kernel arguments from a running system without extra tools and notebook disassembly.
meengu commentedon Jul 17, 2024
ArchLinuxARM-oak-latest.tar.gz is from 01-Mar-2023 so that suggests just a year old systemd in initramfs will result in this behavior.
YHNdnzj commentedon Jul 17, 2024
Arch Linux switched the default to v2 long before that. With mkinitcpio I seriously doubt that systemd actually runs in the initramfs. Arch defaults to busybox-based init after all.
Please provide your
/etc/mkinitcpio.confand/proc/cmdline.catalinsanda commentedon Jul 21, 2024
@YHNdnzj - Have same issue with Arch Linux ARM on an Odroid XU4 installed some time ago, but kept up to date.
The boot messages just mentioned "systemd[1]: Freezing execution.", which is very generic and didn't provide any clue to the underlying issue. Running out of options I've hooked the serial console and there I saw this: "[!!!!!!] Refusing to run under cgroup v1, SY… specified on kernel command line." which lead me to this page.
catalinsanda commentedon Jul 21, 2024
Okey, leaving this here for those interested on how to fix this on an Arch Linux, probably not the best place, but it ranks pretty up on Google, so here it goes:
I had
systemd.unified_cgroup_hierarchy=0added to the kernel params in boot.txt. This was done 3 or so years ago, and if I remember correctly, I've done it to make docker run.Anyway, the fix is to edit
boot.txt, remove thesystemd.unified_cgroup_hierarchy=0, run a./mkscrto makeboot.scrand then reinstall the kernel with apacman -S linuxwhich will rebuild the initial ramdisk.Interestingly enough, now docker runs without the cgroup option.
archisman-panigrahi commentedon Sep 22, 2024
@ohnoov I ran into the same issue with the same chromebook image (I installed the image, updated, and rebooted, and ran into the issue). Is there a way to fix it now?
martin-ueding commentedon Oct 31, 2024
I've just upgraded to Fedora 41 and hit this issue. Since it was released this Monday, more people might be coming in with the same issue.
The option
systemd.unified_cgroup_hierarchy=0must have been set via NVIDIA Docker. Solving it is quite straightforward:ein GRUB to edit the command line, remove thesystemd.unified_cgroup_hierarchy=0option and boot the system./etc/default/gruband removesystemd.unified_cgroup_hierarchy=0from the line withGRUB_CMDLINE_LINUX.sudo grub2-mkconfig -o /boot/grub2/grub.cfgto generate a new config.archisman-panigrahi commentedon Nov 9, 2024
@ayunami2000 Can you please share more details? Since the system refuses to open at all, how do you run this command? And how/what file do you flash to the boot partition?
ayunami2000 commentedon Nov 9, 2024
It was a while ago, but as far as I can remember, I could still boot to chrome os and used the terminal there to run that command and flash. I was booting off of an external flash drive. I do not remember the other details except that chrome os requires fancy shenanigans to boot stuff like this, and so that's why this was even possible to patch.
archisman-panigrahi commentedon Nov 9, 2024
@ayunami2000 What are the arguments of
vbutil_kernel --repack?ayunami2000 commentedon Nov 9, 2024
I don't remember but I think you should be able to Google it, hopefully.
nroach44 commentedon Dec 13, 2024
Can this be amended to either kill/exit systemd and trigger a panic (allowing CONFIG_PANIC_TIMEOUT= to take us back to the bootloader), or reboot the system after a timeout?
I'm doing "dumb shit" on a device with an old (4.2) vendor kernel, and while I've worked around this, I had to manually remove power to the system physically to recover.
Werkov commentedon Dec 13, 2024
What version are you one?
Doesn't d0ab0e5 fix that?
nroach44 commentedon Dec 13, 2024
Ah, yes it does. I've got 256.4 currently because my buildroot tree is 2024.08.2, but it's been bumped to .7 recently and I haven't updated it, thanks!