Jump to content

Kernel panic on orangepi pc with armbian (debian 12, kernel 6.6.62-current-sunxi) when I enable overlayroot


Recommended Posts

Posted

My armbian system is installed from Armbian_community_25.2.0-trunk.160_Orangepipc_bookworm_current_6.6.62_minimal.img.xz. All updates applied.

 

I wanted to make it run with overlayroot. So, I installed the package and added "extraargs=overlayroot=tmpfs" to armbianEnv.txt. After reboot nothing changed. In /run/initramfs/overlayroot.log
I found this:

 

builtin set cfgdisk='disabled'
[warning]: loaded 'overlay' module but no 'overlay' in /proc/filesystems
Unable to find driver/module. searched: overlay overlayfs
[failure]: Unable to find a driver. searched: overlay overlayfs

 

I looked into scripts/init-bottom/overlayroot inside the initrd, and figured out the problem: the script used grep, but grep was missing. So I added such script to /etc/initramfs-tools/hooks:

 

#!/bin/sh
set -e

PREREQS=""
case $1 in
        prereqs) exit 0;;
esac

. /usr/share/initramfs-tools/hook-functions

##
copy_exec /usr/bin/grep /bin

 

and applied it with "sudo update-initramfs -u". After reboot, I got kernel panic:

 

[    3.559598] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100

 

I didnt look deeper into the matter. I wonder, if it is a known problem and some solution exists already?

 

<

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines