cirne Posted August 8, 2019 Share Posted August 8, 2019 (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 August 8, 2019 by cirne Link to comment Share on other sites More sharing options...
umiddelb Posted August 8, 2019 Share Posted August 8, 2019 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} Link to comment Share on other sites More sharing options...
cirne Posted August 9, 2019 Author Share Posted August 9, 2019 Thank you very much!! Link to comment Share on other sites More sharing options...
Recommended Posts