Update for Void Linux renaming
This commit is contained in:
@@ -60,7 +60,7 @@ userns_config="/usr/share/lxc/config/voidlinux.userns.conf"
|
|||||||
|
|
||||||
pkg_blacklist=("linux>=0" "e2fsprogs>=0" "btrfs-progs>=0" "xfsprogs>=0" "f2fs-tools>=0" "dosfstools>=0")
|
pkg_blacklist=("linux>=0" "e2fsprogs>=0" "btrfs-progs>=0" "xfsprogs>=0" "f2fs-tools>=0" "dosfstools>=0")
|
||||||
base_packages=()
|
base_packages=()
|
||||||
for pkg in $(xbps-query -Mv --repository="http://repo2.voidlinux.eu/current/" -x base-system); do
|
for pkg in $(xbps-query -Mv --repository="https://alpha.de.repo.voidlinux.org/current/" -x base-system); do
|
||||||
containsElement "$pkg" "${pkg_blacklist[@]}" || base_packages+=($pkg)
|
containsElement "$pkg" "${pkg_blacklist[@]}" || base_packages+=($pkg)
|
||||||
done
|
done
|
||||||
declare -a additional_packages
|
declare -a additional_packages
|
||||||
@@ -87,7 +87,7 @@ copy_configuration() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
install_void() {
|
install_void() {
|
||||||
if ! yes | xbps-install -Sy -R http://repo2.voidlinux.eu/current -r "${rootfs_path}" "${base_packages[@]}"
|
if ! yes | xbps-install -Sy -R https://alpha.de.repo.voidlinux.org/current -r "${rootfs_path}" "${base_packages[@]}"
|
||||||
then
|
then
|
||||||
echo "Failed to install container packages"
|
echo "Failed to install container packages"
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
---
|
---
|
||||||
- name: lxc - install xbps build depencies
|
- name: lxc - install xbps build depencies
|
||||||
package: name="{{ item }}"
|
package: "name={{ item }}"
|
||||||
with_items:
|
with_items:
|
||||||
- zlib1g-dev
|
- zlib1g-dev
|
||||||
- pkg-config
|
- pkg-config
|
||||||
- libarchive-dev
|
- libarchive-dev
|
||||||
- libssl1.0-dev
|
- libssl-dev
|
||||||
|
|
||||||
- name: lxc - xbps git
|
- name: lxc - xbps git
|
||||||
git:
|
git:
|
||||||
|
|||||||
Reference in New Issue
Block a user