mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
'added install-info workaround, fixed configure part'
This commit is contained in:
parent
19899d4e3b
commit
8eb91d7cca
2 changed files with 24 additions and 22 deletions
|
@ -92,6 +92,10 @@ if [ $? -gt 0 ]; then
|
||||||
umount $DESTDIR/proc $DESTDIR/sys $DESTDIR/dev
|
umount $DESTDIR/proc $DESTDIR/sys $DESTDIR/dev
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
### HACK to fix infofiles in bash and texinfo!
|
||||||
|
echo "Workaround for fixing bash and texinfo infofiles..."
|
||||||
|
$PACMAN -S texinfo 2>&1 >> /tmp/pacman.log
|
||||||
|
$PACMAN -S bash 2>&1 >> /tmp/pacman.log
|
||||||
|
|
||||||
umount $DESTDIR/proc $DESTDIR/sys $DESTDIR/dev
|
umount $DESTDIR/proc $DESTDIR/sys $DESTDIR/dev
|
||||||
|
|
||||||
|
|
|
@ -954,6 +954,9 @@ installpkg() {
|
||||||
else
|
else
|
||||||
echo -e "\nPackage Installation Complete." >>/tmp/pacman.log
|
echo -e "\nPackage Installation Complete." >>/tmp/pacman.log
|
||||||
fi
|
fi
|
||||||
|
### HACK to fix infofiles in bash and texinfo!
|
||||||
|
[ $(echo $PACKAGES | grep texinfo) ] && $PACMAN -S texinfo 2>&1 >> /tmp/pacman.log
|
||||||
|
[ $(echo $PACKAGES | grep bash) ] && $PACMAN -S bash 2>&1 >> /tmp/pacman.log
|
||||||
rm /tmp/setup-pacman-running
|
rm /tmp/setup-pacman-running
|
||||||
) &
|
) &
|
||||||
|
|
||||||
|
@ -1549,12 +1552,12 @@ auto_hwdetect()
|
||||||
HWDETECTHOSTCONTROLLER=""
|
HWDETECTHOSTCONTROLLER=""
|
||||||
HWDETECTHOOKS=""
|
HWDETECTHOOKS=""
|
||||||
HWDETECTRC=""
|
HWDETECTRC=""
|
||||||
DIALOG --yesno "PRECONFIGURATION?\n-----------------\n\nDo you want to use 'hwdetect' for:\n'/etc/rc.conf' and '/etc/mkinitcpio.conf'?\n\nThis ensures consistent ordering of your hard disk / usb controllers,\nnetwork and sound devices.\n\nIt is recommended to say 'YES' here." 18 70 && HWDETECT="yes"
|
DIALOG --yesno "PRECONFIGURATION?\n-----------------\n\nDo you want to use 'hwdetect' for:\n'/etc/rc.conf' and '/etc/mkinitcpio.conf'?\n\nThis ensures consistent ordering of your hard disk / usb controllers, network and sound devices.\n\nIt is recommended to say 'YES' here." 18 70 && HWDETECT="yes"
|
||||||
if [ "$HWDETECT" = "yes" ]; then
|
if [ "$HWDETECT" = "yes" ]; then
|
||||||
[ "$(vmware-detect)" ] && HWPARAMETER="$HWPARAMETER --vmware"
|
[ "$(vmware-detect)" ] && HWPARAMETER="$HWPARAMETER --vmware"
|
||||||
[ "$(grep -qw ide-legacy /proc/cmdline)" ] && HWPARAMETER="$HWPARAMETER --ide-legacy"
|
[ "$(grep -qw ide-legacy /proc/cmdline)" ] && HWPARAMETER="$HWPARAMETER --ide-legacy"
|
||||||
! [ "$(grep '^KEYMAP="us"' $DESTDIR/etc/rc.conf)" ] && HWPARAMETER="$HWPARAMETER --keymap"
|
! [ "$(grep '^KEYMAP="us"' $DESTDIR/etc/rc.conf)" ] && HWPARAMETER="$HWPARAMETER --keymap"
|
||||||
[ "$(cat /proc/modules | grep usbhid)" ] && HWPARAMETER="$HWPARAMETER --usbinput"
|
[ "$(cat /proc/modules | grep hid)" ] && HWPARAMETER="$HWPARAMETER --usbinput"
|
||||||
if [ "$(cat /proc/modules | grep usb_storage)" ]; then
|
if [ "$(cat /proc/modules | grep usb_storage)" ]; then
|
||||||
DIALOG --defaultno --yesno "Setup detected usb storage driver...\nDo you need support for booting from usb devices?" 0 0 && HWPARAMETER="$HWPARAMETER --usb"
|
DIALOG --defaultno --yesno "Setup detected usb storage driver...\nDo you need support for booting from usb devices?" 0 0 && HWPARAMETER="$HWPARAMETER --usb"
|
||||||
fi
|
fi
|
||||||
|
@ -1655,7 +1658,7 @@ configure_system()
|
||||||
{
|
{
|
||||||
|
|
||||||
## PREPROCESSING ##
|
## PREPROCESSING ##
|
||||||
# only done on first invocation of configure_system
|
# only done on first invocation of configure_system and redone on canceled configure system
|
||||||
if [ $S_CONFIG -eq 0 ]; then
|
if [ $S_CONFIG -eq 0 ]; then
|
||||||
auto_ftpmirror
|
auto_ftpmirror
|
||||||
auto_network
|
auto_network
|
||||||
|
@ -1663,13 +1666,13 @@ configure_system()
|
||||||
auto_dsdt
|
auto_dsdt
|
||||||
auto_hwdetect
|
auto_hwdetect
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## END PREPROCESS ##
|
## END PREPROCESS ##
|
||||||
[ "$EDITOR" ] || geteditor
|
[ "$EDITOR" ] || geteditor
|
||||||
FILE=""
|
FILE=""
|
||||||
|
|
||||||
# main menu loop
|
# main menu loop
|
||||||
while true; do
|
while true; do
|
||||||
|
S_CONFIG=0
|
||||||
if [ -n "$FILE" ]; then
|
if [ -n "$FILE" ]; then
|
||||||
DEFAULT="--default-item $FILE"
|
DEFAULT="--default-item $FILE"
|
||||||
else
|
else
|
||||||
|
@ -1693,6 +1696,7 @@ configure_system()
|
||||||
FILE="$(cat $ANSWER)"
|
FILE="$(cat $ANSWER)"
|
||||||
|
|
||||||
if [ "$FILE" = "Return" -o -z "$FILE" ]; then # exit
|
if [ "$FILE" = "Return" -o -z "$FILE" ]; then # exit
|
||||||
|
S_CONFIG=1
|
||||||
break
|
break
|
||||||
elif [ "$FILE" = "/etc/mkinitcpio.conf" ]; then # non-file
|
elif [ "$FILE" = "/etc/mkinitcpio.conf" ]; then # non-file
|
||||||
DIALOG --msgbox "The mkinitcpio.conf file controls which modules will be placed into the initramfs for your system's kernel.\n\n- Non US keymap users should add 'keymap' to HOOKS= array\n- USB keyboard users should add 'usbinput' to HOOKS= array\n- If you install under VMWARE add 'BusLogic' to MODULES= array\n- raid, lvm2, encrypt are not enabled by default\n- 2 or more disk controllers, please specify the correct module\n loading order in MODULES= array \n\nMost of you will not need to change anything in this file." 18 70
|
DIALOG --msgbox "The mkinitcpio.conf file controls which modules will be placed into the initramfs for your system's kernel.\n\n- Non US keymap users should add 'keymap' to HOOKS= array\n- USB keyboard users should add 'usbinput' to HOOKS= array\n- If you install under VMWARE add 'BusLogic' to MODULES= array\n- raid, lvm2, encrypt are not enabled by default\n- 2 or more disk controllers, please specify the correct module\n loading order in MODULES= array \n\nMost of you will not need to change anything in this file." 18 70
|
||||||
|
@ -1720,24 +1724,18 @@ configure_system()
|
||||||
$EDITOR ${DESTDIR}${FILE}
|
$EDITOR ${DESTDIR}${FILE}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
## POSTPROCESSING ##
|
if [ $S_CONFIG -eq 1 ]; then
|
||||||
|
# only done on normal exit of configure menu
|
||||||
# adjust time
|
## POSTPROCESSING ##
|
||||||
#
|
# adjust time
|
||||||
auto_timesetting
|
auto_timesetting
|
||||||
|
# /etc/initcpio.conf
|
||||||
# /etc/initcpio.conf
|
run_mkinitcpio
|
||||||
#
|
# /etc/locale.gen
|
||||||
run_mkinitcpio
|
chroot ${DESTDIR} locale-gen > /dev/null 2>&1
|
||||||
|
## END POSTPROCESSING ##
|
||||||
# /etc/locale.gen
|
NEXTITEM="7"
|
||||||
#
|
fi
|
||||||
chroot ${DESTDIR} locale-gen > /dev/null 2>&1
|
|
||||||
|
|
||||||
## END POSTPROCESSING ##
|
|
||||||
|
|
||||||
S_CONFIG=1
|
|
||||||
NEXTITEM="7"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
install_bootloader()
|
install_bootloader()
|
||||||
|
|
Loading…
Reference in a new issue