I am building a customized kernel for RPi. The problem is that the RPi bootloader requires a vfat /boot partition whereas I intend to minimize the kernel size, so need to remove vfat support from kernel.
I have read Embedded Linux Primer and Linux Kernel Development books. From what I understood, it seems that /boot partition is used by bootloader to look for kernel and initramfs, among some other important files
I tried removing vfat support from the kernel while keeping /boot formatted as vfat. The kernel booted just fine. However, systemd stuck somewhere saying that it failed to mount /boot, whoch is perfectly fine since the kernel doesnt support vfat. Systemd then gave me a rescue shell.
I was wondering that since the RPi bootloader already supports vfat, and is able to load kernel without any issue, is there any way I can ask systemd not to mount /boot at all? As per my understanding, since the kernel is already loaded by this stage, the kernel doesnt need access to the /boot partition.
Any help will be appreciated.