summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-08-21 09:36:20 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-08-21 09:36:20 (EDT)
commite5a0731690b77f1b2863b04095f69ee6d0913fe7 (patch)
tree2e80bac6d1ab6b16ab6244daf98a047a776e28e2 /lib
parent54967730c526da075d723354a5de9bc54b9c21f1 (diff)
profile_get_fstab(): New function
Diffstat (limited to 'lib')
-rw-r--r--lib/profile.sh8
-rw-r--r--lib/profiles/proteanos.sh18
2 files changed, 26 insertions, 0 deletions
diff --git a/lib/profile.sh b/lib/profile.sh
index 3e68ff4..a8beedd 100644
--- a/lib/profile.sh
+++ b/lib/profile.sh
@@ -114,3 +114,11 @@ profile_include_pkg()
"prof_${profile}_include_pkg" "${name}" "${value}"
}
+
+profile_get_fstab()
+{
+ local arch="${1}"
+ local plat="${2}"
+
+ "prof_${profile}_get_fstab" "${arch}" "${plat}"
+}
diff --git a/lib/profiles/proteanos.sh b/lib/profiles/proteanos.sh
index b0832fb..4f52611 100644
--- a/lib/profiles/proteanos.sh
+++ b/lib/profiles/proteanos.sh
@@ -27,6 +27,12 @@ i686-linux-glibc ao751h
i686-linux-glibc dimension2400
i686-linux-glibc x60
'
+prof_proteanos_fstab_linux="\
+proc /proc proc defaults
+sys /sys sysfs defaults
+/dev /dev none bind
+devpts /dev/pts devpts noexec,nosuid,gid=5,mode=0620
+"
prof_proteanos_normalize_suite()
{
@@ -143,3 +149,15 @@ prof_proteanos_include_pkg()
return 1
}
+
+prof_proteanos_get_fstab()
+{
+ local arch="${1}"
+ local plat="${2}"
+
+ case "${arch}" in
+ *-linux-*)
+ printf '%s\n' "${prof_proteanos_fstab_linux}"
+ ;;
+ esac
+}