mirror of
https://github.com/edu4rdshl/blackarch-devtools.git
synced 2026-07-17 23:24:47 +00:00
Use zstd by default.
This commit is contained in:
parent
3196f2eeeb
commit
5dbdbeeba3
1 changed files with 10 additions and 0 deletions
|
|
@ -102,6 +102,16 @@ pub fn setup_chroot() {
|
||||||
if up_chroot.success() {
|
if up_chroot.success() {
|
||||||
writeln!(coloring("yellow"), "Enabling multilib repos...").unwrap();
|
writeln!(coloring("yellow"), "Enabling multilib repos...").unwrap();
|
||||||
Command::new(&devtools_nspawn).args(&[&chroot_root, "/bin/sh", "-c", "echo -e '\n[multilib]\nInclude = /etc/pacman.d/mirrorlist\n' | sudo tee -a /etc/pacman.conf > /dev/null"]).status().expect("Failed enabling multilib repos.");
|
Command::new(&devtools_nspawn).args(&[&chroot_root, "/bin/sh", "-c", "echo -e '\n[multilib]\nInclude = /etc/pacman.d/mirrorlist\n' | sudo tee -a /etc/pacman.conf > /dev/null"]).status().expect("Failed enabling multilib repos.");
|
||||||
|
writeln!(coloring("yellow"), "Changing makepkg.conf to use zstd...").unwrap();
|
||||||
|
Command::new(&devtools_nspawn)
|
||||||
|
.args(&[
|
||||||
|
&chroot_root,
|
||||||
|
"/bin/sh",
|
||||||
|
"-c",
|
||||||
|
"sed -i 's/^PKGEXT.*/PKGEXT='\\''.pkg.tar.zst'\\''/g' /etc/makepkg.conf",
|
||||||
|
])
|
||||||
|
.status()
|
||||||
|
.expect("Failed to change makepkg.conf");
|
||||||
writeln!(
|
writeln!(
|
||||||
coloring("yellow"),
|
coloring("yellow"),
|
||||||
"Configuring BlackArch Linux repo in the chroot environment..."
|
"Configuring BlackArch Linux repo in the chroot environment..."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue