Skip to content

Commit

Permalink
Merge pull request #135 from cgwalters/fix-bootloader
Browse files Browse the repository at this point in the history
install: Do use zipl on s390x
  • Loading branch information
jmarrero committed Sep 29, 2023
2 parents 0917560 + 5c30510 commit 70d0e7e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lib/src/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,17 @@ async fn initialize_ostree_root_from_self(
["admin", "init-fs", "--modern", rootfs.as_str()],
)?;

for (k, v) in [("sysroot.bootloader", "none"), ("sysroot.readonly", "true")] {
// Default to avoiding grub2-mkconfig etc., but we need to use zipl on s390x.
// TODO: Lower this logic into ostree proper.
let bootloader = if cfg!(target_arch = "s390x") {
"zipl"
} else {
"none"
};
for (k, v) in [
("sysroot.bootloader", bootloader),
("sysroot.readonly", "true"),
] {
Task::new("Configuring ostree repo", "ostree")
.args(["config", "--repo", "ostree/repo", "set", k, v])
.cwd(rootfs_dir)?
Expand Down

0 comments on commit 70d0e7e

Please sign in to comment.