Skip to content

Commit 0e5e293

Browse files
committed
Upstream.
1 parent 72a7e14 commit 0e5e293

File tree

4 files changed

+77
-11
lines changed

4 files changed

+77
-11
lines changed

.github/workflows/zCustom.yml

Lines changed: 67 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,30 @@ on:
5353
- latest
5454
- internal
5555
- base
56-
customTimeout:
57-
required: false
58-
default: '45'
59-
type: choice
60-
options:
61-
- '45'
62-
- '300'
56+
## ATTENTION: NOTICE: Updating core will already update the kernel packages used by _custom_kernel ... . Except to ensure the very latest 'lts' desktop kernel is used, this usually just wastes time.
57+
#upgradeKernel:
58+
#required: false
59+
#default: none
60+
#type: choice
61+
#options:
62+
#- none
63+
#- lts
64+
#- mainline-server
65+
## ATTENTION: Delays custom/build cycle time by ~3 minutes . Enabled by default, but may be disabled for very rapid testing if not useful.
66+
#upgradeCore:
67+
#type: boolean
68+
#default: true
69+
# ATTENTION: Delays custom/build cycle time by ~6 minutes . Causes possibly redundant upgrade of core and kernel. Enabled by default, but may be disabled for very rapid testing if not useful.
70+
upgradeSlow:
71+
type: boolean
72+
default: true
73+
#customTimeout:
74+
#required: false
75+
#default: '45'
76+
#type: choice
77+
#options:
78+
#- '45'
79+
#- '300'
6380
DANGERfast_EXPERIMENT:
6481
required: false
6582
default: 'build'
@@ -114,7 +131,7 @@ jobs:
114131
run: |
115132
echo releaseOrigin ${{ github.event.inputs.releaseOrigin }}
116133
echo releaseLabel ${{ github.event.inputs.releaseLabel }}
117-
echo customTimeout ${{ github.event.inputs.customTimeout }}
134+
#echo customTimeout
118135
echo DANGERfast_EXPERIMENT ${{ github.event.inputs.DANGERfast_EXPERIMENT }}
119136
echo DISABLE_RELEASE ${{ github.event.inputs.DISABLE_RELEASE }}
120137
echo DISABLE_ROOTFS ${{ github.event.inputs.DISABLE_ROOTFS }}
@@ -794,6 +811,46 @@ jobs:
794811
true
795812
796813
814+
- name: _upgrade_apt
815+
shell: bash
816+
run: |
817+
./ubiquitous_bash.sh _upgrade_apt
818+
timeout-minutes: 90
819+
820+
# Also updates kernel packages available for _custom_kernel ... .
821+
- name: upgrade_core
822+
if: ${{ github.event.inputs.upgradeSlow != 'false' }}
823+
shell: bash
824+
run: |
825+
./ubiquitous_bash.sh _upgrade_core
826+
timeout-minutes: 90
827+
env:
828+
GH_TOKEN: ${{ github.token }}
829+
830+
831+
832+
- name: upgrade_kernel-lts
833+
if: ${{ github.event.inputs.upgradeSlow != 'false' }}
834+
shell: bash
835+
run: |
836+
./ubiquitous_bash.sh _upgrade_kernel_lts
837+
#./ubiquitous_bash.sh _upgrade_kernel
838+
timeout-minutes: 90
839+
env:
840+
GH_TOKEN: ${{ github.token }}
841+
842+
843+
- name: upgrade_kernel-mainline-server
844+
if: ${{ github.event.inputs.upgradeSlow != 'false' }}
845+
shell: bash
846+
run: |
847+
./ubiquitous_bash.sh _upgrade_kernel_mainline_server
848+
timeout-minutes: 90
849+
env:
850+
GH_TOKEN: ${{ github.token }}
851+
852+
853+
797854
- name: upgrade_installers
798855
shell: bash
799856
run: |
@@ -820,7 +877,8 @@ jobs:
820877
shell: bash
821878
run: |
822879
./ubiquitous_bash.sh _custom || true
823-
timeout-minutes: ${{ github.event.inputs.customTimeout == '300' && 300 || 45 }}
880+
#timeout-minutes: customTimeout
881+
timeout-minutes: 300
824882

825883

826884
- name: _custom-bundle

_prog/core-upgrade.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ _upgrade_apt() {
125125
echo
126126
echo 'init: _upgrade_apt'
127127
echo
128+
129+
! _messagePlain_probe_cmd _openChRoot && _messagePlain_bad 'fail: openChroot' && _messageFAIL
128130

129131
# ATTRIBUTION-AI: ChatGPT o1-preview 2024-11-20 .
130132
_messagePlain_probe sudo -n tee /etc/apt/apt.conf.d/99autoremove-recommends
@@ -140,6 +142,8 @@ APT::AutoRemove::SuggestsImportant "true";' | sudo -n tee /etc/apt/apt.conf.d/99
140142

141143

142144

145+
! _messagePlain_probe_cmd _closeChRoot && _messagePlain_bad 'fail: closeChroot' && _messageFAIL
146+
143147
cd "$functionEntryPWD"
144148
echo
145149
echo ' PASS'

ubiquitous_bash.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ _ub_cksum_special_derivativeScripts_contents() {
3636
#export ub_setScriptChecksum_disable='true'
3737
( [[ -e "$0".nck ]] || [[ "${BASH_SOURCE[0]}" != "${0}" ]] || [[ "$1" == '--profile' ]] || [[ "$1" == '--script' ]] || [[ "$1" == '--call' ]] || [[ "$1" == '--return' ]] || [[ "$1" == '--devenv' ]] || [[ "$1" == '--shell' ]] || [[ "$1" == '--bypass' ]] || [[ "$1" == '--parent' ]] || [[ "$1" == '--embed' ]] || [[ "$1" == '--compressed' ]] || [[ "$0" == "/bin/bash" ]] || [[ "$0" == "-bash" ]] || [[ "$0" == "/usr/bin/bash" ]] || [[ "$0" == "bash" ]] ) && export ub_setScriptChecksum_disable='true'
3838
export ub_setScriptChecksum_header='2591634041'
39-
export ub_setScriptChecksum_contents='615733136'
39+
export ub_setScriptChecksum_contents='648402823'
4040

4141
# CAUTION: Symlinks may cause problems. Disable this test for such cases if necessary.
4242
# WARNING: Performance may be crucial here.
@@ -54523,6 +54523,8 @@ _upgrade_apt() {
5452354523
echo
5452454524
echo 'init: _upgrade_apt'
5452554525
echo
54526+
54527+
! _messagePlain_probe_cmd _openChRoot && _messagePlain_bad 'fail: openChroot' && _messageFAIL
5452654528

5452754529
# ATTRIBUTION-AI: ChatGPT o1-preview 2024-11-20 .
5452854530
_messagePlain_probe sudo -n tee /etc/apt/apt.conf.d/99autoremove-recommends
@@ -54538,6 +54540,8 @@ APT::AutoRemove::SuggestsImportant "true";' | sudo -n tee /etc/apt/apt.conf.d/99
5453854540

5453954541

5454054542

54543+
! _messagePlain_probe_cmd _closeChRoot && _messagePlain_bad 'fail: closeChroot' && _messageFAIL
54544+
5454154545
cd "$functionEntryPWD"
5454254546
echo
5454354547
echo ' PASS'

0 commit comments

Comments
 (0)