Reputation: 376
I need to mount my boot partition in order to perform software updates in my yocto built. I would expect to mount it in /boot but I see that there is a directory there already
I cant seem to find information about what this /boot directory is and why its needed. It contains the same .itb file that is in the boot partition
Do I need this boot directory? Who is it used by? Is there a way to tell yocto not to create it?
Upvotes: 2
Views: 1635
Reputation: 376
Turns out that atmel dt overlay was putting overlay files in the /boot directory. These overlays aren't relevent for my machine so I removed the dt-overlay dependency
Upvotes: 0
Reputation: 948
The short answer is, normally, unless you've tempered with the etc/fstab
file, the boot partition is mounted in /boot
. Yo can check that it is indeed the boot partition that is mounted with the df
command.
Now I'm a bit of a fstab
noob myself but here is what I could get from it.
In the fstab file is the file responsible for automatically mounting device. In general, by default yocto generates a fstab file looking like this:
/dev/mmcblk0p1 /boot vfat defaults 0 0
Meaning (from what I can get) that your first partition will be mounted in /boot automatically. (If there are any fstab wizard out here feel free to elaborate)
This work as normally mounted folder. You can modify all you want in /boot
and the changes will happen on the boot
partition. Once your changes are done, reboot and you should be able to see your changes having taken effect.
I have a broad idea but I suspect this depends on your build and target. And I have no yocto build I can check that with atm. So here are my hints:
/etc/fstab
mounting the boot partition and see if somthing crashes/boot
. Here is how to override a file installed by a parent layer. Know that fstab is installed by /poky/meta/recipes-core/basefiles/base-files_X.X.X.bb
.Note that overall I'm not a 100% certain what /boot
this is used for but I wouldn't recommend getting rid of it. In my opinion there is no draw backs to having your boot partition mounted and it is a handy tool to check on your boot partition while investigating your build.
Upvotes: 0