installer: make remote install work with musl live images.
This commit is contained in:
parent
00dda59b0b
commit
9b4819f33a
@ -794,12 +794,20 @@ install_packages() {
|
|||||||
cp -a /usr/share/xbps.d $TARGETDIR/usr/share/
|
cp -a /usr/share/xbps.d $TARGETDIR/usr/share/
|
||||||
cp /var/db/xbps/keys/*.plist $TARGETDIR/var/db/xbps/keys
|
cp /var/db/xbps/keys/*.plist $TARGETDIR/var/db/xbps/keys
|
||||||
mkdir -p $TARGETDIR/boot/grub
|
mkdir -p $TARGETDIR/boot/grub
|
||||||
stdbuf -oL xbps-install -r $TARGETDIR -Sy ${_syspkg} ${_grub} 2>&1 | \
|
|
||||||
|
_arch=$(xbps-uhelper arch)
|
||||||
|
|
||||||
|
stdbuf -oL env XBPS_ARCH=${_arch} \
|
||||||
|
xbps-install -r $TARGETDIR -Sy ${_syspkg} ${_grub} 2>&1 | \
|
||||||
DIALOG --title "Installing base system packages..." \
|
DIALOG --title "Installing base system packages..." \
|
||||||
--programbox 24 80
|
--programbox 24 80
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
DIE 1
|
DIE 1
|
||||||
fi
|
fi
|
||||||
|
# If uname -m != _arch perform a reconfiguration.
|
||||||
|
if [ "$(uname -m)" != "${_arch}" ]; then
|
||||||
|
XBPS_ARCH=${_arch} xbps-reconfigure -r $TARGETDIR -a
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
enable_dhcpd() {
|
enable_dhcpd() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user