Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import CI build drivers #174

Merged
merged 2 commits into from
Nov 23, 2024
Merged

Import CI build drivers #174

merged 2 commits into from
Nov 23, 2024

Conversation

zeha
Copy link
Member

@zeha zeha commented Nov 22, 2024

These are our new build scripts for driving grml-live from CI. Not the nicest Python I've ever written, but it works.

This PR also contains #172 and #173 for now, as I needed them for testing in the same branch.

@zeha zeha requested a review from mika November 22, 2024 21:39
@zeha zeha self-assigned this Nov 22, 2024
Copy link
Member

@mika mika left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow! 🙇

grml-live Outdated
local rc=0
mount -o loop "${EXTRACT_ISO_NAME}" "$mountpoint" ; rc=$?
mkdir -p "${tempdir}/live/"
osirrox -indev "${EXTRACT_ISO_NAME}" -extract live "${tempdir}/live/"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing the "; rc=$?" at the end to propagate the exit code for lines below?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indeed, fixed now!

grml-live Outdated Show resolved Hide resolved
grml-live Outdated
rmdir "$mountpoint"
log "mount failed"
eerror "mount failed"
rm -r "$tempdir"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we good/fine with rm -r (as in: no need for rm -rf)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was pondering that; have now added -f.

zeha added 2 commits November 23, 2024 11:33
mount -o loop is disabled in our new build environment, so avoid that
and use xorriso (actually, osirrox) to extract the squashfs file from
the ISO.
@mika mika self-requested a review November 23, 2024 10:41
Copy link
Member

@mika mika left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't really comment on the python thingy, but everything LGTM!
🤗

@zeha zeha merged commit de59d01 into master Nov 23, 2024
6 checks passed
@zeha zeha deleted the build-driver branch November 23, 2024 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants