All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc Ferland <ferlandm@sonatest.com>
To: Jonathan Haws <Jonathan.Haws@sdl.usu.edu>
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: Writable root filesystem - disable automount of drives
Date: Fri, 12 Oct 2012 17:47:37 -0400	[thread overview]
Message-ID: <87ipaftlae.fsf@sonatest.com> (raw)
In-Reply-To: <DDDB9E6645DE24488B8485B41A051F471D95AF8D@Mercury.usurf.usu.edu> (Jonathan Haws's message of "Fri, 12 Oct 2012 21:25:08 +0000")

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


      reply	other threads:[~2012-10-12 21:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-12 21:25 Writable root filesystem - disable automount of drives Jonathan Haws
2012-10-12 21:47 ` Marc Ferland [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ipaftlae.fsf@sonatest.com \
    --to=ferlandm@sonatest.com \
    --cc=Jonathan.Haws@sdl.usu.edu \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.