about summary refs log tree commit diff
path: root/installer.sh.in
diff options
context:
space:
mode:
authorJuan RP <xtraeme@voidlinux.eu>2015-06-03 14:36:04 +0200
committerJuan RP <xtraeme@voidlinux.eu>2015-06-03 14:36:04 +0200
commit9f809e5211749c09e05dd4647bd34bbe6676d23d (patch)
tree2a41c41d2da1ed21029edf5429bff7ec4fcf666d /installer.sh.in
parentf80057f06c79cb734ebf4b1c58b7a5ea22b17f4a (diff)
downloadhrmpf-9f809e5211749c09e05dd4647bd34bbe6676d23d.tar.gz
hrmpf-9f809e5211749c09e05dd4647bd34bbe6676d23d.tar.xz
hrmpf-9f809e5211749c09e05dd4647bd34bbe6676d23d.zip
installer: repair configuration of pkgs with network installation.
Close #28
Diffstat (limited to 'installer.sh.in')
-rw-r--r--installer.sh.in8
1 files changed, 3 insertions, 5 deletions
diff --git a/installer.sh.in b/installer.sh.in
index 90a69bc..23c7583 100644
--- a/installer.sh.in
+++ b/installer.sh.in
@@ -799,16 +799,14 @@ install_packages() {
     _arch=$(xbps-uhelper arch)
 
     stdbuf -oL env XBPS_ARCH=${_arch} \
-        xbps-install  -r $TARGETDIR -Sy ${_syspkg} ${_grub} 2>&1 | \
+        xbps-install  -r $TARGETDIR -SyU ${_syspkg} ${_grub} 2>&1 | \
         DIALOG --title "Installing base system packages..." \
         --programbox 24 80
     if [ $? -ne 0 ]; then
         DIE 1
     fi
-    # If uname -m != _arch perform a reconfiguration.
-    if [ "$(uname -m)" != "${_arch}" ]; then
-        XBPS_ARCH=${_arch} xbps-reconfigure -r $TARGETDIR -a
-    fi
+    xbps-reconfigure -r $TARGETDIR -f base-files >/dev/null 2>&1
+    chroot $TARGETDIR xbps-reconfigure -a
 }
 
 enable_dhcpd() {