Skip to content

Commit

Permalink
feat: mount CACHE to /var/cache/apt/archives and use apt autoclean to…
Browse files Browse the repository at this point in the history
… reduce packages download time
  • Loading branch information
jiegec committed May 20, 2024
1 parent 4776ddc commit 69db819
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/actions/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ const DEFAULT_MOUNTS: &[(&str, &str)] = &[
("OUTPUT/debs/", "/debs/"),
("TREE", "/tree"),
("SRCS", "/var/cache/acbs/tarballs"),
("CACHE", "/var/cache/apt/archives"),
];
const UPDATE_SCRIPT: &str = r#"export DEBIAN_FRONTEND=noninteractive;apt-get update -y --allow-releaseinfo-change && apt-get -y -o Dpkg::Options::="--force-confnew" full-upgrade --autoremove --purge && apt clean"#;
const UPDATE_SCRIPT: &str = r#"export DEBIAN_FRONTEND=noninteractive;apt-get update -y --allow-releaseinfo-change && apt-get -y -o Dpkg::Options::="--force-confnew" full-upgrade --autoremove --purge && apt autoclean"#;

type MountOptions = (Vec<String>, Vec<(String, &'static str)>);
/// Ensure that the directories exist and mounted
Expand Down

0 comments on commit 69db819

Please sign in to comment.