diff options
author | Tomjon <tomjon@example.com> | 2013-09-19 14:29:55 +0000 |
---|---|---|
committer | Tomjon <tomjon@example.com> | 2013-09-19 14:29:55 +0000 |
commit | 8baf1288f945596eae06709f19ea4a2dbd4fe509 (patch) | |
tree | d8c2965b40c55599708da3d5dcfe0ae4e4eeaa19 | |
parent | aa2491f73e48a4864fa4df41fd9df83b5f968247 (diff) | |
download | morphs-8baf1288f945596eae06709f19ea4a2dbd4fe509.tar.gz |
Setup fstab with custom write extension
-rwxr-xr-x | ct-wand-1-cluster-fstab.configure | 11 | ||||
-rw-r--r-- | ct-wand-1-cluster/etc/fstab | 1 | ||||
-rw-r--r-- | ct-wand-1-cluster/manifest | 1 | ||||
-rw-r--r-- | devel-system-armv7-wandboard.morph | 1 |
4 files changed, 12 insertions, 2 deletions
diff --git a/ct-wand-1-cluster-fstab.configure b/ct-wand-1-cluster-fstab.configure new file mode 100755 index 0000000..40ec835 --- /dev/null +++ b/ct-wand-1-cluster-fstab.configure @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +if [ "x$FSTAB_SRC" != x ] +then + cat << EOF >> "$1/etc/fstab" + +LABEL=src /src auto defaults 0 2 +EOF +fi diff --git a/ct-wand-1-cluster/etc/fstab b/ct-wand-1-cluster/etc/fstab deleted file mode 100644 index 6f15eb4..0000000 --- a/ct-wand-1-cluster/etc/fstab +++ /dev/null @@ -1 +0,0 @@ -LABEL=src /src auto defaults 0 2 diff --git a/ct-wand-1-cluster/manifest b/ct-wand-1-cluster/manifest index b208c3a..be2a21c 100644 --- a/ct-wand-1-cluster/manifest +++ b/ct-wand-1-cluster/manifest @@ -2,7 +2,6 @@ 0040755 0 0 /etc 0100666 0 0 /etc/morph.conf 0100666 0 0 /etc/resolv.conf -0100666 0 0 /etc/fstab 0100666 0 0 /etc/ntpd.conf 0040755 0 0 /etc/ssh 0100600 0 0 /etc/ssh/ssh_host_dsa_key diff --git a/devel-system-armv7-wandboard.morph b/devel-system-armv7-wandboard.morph index 4f78662..d5d101e 100644 --- a/devel-system-armv7-wandboard.morph +++ b/devel-system-armv7-wandboard.morph @@ -49,3 +49,4 @@ configuration-extensions: - simple-network - nfsboot - install-files +- ct-demo-1-cluster-fstab |