Commit 817720d7 authored by udeved's avatar udeved

util-chroot: add set_branch()

parent a3e68647
......@@ -45,6 +45,11 @@ subvolume_delete_recursive() {
return 0
}
set_branch(){
local mnt="$1" branch="$2"
sed -e "s|^.*Branch = .*|Branch = $branch|" -i $mnt/etc/pacman-mirrors.conf
}
set_locale(){
local mnt="$1"
if [[ ! -f "$mnt/etc/locale.gen.bak" ]] && [[ ! -f "$mnt/etc/locale.conf.bak" ]];then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment