From ee06f66f11a6d84c22bfb9b983eb2c5965d6b1a6 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 24 Jan 2016 02:17:33 -0500 Subject: prof_proteanos_make_initramfs(): Make /init link --- diff --git a/src/profile/proteanos.sh b/src/profile/proteanos.sh index dfa64e8..ff03354 100644 --- a/src/profile/proteanos.sh +++ b/src/profile/proteanos.sh @@ -287,13 +287,23 @@ prof_proteanos_make_initramfs() { local arch="${1}" local plat="${2}" + local init_created= case "${arch}" in *-linux-*) + if ! [ -e init ]; then + ln -s /sbin/init init + init_created=true + else + init_created=false + fi find . -xdev -a \! -path './boot/*' -a \ \! -path './prokit/*' | \ ${CPIO} -o -H newc | \ ${XZ} -c --check=crc32 --x86 --lzma2 + if ${init_created}; then + rm -f init + fi ;; esac return 1 -- cgit v0.9.1