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

Warn running in Demo Mode #1963

Merged
merged 10 commits into from
Jan 2, 2023
Merged

Warn running in Demo Mode #1963

merged 10 commits into from
Jan 2, 2023

Conversation

meisenzahl
Copy link
Member

Closes #62

Show a warning if running in Demo Mode and prevent cache updates.

In Demo Mode /proc/cmdline contains:

BOOT_IMAGE=/casper/vmlinuz boot=casper maybe-ubiquity quiet splash initrd=/casper/initrd.lz

@meisenzahl meisenzahl requested a review from a team December 29, 2022 19:34
@meisenzahl
Copy link
Member Author

meisenzahl commented Dec 30, 2022

Running in Demo Mode:

2022-12-30-07.39.25.015503456.mp4

@Marukesu
Copy link

instead of only checking for casper, i would do boot=casper, boot=live, and rd.live.image. so that the warn trigger in live sessions from casper, live-boot and dracut.

Copy link
Member

@danirabbit danirabbit left a comment

Choose a reason for hiding this comment

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

Looks good, nice work!

@danirabbit danirabbit merged commit 4c755a4 into master Jan 2, 2023
@danirabbit danirabbit deleted the warn-running-in-demo-mode branch January 2, 2023 17:42
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.

Detect and warn on live session
3 participants