Commit a36b3448 authored by Natanael Copa's avatar Natanael Copa

setup-disk: use repositories both from running system and apkovl

parent 4ff7dd22
......@@ -139,10 +139,14 @@ install_mounted_root() {
local apkflags="--quiet --progress --update-cache --clean-protected"
local pkgs=$(cat "$mnt"/var/lib/apk/world)
pkgs="$pkgs acct linux-grsec alpine-base"
local repos=$(sed -e 's/\#.*//' /etc/apk/repositories)
local repoflags=
for i in $repos; do
repoflags="$repoflags --repository $i"
done
apk add --root "$mnt" $apkflags --overlay-from-stdin \
--repositories-file /etc/apk/repositories \
$pkgs <$ovlfiles>/dev/null || return 1
$repoflags $pkgs <$ovlfiles>/dev/null || return 1
echo ""
# make things bootable
......
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