diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/profile.sh | 8 | ||||
-rw-r--r-- | src/profile/proteanos.sh | 15 |
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' |