[Buildroot] [fstab] The best way to modify the /etc/fstab

Steve Calfee stevecalfee at gmail.com
Wed Mar 23 17:13:39 UTC 2016


Hi Oscar,


On Wed, Mar 23, 2016 at 9:48 AM, Óscar Gómez Fuente
<oscargomezf at gmail.com> wrote:
> Hi,
>
> I'm building a system from buildroot and I would like to know the best way
> to add this line:
>
> /dev/mmcblk0p1  /boot           vfat    defaults        0       2
>
> to the file /etc/fstab.
>
> Up to now ,I've executed a script, after the make is completed, with this
> command:
>
> sudo sh -c "cat << 'EOF' >> "${SD_ROOTFS_PATH}/etc/fstab"
> /dev/mmcblk0p1  /boot           vfat    defaults        0       2
>
> EOF"
>
> But I'm trying to find something more professional. I'm pretty sure that
> buildroot has a mechanism for this purpose.
>
See https://buildroot.org/downloads/manual/manual.html#rootfs-custom
where you have two choices, a script doing what you want or a way to
put a custom fstab in an overlay skeleton.

Regards, Steve



More information about the buildroot mailing list