summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-01-15 18:10:14 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-01-15 18:10:14 (EST)
commit7ae658b2878d6ca88475062e4ede0dd120103b62 (patch)
treef88a700183074300405e54f1f2353a66e79f3c38 /src
parentafac52a2827ef57dd42db321983d5b604221b9ce (diff)
profile_make_initramfs(): New function
Diffstat (limited to 'src')
-rw-r--r--src/profile.sh8
-rw-r--r--src/profile/proteanos.sh15
2 files changed, 23 insertions, 0 deletions
diff --git a/src/profile.sh b/src/profile.sh
index 08203d1..9bbd9ce 100644
--- a/src/profile.sh
+++ b/src/profile.sh
@@ -171,3 +171,11 @@ profile_find_kernel()
"prof_${profile}_find_kernel" "${root}" "${arch}" "${plat}"
}
+
+profile_make_initramfs()
+{
+ local arch="${1}"
+ local plat="${2}"
+
+ "prof_${profile}_make_initramfs" "${arch}" "${plat}"
+}
diff --git a/src/profile/proteanos.sh b/src/profile/proteanos.sh
index 69771a8..46c0e69 100644
--- a/src/profile/proteanos.sh
+++ b/src/profile/proteanos.sh
@@ -271,6 +271,21 @@ prof_proteanos_find_kernel()
return 1
}
+prof_proteanos_make_initramfs()
+{
+ local arch="${1}"
+ local plat="${2}"
+
+ case "${arch}" in
+ *-linux-*)
+ find . -xdev -a \! -path './boot/*' -a \
+ \! -path './prokit/*' | \
+ ${CPIO} -o -H newc | ${XZ} -c --x86 --lzma2
+ ;;
+ esac
+ return 1
+}
+
prof_proteanos_register()
{
register_profile 'proteanos'