mirror of
https://github.com/suikan4github/kaiten-yaki.git
synced 2025-12-20 02:21:17 -03:00
Refine the comment.
This commit is contained in:
parent
be32e5e387
commit
40264ce02f
3 changed files with 43 additions and 34 deletions
|
|
@ -298,14 +298,15 @@ function post_install() {
|
|||
echo "...Mounting all other dirs."
|
||||
for n in proc sys dev tmp etc/resolv.conf; do mount --rbind "/$n" "${TARGETMOUNTPOINT}/$n"; done
|
||||
|
||||
# Copy all scripts to the target /tmp to in chroot session.
|
||||
# Copy all scripts to the target /tmp for using in chroot session.
|
||||
echo "...Copy files in current dir to ${TARGETMOUNTPOINT}/tmp."
|
||||
mkdir "${TARGETMOUNTPOINT}/tmp/kaiten-yaki"
|
||||
cp -r ./* -t "${TARGETMOUNTPOINT}/tmp/kaiten-yaki"
|
||||
|
||||
# Change root and create the keyfile and ramfs image for Linux kernel.
|
||||
# The here document is script executed under chroot. And here we call
|
||||
# the distribution dependent script "lib/chrooted_job_${DISTRIBUTIONSIGNATURE}.sh".
|
||||
# The here-document is script executed under chroot. At here we call
|
||||
# the distribution dependent script "lib/chrooted_job_${DISTRIBUTIONSIGNATURE}.sh",
|
||||
# which was copied to /temp at previous code.
|
||||
echo "...Chroot to ${TARGETMOUNTPOINT}. and execute chrooted_job_${DISTRIBUTIONSIGNATURE}.sh"
|
||||
# shellcheck disable=SC2086
|
||||
cat <<- HEREDOC | chroot "${TARGETMOUNTPOINT}" /bin/bash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue