[yocto] Writable root filesystem - disable automount of drives

Marc Ferland ferlandm at sonatest.com
Fri Oct 12 14:47:37 PDT 2012


Jonathan Haws <Jonathan.Haws at sdl.usu.edu> writes:

> I am probably going about this the wrong way, but I am trying to
> create a new BSP for an Intel Core2 Duo PC104 board (from ADL-USA, the
> ADLGS45 to be exact).  I have the BSP and everything working (or so it
> appears) and I have checked the kernel configuration.  So far I have
> not had any issues - Poky builds the base and minimal images
> perfectly.
>
> However, where do I go from here?  I used 'dd' to dump the generated
> ISO image to a SATA SSD and I hooked that up and the system booted
> just fine - however I have a couple of problems:
>
> 1. The root filesystem is read-only - I would like it to be writable
> (especially since I cannot start SSH because the initscripts cannot
> generate the SSH keys on boot).
>
You could for example use the 'live' image type (defined with
IMAGE_FSTYPES). This will produce a hddimg file which can be dumped to
your SSD. It will also be writable. You could also just create a tar.gz
of the file system and use this to populate your SSD.

Look at: https://wiki.yoctoproject.org/wiki/How_do_I#Q:_How_do_I_put_Yocto_on_a_hard_drive.3F

> 2. I would like to prevent the system from automatically trying to
> mount every drive it detects.  I would like it to create devices for
> any disks attached to the system, but stop there.
>
The mount.sh script from udev is responsible for mounting/unmounting
devices automagically. You can always disable it. If the hardware stack
does not change you could "hard-code" everything in your fstab.

Hope that helps!

Marc



More information about the yocto mailing list