#[Solved] Weird output when trying to append kargs

1 messages · Page 1 of 1 (latest)

fallow garnet
#

Hi there,

trying to change the driver for my Meteor-Lake-iGPU from i915 to xe. Figured rpm-ostree kargs --append=i915.force_probe=!7d55,xe.force_probe=7d55 should do the trick.

However, for some reason, that command yields: error: Unknown option -auto-orient because my input gets morphed into this string here for some reason: rpm-ostree kargs --append=i915.force_probe=!7d55,xe.force_probe=7d55 rpm-ostree kargs --append=i915.force_probe=convert *.jpg -auto-orient ouput.pdfd55,xe.force_probe=7d55

This is reproducible 10/10 times. Already tried typing my command in a text editor and copied it to the terminal, to no avail.

Like, wtf. Anyone got an idea what's the issue here?

TIA.

#

Splitting the command into two yields this:

Input: rpm-ostree kargs --append=i915.force_probe=!7d55
Get's morphed into: rpm-ostree kargs --append=i915.force_probe=!7d55 rpm-ostree kargs --append=i915.force_probe=img2pdf *.png --output output.pdfd55

So somehow img2pdf is being called? Why? 😄

pliant fulcrum
#

! has a special meaning in the bash shell, it needs to be quoted to avoid that. Also if you want to add two separate kargs they need to be in separate --append options. So try this:

rpm-ostree kargs --append='i915.force_probe=!7d55' --append='xe.force_probe=7d55'
#

(specifically ! expansion is related to bash history, that's where the img2pdf thing was coming from)

fallow garnet
#

Oh wow that explains it

#

But why the need for two separate commands? According to this document it should be possible to simply use a , for that?

pliant fulcrum
#

if you did --append='i915.force_probe=!7d55,xe.force_probe=7d55' then you'd be adding a single kernel argument with the text i915.force_probe=!7d55,xe.force_probe=7d55

#

the comma isn't treated specially, in the commands in the article you linked there's just a comma in some of the kargs they're adding

fallow garnet
#

Oh, I see.

#

Alright then. I'll try again and see if it sticks.

#

It worked!

#

Thank you very much!