diff --git a/sources/api/bootstrap-containers/README.md b/sources/api/bootstrap-containers/README.md index 59e6a93a9a2..b3358381665 100644 --- a/sources/api/bootstrap-containers/README.md +++ b/sources/api/bootstrap-containers/README.md @@ -44,7 +44,7 @@ USER_DATA_DIR=/.bottlerocket/bootstrap-containers/current # This is the in-container view of where the host's `/var` can be accessed. HOST_VAR_DIR=/.bottlerocket/rootfs/var # The directory that'll be created by this bootstrap container -MY_HOST_DIR=$VAR_DIR/lib/my_directory +MY_HOST_DIR=$HOST_VAR_DIR/lib/my_directory # Create it! mkdir -p "$MY_HOST_DIR" # Write the user-data to stdout (to the journal) and to our new path: @@ -74,4 +74,4 @@ journalctl -u bootstrap-containers@bear.service ## Colophon -This text was generated using [cargo-readme](https://crates.io/crates/cargo-readme), and includes the rustdoc from `src/main.rs`. \ No newline at end of file +This text was generated using [cargo-readme](https://crates.io/crates/cargo-readme), and includes the rustdoc from `src/main.rs`. diff --git a/sources/api/bootstrap-containers/src/main.rs b/sources/api/bootstrap-containers/src/main.rs index 75c7b848f42..71304f2a14c 100644 --- a/sources/api/bootstrap-containers/src/main.rs +++ b/sources/api/bootstrap-containers/src/main.rs @@ -41,7 +41,7 @@ USER_DATA_DIR=/.bottlerocket/bootstrap-containers/current # This is the in-container view of where the host's `/var` can be accessed. HOST_VAR_DIR=/.bottlerocket/rootfs/var # The directory that'll be created by this bootstrap container -MY_HOST_DIR=$VAR_DIR/lib/my_directory +MY_HOST_DIR=$HOST_VAR_DIR/lib/my_directory # Create it! mkdir -p "$MY_HOST_DIR" # Write the user-data to stdout (to the journal) and to our new path: