Jump to content

Recommended Posts

Posted (edited)

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
Posted

You need to add the relevant executables

echo \
'#!/bin/sh
. /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}

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines