aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos.K <freedomrfox@gmail.com>2017-07-03 18:16:24 +0300
committerChristos.K <freedomrfox@gmail.com>2017-07-03 18:16:24 +0300
commit429c15d11f5b3cd84473a64db4c11b0fee2b2a4d (patch)
tree79d3b4be6d92b7c8dc64c4c64d118eadfd1f53a4
parentCleared the backup sysbuild (diff)
downloadGSE-429c15d11f5b3cd84473a64db4c11b0fee2b2a4d.tar.gz
GSE-429c15d11f5b3cd84473a64db4c11b0fee2b2a4d.tar.bz2
GSE-429c15d11f5b3cd84473a64db4c11b0fee2b2a4d.zip
Included condition for kernel/initramfs prebuilt images
-rwxr-xr-xscripts/chroot_scripts/chroot_init8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/chroot_scripts/chroot_init b/scripts/chroot_scripts/chroot_init
index 8b5924d..0d785c2 100755
--- a/scripts/chroot_scripts/chroot_init
+++ b/scripts/chroot_scripts/chroot_init
@@ -156,6 +156,10 @@ _do_hs '\+grun' "after" "Part: Runlevel Configurations"
_do_hs '\-gkernel' "before" "Part: Kernel build"
if [[ -n "${_flag_kernel}" ]] || [[ -n "${_flag_minimal}" ]]; then
:
+elif [[ "${_flag_kernel_use}" ]]; then
+ mkdir -p "/boot"
+ cp "${CHDIR}/boot.d/kernel" "/boot/$(cat "${CHDIR}/boot.d/kernel_name")"
+ _monitor_chroot_flow "KERNEL"
else
if _call_hook_points 'KERNEL' 'gkernel' 'Part: Kernel build' '_kernel_build'; then
_monitor_chroot_flow "KERNEL"
@@ -170,6 +174,10 @@ _do_hs '\+gkernel' "after" "Part: Kernel build"
_do_hs '\-ginitrd' "before" "Part: Initramfs build"
if [[ -n "${_flag_kernel}" ]] || [[ -n "${_flag_minimal}" ]] || [[ -n "${_flag_initrd}" ]]; then
:
+elif [[ "${_flag_initramfs_use}" ]]; then
+ mkdir -p "/boot"
+ cp "${CHDIR}/boot.d/initramfs" "/boot/$(cat "${CHDIR}/boot.d/initramfs_name")"
+ _monitor_chroot_flow "INITRAMFS"
else
if _call_hook_points 'INITRAMFS' 'ginitrd' 'Part: Initramfs build' '_initramfs_builder'; then
_monitor_chroot_flow "INITRAMFS"