setup-disk ignores proxy setting in setup-alpine before it
Found in alpine-virt-3.18.0_rc5-x86_64.iso
Setup proxy server in setup-alpine
HTTP/FTP proxy URL? (e.g. 'http://proxy:8080', or 'none') [none] http://192.168.99.10:3128
Which NTP client to run? ('busybox', 'openntpd', 'chrony' or 'none') [chrony]
But then ignored when running setup-disk
# setup-disk -m sys /mnt
...
ERROR: zstd-libs-1.5.5-r4: network error (check Internet connection and firewall)
ERROR: kmod-30-r3: network error (check Internet connection and firewall)
ERROR: kmod-openrc-30-r3: network error (check Internet connection and firewall)
ERROR: lddtree-1.27-r0: network error (check Internet connection and firewall)
ERROR: argon2-libs-20190702-r4: network error (check Internet connection and firewall)
ERROR: device-mapper-libs-2.03.21-r2: network error (check Internet connection and firewall)
...
# cat /etc/profile.d/proxy.sh
# this file was generated with and might get overwritten by setup-proxy
export http_proxy=http://192.168.99.10:3128
export https_proxy=http://192.168.99.10:3128
export ftp_proxy=http://192.168.13.99:3128
export no_proxy=localhost
I guess setup-disk
should be sourcing /etc/profile.d/proxy.sh
Workaround needed currently
test-domu:~# . /etc/profile.d/proxy.sh
test-domu:~# umount /mnt/
test-domu:~# mkfs.ext4 /dev/xvda1
test-domu:~# mount -t ext4 /dev/xvda1 /mnt
test-domu:~# setup-disk -m sys /mnt
Installing system on /dev/xvda1:
extlinux: Not a directory: /mnt/boot
100% ████████████████████████████████████████████==> initramfs: creating /boot/initramfs-virt
/boot is device /dev/xvda1
extlinux: no previous syslinux boot sector found
You might need fix the MBR to be able to boot