Skip to content

Commit

Permalink
rofl-containers: Handle /run in stage 1
Browse files Browse the repository at this point in the history
  • Loading branch information
kostko committed Jan 20, 2025
1 parent 699b25e commit 5e0e6a9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rofl-containers/src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,10 @@ pub async fn init(kms: Arc<dyn services::kms::KmsService>) -> Result<()> {
// Mount filesystem as /storage.
run_cmd!(mount "/dev/mapper/storage" "/storage")?;

// Setup /run and /var.
// Setup /var.
run_cmd!(
mkdir -p "/storage/run";
mkdir -p "/storage/var/lib";
mkdir -p "/storage/var/cache";
mount --bind "/storage/run" "/run";
mount --bind "/storage/var" "/var";
)?;

Expand Down

0 comments on commit 5e0e6a9

Please sign in to comment.