mounting an NFS share via curtin_userdata

G_Gold gy_gold12 at yahoo.com
Fri Oct 28 20:44:32 UTC 2016


On Fri,Oct 28 03:02:PM, Scott Moser wrote:

> You most certainly want to use [ ] form of invoking commands.

Yes, have been doing that for the most part - the part w/o "[ ]"
was
just a wild shot. (no hits..)


> its best to just avoid shell interpretation entirely.
> So easy thing to do is:
>
> mount_share: [
>    'curtin', 'in-target', '--', 'sh', '-c',
>    'file="$1"; shift; for line in "$@"; do echo "$line"; done
>    >> "$file"',
>    'file-appender', '/etc/fstab',
>    '# these are added by Guy',
>    '192.168.1.1:/data /data nfs rw 0 0']

I will try this method, thank you.

> You didn't say if the entries were getting written to fstab or
> not.

The node boots without the desired line in its fstab.

-- 
G_Gold



More information about the Maas-devel mailing list