diff options
author | Juan RP <xtraeme@voidlinux.eu> | 2015-06-03 14:36:04 +0200 |
---|---|---|
committer | Juan RP <xtraeme@voidlinux.eu> | 2015-06-03 14:36:04 +0200 |
commit | 9f809e5211749c09e05dd4647bd34bbe6676d23d (patch) | |
tree | 2a41c41d2da1ed21029edf5429bff7ec4fcf666d | |
parent | f80057f06c79cb734ebf4b1c58b7a5ea22b17f4a (diff) | |
download | hrmpf-9f809e5211749c09e05dd4647bd34bbe6676d23d.tar.gz hrmpf-9f809e5211749c09e05dd4647bd34bbe6676d23d.tar.xz hrmpf-9f809e5211749c09e05dd4647bd34bbe6676d23d.zip |
installer: repair configuration of pkgs with network installation.
Close #28
-rw-r--r-- | installer.sh.in | 8 |
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() { |