All of lore.kernel.org
 help / color / mirror / Atom feed
* Writable root filesystem - disable automount of drives
@ 2012-10-12 21:25 Jonathan Haws
  2012-10-12 21:47 ` Marc Ferland
  0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Haws @ 2012-10-12 21:25 UTC (permalink / raw)
  To: yocto@yoctoproject.org

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).

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.

Thoughts?

Thanks!
Jonathan


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Writable root filesystem - disable automount of drives
  2012-10-12 21:25 Writable root filesystem - disable automount of drives Jonathan Haws
@ 2012-10-12 21:47 ` Marc Ferland
  0 siblings, 0 replies; 2+ messages in thread
From: Marc Ferland @ 2012-10-12 21:47 UTC (permalink / raw)
  To: Jonathan Haws; +Cc: yocto@yoctoproject.org

Jonathan Haws <Jonathan.Haws@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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-12 21:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-12 21:25 Writable root filesystem - disable automount of drives Jonathan Haws
2012-10-12 21:47 ` Marc Ferland

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.