Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Add cmdline argument to ISO #453

Closed
wants to merge 1 commit into from

Conversation

frelon
Copy link
Contributor

@frelon frelon commented Mar 8, 2023

Add the rd.live.overlay.overlayfs=1 cmdline argument since it seems to be needed to boot when building a tumbleweed ISO.

Add the `rd.live.overlay.overlayfs=1` cmdline argument since it seems to
be needed to boot when building a tumbleweed ISO.

Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
@codecov
Copy link

codecov bot commented Mar 8, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.08 ⚠️

Comparison is base (cb8b7d0) 76.83% compared to head (188c911) 76.75%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     rancher/elemental-cli#453      +/-   ##
==========================================
- Coverage   76.83%   76.75%   -0.08%     
==========================================
  Files          61       61              
  Lines        6307     6307              
==========================================
- Hits         4846     4841       -5     
- Misses       1134     1139       +5     
  Partials      327      327              
Impacted Files Coverage Δ
pkg/live/common.go 48.14% <ø> (ø)
pkg/http/client.go 85.29% <0.00%> (-14.71%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@frelon
Copy link
Contributor Author

frelon commented Mar 8, 2023

Would be nice to be able to send in or override the cmdline params as well.. food for thought!

Copy link
Contributor

@davidcassany davidcassany left a comment

Choose a reason for hiding this comment

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

In fact, as you realized the ideal would be making all this configurable. I'd say this would be nice to configure it in two different parameters: predifined values and extra values. Predefined ones would be a parameter that defaults to the current kernel arguments. Extra values would default to an empty set. So from a user perspective you could append or overwrite the kernel arguments.

I'd like to bring a similar concept for the install and reset commands.

@@ -63,7 +63,7 @@ const (

menuentry "%s" --class os --unrestricted {
echo Loading kernel...
$linux ($root)` + constants.ISOKernelPath + ` cdroot root=live:CDLABEL=%s rd.live.dir=/ rd.live.squashimg=rootfs.squashfs console=tty1 console=ttyS0 rd.cos.disable cos.setup=` + constants.ISOCloudInitPath + `
$linux ($root)` + constants.ISOKernelPath + ` cdroot root=live:CDLABEL=%s rd.live.dir=/ rd.live.squashimg=rootfs.squashfs rd.live.overlay.overlayfs=1 console=tty1 console=ttyS0 rd.cos.disable cos.setup=` + constants.ISOCloudInitPath + `
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder which is the TW alternative to overlayfs 🤔

@frelon
Copy link
Contributor Author

frelon commented Mar 8, 2023

In fact, as you realized the ideal would be making all this configurable. I'd say this would be nice to configure it in two different parameters: predifined values and extra values. Predefined ones would be a parameter that defaults to the current kernel arguments. Extra values would default to an empty set. So from a user perspective you could append or overwrite the kernel arguments.

I'd like to bring a similar concept for the install and reset commands.

Yep, that sounds great! I will put up an issue for this instead. As you said we should also see how this plays out with install/upgrade 👍

@kkaempf
Copy link
Contributor

kkaempf commented Mar 9, 2023

👍 on making these arguments better configurable - see also rancher/elemental#550

@kkaempf
Copy link
Contributor

kkaempf commented Mar 9, 2023

Oh, there's also rancher/elemental-toolkit#1773

@frelon frelon closed this Mar 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants