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

-- 
Maas-devel mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/maas-devel

Reply via email to