From 7ae658b2878d6ca88475062e4ede0dd120103b62 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 15 Jan 2016 18:10:14 -0500 Subject: profile_make_initramfs(): New function --- 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' -- cgit v0.9.1