summaryrefslogtreecommitdiffstats
path: root/src/profile
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-01-24 02:17:33 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-01-24 02:17:33 (EST)
commitee06f66f11a6d84c22bfb9b983eb2c5965d6b1a6 (patch)
tree941e064d2aabe48fb4f4e188497adaa362b93de8 /src/profile
parent3123a4e08eb81abb27a82dbaaa6c5c78c311610d (diff)
prof_proteanos_make_initramfs(): Make /init link
Diffstat (limited to 'src/profile')
-rw-r--r--src/profile/proteanos.sh10
1 files changed, 10 insertions, 0 deletions
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