Skip to content

Commit

Permalink
install: Actually honor kargs
Browse files Browse the repository at this point in the history
I think this got lost in a refactoring.

Closes: containers#163
Signed-off-by: Colin Walters <[email protected]>
  • Loading branch information
cgwalters committed Nov 3, 2023
1 parent 6849620 commit 167b9e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,7 @@ async fn initialize_ostree_root_from_self(
.kargs
.iter()
.map(|v| v.as_str())
.chain(state.config_opts.karg.iter().flatten().map(|v| v.as_str()))
.collect::<Vec<_>>();
let mut options = ostree_container::deploy::DeployOpts::default();
options.kargs = Some(kargs.as_slice());
Expand Down
3 changes: 3 additions & 0 deletions tests/kolainst/install
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ case "${AUTOPKGTEST_REBOOT_MARK:-}" in
# In theory we could e.g. wipe the bootloader setup on the primary disk, then reboot;
# but for now let's just sanity test that the install command executes.
lsblk ${DEV}
mount /dev/vda3 /var/mnt
grep foo=bar /var/mnt/loader/entries/*.conf
umount /var/mnt
echo "ok install"

# Now test install-to-filesystem
Expand Down

0 comments on commit 167b9e4

Please sign in to comment.