Merge ~alextu/pc-enablement/+git/oem-scripts:fix-ubr-debsum into ~oem-solutions-engineers/pc-enablement/+git/oem-scripts:master

Proposed by Alex Tu
Status: Merged
Merged at revision: c72e719bf340a5a0412d61374fd325168d35360f
Proposed branch: ~alextu/pc-enablement/+git/oem-scripts:fix-ubr-debsum
Merge into: ~oem-solutions-engineers/pc-enablement/+git/oem-scripts:master
Diff against target: 74 lines (+7/-27)
1 file modified
recovery-from-iso.sh (+7/-27)
Reviewer Review Type Date Requested Status
Alex Tu (community) Approve
jeremyszu (community) Needs Information
Shengyao Xue Pending
Andy Chi Pending
Yao Wei Pending
Review via email: mp+413433@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Alex Tu (alextu) wrote :
Revision history for this message
Alex Tu (alextu) wrote :
Revision history for this message
OEM Taipei Bot (oem-taipei-bot) wrote :

[autopkgtest]
autopkgtest-collect-credentials PASS
autopkgtest-oem-scripts-auto PASS
pkg-somerville-meta PASS
pkg-stella-meta PASS
pkg-sutton-meta PASS
bootstrap-meta PASS
bug-bind PASS
get-private-ppa PASS
jq-lp PASS
launchpad-api PASS
lp-bug PASS
oem-meta-packages PASS
pkg-list PASS
review-merge-proposal PASS
run-autopkgtest PASS
setup-apt-dir PASS
mir-bug SKIP exit status 77 and marked as skippable
git-url-insteadof-setting PASS
lp-dl-attm PASS
recovery-from-iso.sh PASS

https://oem-share.canonical.com/partners/lyoncore/share/artifacts/oem-scripts/oem-scripts-1.26-73f2963-in-linux-container-focal

Revision history for this message
jeremyszu (os369510) wrote :

Although I disagree this patch makes the "MaaS deployment flow" and "injection flow" be unsync, I agree we have a package to maintain the skip-oobe related configurations.

Also that part is ported from somerville and the alextu is the author, it's no reason to reject if alextu did a test already.

In the other hand, the debsum false-alarm is a noise to me.

I think it's ok to merge it and see whether having the problem.

Only one question inline below.

review: Needs Information
Revision history for this message
Alex Tu (alextu) wrote :

Because the MaaS deploy way is mainly maintained by the certification team.
So, it would need the certification team to review the needed packages for MaaS way.

short term: sync the packages to skip oob for local sanity and auto sanity from recovery injection.

long term: sync with the way by MaaS deploy.

And also replied inline for the judgment of 1st login.

Revision history for this message
OEM Taipei Bot (oem-taipei-bot) wrote :

[autopkgtest]
autopkgtest-collect-credentials PASS
autopkgtest-oem-scripts-auto PASS
pkg-somerville-meta PASS
pkg-stella-meta PASS
pkg-sutton-meta PASS
bootstrap-meta PASS
bug-bind PASS
get-private-ppa PASS
jq-lp PASS
launchpad-api PASS
lp-bug PASS
oem-meta-packages PASS
pkg-list PASS
review-merge-proposal PASS
run-autopkgtest PASS
setup-apt-dir PASS
mir-bug SKIP exit status 77 and marked as skippable
git-url-insteadof-setting PASS
lp-dl-attm PASS
recovery-from-iso.sh PASS

https://oem-share.canonical.com/partners/lyoncore/share/artifacts/oem-scripts/oem-scripts-1.26-a75ce41-in-linux-container-focal

Revision history for this message
Alex Tu (alextu) wrote :

`systemctl is-active ubiquity` can be used to check the 1st login well:

verified on this testing:
http://10.102.135.50:8080/job/sanity-3-testflinger-dummy-98000-40004-staging-testing/3/consoleFull

Self-approved:
 - changes beside a75ce41 has been reviewed by Jeremy
 - a75ce41 is discussed with Jeremy and verified passed.
 - So, I merge it directly to save time.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/recovery-from-iso.sh b/recovery-from-iso.sh
2index 2d1aa7d..843d9cc 100755
3--- a/recovery-from-iso.sh
4+++ b/recovery-from-iso.sh
5@@ -86,38 +86,18 @@ ubiquity ubuntu-recovery/recovery_type string dev
6 sed -i 's%ubiquity/reboot boolean false%ubiquity/reboot boolean true%' ./project.cfg
7 sed -i 's%ubiquity/poweroff boolean true%ubiquity/poweroff boolean false%' ./project.cfg
8 mv project.cfg $temp_folder/preseed
9- # replace $GIT clone https://git.launchpad.net/~oem-solutions-engineers/pc-enablement/+git/pack-fish.openssh-fossa --depth 1
10- # replace $GIT clone https://git.launchpad.net/~oem-solutions-engineers/pc-enablement/+git/oem-fix-misc-cnl-skip-oobe --depth 1
11- # copy from maas. TODO: make it to use from same source.
12- mkdir -p $temp_folder/debs/main
13- pushd $temp_folder/debs/main
14- rm -rf maas_deps
15- git clone --depth 1 -b maas-focal lp:~lyoncore-team/lyoncore/+git/somerville-maas-override maas_deps
16- cd maas_deps
17- git rev-parse --short HEAD
18- rm -f maas-pkgs/oem-fix-misc-cnl-maas-helper*
19- cd ..
20- cp -r maas_deps/maas-pkgs/*.deb .
21- find .
22- popd
23- # TODO: share this with MaaS to use a same source. (e.g. debian package)
24- echo "#!/bin/bash
25-. /usr/share/volatile/common.sh
26-set -x
27-dpkg -i /cdrom/debs/main/*.deb
28-apt-get install -fy
29-" | tee 32-install-custom-pkgs.sh
30- mkdir -p $temp_folder/scripts/chroot-scripts/os-post
31- mv 32-install-custom-pkgs.sh $temp_folder/scripts/chroot-scripts/os-post
32 else
33 # get checkbox pkgs and prepare-checkbox
34 # get pkgs to skip OOBE
35 $GIT clone https://git.launchpad.net/~oem-solutions-engineers/pc-enablement/+git/oem-fix-misc-cnl-no-secureboot --depth 1
36 $GIT clone https://git.launchpad.net/~oem-solutions-engineers/pc-enablement/+git/oem-fix-misc-cnl-skip-storage-selecting --depth 1
37 $GIT clone https://git.launchpad.net/~oem-solutions-engineers/pc-enablement/+git/pack-fish.openssh-fossa --depth 1
38- $GIT clone https://git.launchpad.net/~oem-solutions-engineers/pc-enablement/+git/oem-fix-misc-cnl-skip-oobe --depth 1
39 fi
40
41+ # install common tool, so that we can use oem-install to create local repository and install packages.
42+ $GIT clone https://git.launchpad.net/~oem-solutions-engineers/pc-enablement/+git/oem-fix-misc-cnl-oem-image-helper --depth 1 -b oem-fix-misc-cnl-oem-image-helper_fish
43+ # install packages related to skip oobe
44+ $GIT clone https://git.launchpad.net/~oem-solutions-engineers/pc-enablement/+git/oem-fix-misc-cnl-skip-oobe --depth 1
45 # get pkgs for ssh key and skip disk checking.
46 $GIT clone https://git.launchpad.net/~oem-solutions-engineers/pc-enablement/+git/oem-fix-misc-cnl-misc-for-automation --depth 1 misc_for_automation
47
48@@ -186,7 +166,7 @@ push_preseed() {
49 $SSH "$user_on_target"@"$target_ip" sudo rm -f /cdrom/SUCCSS_push_preseed
50
51 if [ "${ubr}" == "yes" ]; then
52- for folder in debs preseed scripts; do
53+ for folder in preseed; do
54 $SCP -r "$temp_folder/$folder" "$user_on_target"@"$target_ip":~/push_preseed || $SSH "$user_on_target"@"$target_ip" sudo rm -f push_preseed/SUCCSS_push_preseed
55 done
56 else
57@@ -197,7 +177,7 @@ push_preseed() {
58 done
59 fi
60
61- for folder in misc_for_automation; do
62+ for folder in misc_for_automation oem-fix-misc-cnl-oem-image-helper oem-fix-misc-cnl-skip-oobe; do
63 tar -C "$temp_folder"/$folder -zcvf "$temp_folder"/$folder.tar.gz .
64 $SCP "$temp_folder/$folder".tar.gz "$user_on_target"@"$target_ip":~
65 $SSH "$user_on_target"@"$target_ip" tar -C push_preseed -zxvf $folder.tar.gz || $SSH "$user_on_target"@"$target_ip" sudo rm -f push_preseed/SUCCSS_push_preseed
66@@ -271,7 +251,7 @@ prepare() {
67
68 poll_recovery_status() {
69 while(:); do
70- if $SSH "$user_on_target"@"$target_ip" ubuntu-report show; then
71+ if [ "$($SSH "$user_on_target"@"$target_ip" systemctl is-active ubiquity)" = "inactive" ] ; then
72 break
73 fi
74 sleep 180

Subscribers

People subscribed via source and target branches