mirror of
https://github.com/edu4rdshl/blackarch-devtools.git
synced 2026-07-17 23:24:47 +00:00
Use arch-nspawn instead of chroot.
This commit is contained in:
parent
16d361fbe1
commit
ffaeceb3c3
1 changed files with 2 additions and 1 deletions
|
|
@ -323,6 +323,7 @@ pub fn sync_chroot() {
|
|||
pub fn test_package(package: &str, executable: &str) {
|
||||
let pacman = get_vars("pacman");
|
||||
let chroot_blackarch = get_vars("chroot_blackarch");
|
||||
let devtools_nspawn = get_vars("nspawn");
|
||||
let install_package = Command::new("sudo")
|
||||
.args(&[&pacman, "--root", &chroot_blackarch, "-U", &package])
|
||||
.status()
|
||||
|
|
@ -335,7 +336,7 @@ pub fn test_package(package: &str, executable: &str) {
|
|||
)
|
||||
.unwrap();
|
||||
let execute_package = Command::new("sudo")
|
||||
.args(&["chroot", &chroot_blackarch, &executable])
|
||||
.args(&[&devtools_nspawn, &chroot_blackarch, executable])
|
||||
.status()
|
||||
.expect(
|
||||
"Failed to execute the {} binary in the chroot environment, check the binary name.",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue