Include fsck on a init ramdisk - espressobin

Recommended Posts


I am building a kali linux for espreso bin. I used the initrd and kernel from Armbian and I already got it to boot without any problem.  However during the boot process, when it is using the ramdisk this warning appears.

Warning: fsck not present, so skipping root file system

I Would like to be able to check root partition during the boot.

How could I add fsck to the ramdisk?


I also noticed that armbian buster for espressobin have the fsck present on the ramdisk.

On my building script I added the armbian respositories for debian buster and installed:

  • linux-dtb-next-mvebu64
  • linux-image-next-mvebu64
  • linux-headers-next-mvebu64
  • linux-u-boot-espressobin-next


The conversion of the initrd for an u-boot format ramdisk is being made with a post-update rule, just like armbian.

Any idea what I might be missing?

Edited by cirne

Share this post

Link to post
Share on other sites

You need to add the relevant executables

echo \
. /usr/share/initramfs-tools/hook-functions
copy_exec /sbin/e2fsck /sbin
copy_exec /sbin/fsck /sbin
copy_exec /sbin/fsck.ext2 /sbin
copy_exec /sbin/fsck.ext4 /sbin
copy_exec /sbin/logsave /sbin' \
  | sudo dd of=/etc/initramfs-tools/hooks/e2fsck.sh
sudo chmod +x /etc/initramfs-tools/hooks/e2fsck.sh

before building the initrd

sudo update-initramfs -c -k ${kver}


Share this post

Link to post
Share on other sites

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.

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.