Skip to content

Commit

Permalink
Merge pull request bottlerocket-os#3880 from sumukhballal/update_bott…
Browse files Browse the repository at this point in the history
…lerocket

Build: Update twoliter to v0.1.0 & SDK to v0.40.0
  • Loading branch information
sumukhballal authored Apr 10, 2024
2 parents 2064634 + 1936984 commit 1e3c68e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ BUILDSYS_ROOT_DIR = "${CARGO_MAKE_WORKING_DIRECTORY}"
# For binary installation, this should be a released version (prefixed with a v,
# for example v0.1.0). For the git sourcecode installation method, this can be
# any git rev, e.g. a tag, sha, or branch name.
TWOLITER_VERSION = "v0.0.7"
TWOLITER_VERSION = "v0.1.0"

# For binary installation, this is the GitHub repository that has binary release artifacts attached
# to it, for example https://github.com/bottlerocket-os/twoliter. For git sourcecode installation,
Expand Down
9 changes: 2 additions & 7 deletions Twoliter.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,5 @@ release-version = "1.20.0"

[sdk]
registry = "public.ecr.aws/bottlerocket"
name = "bottlerocket-sdk"
version = "v0.37.0"

[toolchain]
registry = "public.ecr.aws/bottlerocket"
name = "bottlerocket-toolchain"
version = "v0.37.0"
repo = "bottlerocket-sdk"
tag = "v0.40.0"
3 changes: 2 additions & 1 deletion sources/updater/updog/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ struct Config {
// mode: Option<{Automatic, Managed, Disabled}>
}

/// Prints a more specific message before exiting through usage().
/// Prints a more specific message before exiting through `usage()`.
fn usage_msg<S: AsRef<str>>(msg: S) -> ! {
eprintln!("{}\n", msg.as_ref());
usage();
Expand Down Expand Up @@ -248,6 +248,7 @@ async fn write_target_to_disk<P: AsRef<Path>>(
let mut f = std::fs::OpenOptions::new()
.write(true)
.create(true)
.truncate(true)
.open(&disk_path)
.context(error::OpenPartitionSnafu { path: disk_path })?;
std::io::copy(&mut reader, &mut f).context(error::WriteUpdateSnafu)?;
Expand Down

0 comments on commit 1e3c68e

Please sign in to comment.