mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Daniel Schultz <d.schultz@phytec.de>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH v3 2/4] arm: boards: phytec-som-am335x: Add automount script
Date: Fri, 2 Jun 2017 09:59:00 +0200	[thread overview]
Message-ID: <2b514c8e-09f6-ca7f-aeda-039746e7261e@phytec.de> (raw)
In-Reply-To: <20170517062659.t4ir7yv73jogpmpv@pengutronix.de>

Hi,

Am 17.05.2017 um 08:26 schrieb Sascha Hauer:
> On Fri, May 12, 2017 at 01:07:17PM +0200, Daniel Schultz wrote:
>> Each MMC boot source is mounted to /mnt/mmcN.0. To make the not-mounted
>> boot source available in Barebox, an automount script mounts
>> this device also to /mnt/, if the directory will be accessed.
>>
>> Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
>> ---
>>   .../defaultenv-physom-am335x/init/automount         | 21 +++++++++++++++++++++
>>   1 file changed, 21 insertions(+)
>>   create mode 100644 arch/arm/boards/phytec-som-am335x/defaultenv-physom-am335x/init/automount
> 
> This should not be needed when "fs: Create automount entries for the
> default mount pathes" is applied, right?

If your patch will mount every mountable device to /mnt/, this patch is 
not necessary.

Daniel
> 
> Sascha
> 
>>
>> diff --git a/arch/arm/boards/phytec-som-am335x/defaultenv-physom-am335x/init/automount b/arch/arm/boards/phytec-som-am335x/defaultenv-physom-am335x/init/automount
>> new file mode 100644
>> index 0000000..53ecbe3
>> --- /dev/null
>> +++ b/arch/arm/boards/phytec-som-am335x/defaultenv-physom-am335x/init/automount
>> @@ -0,0 +1,21 @@
>> +#!/bin/sh
>> +
>> +# automount tftp server based on $eth0.serverip
>> +
>> +mkdir -p /mnt/tftp
>> +automount /mnt/tftp 'ifup eth0 && mount -t tftp $eth0.serverip /mnt/tftp'
>> +
>> +# automount nfs server's nfsroot
>> +
>> +mkdir -p /mnt/nfs
>> +automount /mnt/nfs 'ifup eth0 && mount -t nfs ${eth0.serverip}:/home/${global.user}/nfsroot/${global.hostname} /mnt/nfs'
>> +
>> +#automount SD card and EMMC boot partitions
>> +
>> +if [ $bootsource = mmc -a $bootsource_instance = 1 ]; then
>> +	mkdir -p /mnt/mmc0.0
>> +	automount /mnt/mmc0.0 '[ -e /dev/mmc0.0 ] && mount /dev/mmc0.0 /mnt/mmc0.0'
>> +else
>> +	mkdir -p /mnt/mmc1.0
>> +	automount /mnt/mmc1.0 '[ -e /dev/mmc1.0 ] && mount /dev/mmc1.0 /mnt/mmc1.0'
>> +fi
>> -- 
>> 1.9.1
>>
>>
>> _______________________________________________
>> barebox mailing list
>> barebox@lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/barebox
>>
> 

-- 
Mit freundlichen Grüßen,
With best regards,
   Daniel Schultz

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2017-06-02  7:59 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-12 11:07 [PATCH v3 1/4] arm: mach-omap: Change mountpoint of boot partitions Daniel Schultz
2017-05-12 11:07 ` [PATCH v3 2/4] arm: boards: phytec-som-am335x: Add automount script Daniel Schultz
2017-05-17  6:26   ` Sascha Hauer
2017-06-02  7:59     ` Daniel Schultz [this message]
2017-05-12 11:07 ` [PATCH v3 3/4] arm: boards: phytec-som-am335x: Update boot scripts Daniel Schultz
2017-05-17  6:30   ` Sascha Hauer
2017-06-02  8:07     ` Daniel Schultz
2017-06-06  5:46       ` Sascha Hauer
2017-06-06  9:50         ` Daniel Schultz
2017-05-12 11:07 ` [PATCH v3 4/4] arm: boards: beaglebone: Delete default env Daniel Schultz
2017-05-17  6:35   ` Sascha Hauer
2017-06-06 10:57     ` Daniel Schultz
2017-05-17  6:25 ` [PATCH v3 1/4] arm: mach-omap: Change mountpoint of boot partitions Sascha Hauer

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=2b514c8e-09f6-ca7f-aeda-039746e7261e@phytec.de \
    --to=d.schultz@phytec.de \
    --cc=barebox@lists.infradead.org \
    --cc=s.hauer@pengutronix.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox