mirror of
https://gitlab.manjaro.org/applications/manjaro-architect
synced 2024-11-09 19:11:02 +00:00
offer yaourt with base-devel group; https://forum.manjaro.org/t/manjaro-architect-0-8/19291/141
This commit is contained in:
parent
0d726d9531
commit
84b4472572
@ -206,14 +206,14 @@ install_base() {
|
|||||||
package_list=$PROFILES/shared/Packages-Root
|
package_list=$PROFILES/shared/Packages-Root
|
||||||
echo "" > ${PACKAGES}
|
echo "" > ${PACKAGES}
|
||||||
echo "" > ${ANSWER}
|
echo "" > ${ANSWER}
|
||||||
BTRF_CHECK=$(echo "btrfs-progs" "-" off)
|
BTRF_CHECK=$(echo "btrfs-progs" "" off)
|
||||||
F2FS_CHECK=$(echo "f2fs-tools" "-" off)
|
F2FS_CHECK=$(echo "f2fs-tools" "" off)
|
||||||
KERNEL="n"
|
KERNEL="n"
|
||||||
mhwd-kernel -l | awk '/linux/ {print $2}' > /tmp/.available_kernels
|
mhwd-kernel -l | awk '/linux/ {print $2}' > /tmp/.available_kernels
|
||||||
kernels=$(cat /tmp/.available_kernels)
|
kernels=$(cat /tmp/.available_kernels)
|
||||||
|
|
||||||
# User to select initsystem
|
# User to select initsystem
|
||||||
DIALOG " $_ChsInit " --menu "\n$_WarnOrc\n " 0 0 2 \
|
DIALOG " $_ChsInit " --menu "\n$_Note\n$_WarnOrc\n$(evaluate_profiles)\n " 0 0 2 \
|
||||||
"1" "systemd" \
|
"1" "systemd" \
|
||||||
"2" "openrc" 2>${INIT}
|
"2" "openrc" 2>${INIT}
|
||||||
|
|
||||||
@ -232,9 +232,9 @@ install_base() {
|
|||||||
echo "" > /mnt/.base
|
echo "" > /mnt/.base
|
||||||
# Choose kernel and possibly base-devel
|
# Choose kernel and possibly base-devel
|
||||||
DIALOG " $_InstBseTitle " --checklist "\n$_InstStandBseBody$_UseSpaceBar\n " 0 0 13 \
|
DIALOG " $_InstBseTitle " --checklist "\n$_InstStandBseBody$_UseSpaceBar\n " 0 0 13 \
|
||||||
"base-devel" "-" off \
|
"yaourt + base-devel" "-" off \
|
||||||
$(cat /tmp/.available_kernels | awk '$0=$0" - off"') 2>${PACKAGES} || return 0
|
$(cat /tmp/.available_kernels | awk '$0=$0" - off"') 2>${PACKAGES} || return 0
|
||||||
cat ${PACKAGES} | tr ' ' '\n' >> /mnt/.base
|
cat ${PACKAGES} | sed 's/+ \|\"//g' | tr ' ' '\n' >> /mnt/.base
|
||||||
|
|
||||||
if [[ $(cat ${PACKAGES}) == "" ]]; then
|
if [[ $(cat ${PACKAGES}) == "" ]]; then
|
||||||
# Check to see if a kernel is already installed
|
# Check to see if a kernel is already installed
|
||||||
@ -273,7 +273,7 @@ install_base() {
|
|||||||
[[ $(cat /tmp/.modules) == "" ]] && return 0
|
[[ $(cat /tmp/.modules) == "" ]] && return 0
|
||||||
echo " " >> /mnt/.base
|
echo " " >> /mnt/.base
|
||||||
check_for_error "modules: $(cat /tmp/.modules)"
|
check_for_error "modules: $(cat /tmp/.modules)"
|
||||||
for kernel in $(cat ${PACKAGES} | grep -v "base-devel") ; do
|
for kernel in $(cat ${PACKAGES} | grep -vE '(yaourt|base-devel)'); do
|
||||||
cat /tmp/.modules | sed "s/KERNEL/\n$kernel/g" >> /mnt/.base
|
cat /tmp/.modules | sed "s/KERNEL/\n$kernel/g" >> /mnt/.base
|
||||||
done
|
done
|
||||||
echo " " >> /mnt/.base
|
echo " " >> /mnt/.base
|
||||||
@ -419,8 +419,8 @@ DISABLED_FOR_NOW
|
|||||||
# Grub auto-detects installed kernels, etc. Syslinux does not, hence the extra code for it.
|
# Grub auto-detects installed kernels, etc. Syslinux does not, hence the extra code for it.
|
||||||
bios_bootloader() {
|
bios_bootloader() {
|
||||||
DIALOG " $_InstBiosBtTitle " --menu "\n$_InstBiosBtBody\n " 0 0 2 \
|
DIALOG " $_InstBiosBtTitle " --menu "\n$_InstBiosBtBody\n " 0 0 2 \
|
||||||
"grub" "-" \
|
"grub" "" \
|
||||||
"grub + os-prober" "-" 2>${PACKAGES} || return 0
|
"grub + os-prober" "" 2>${PACKAGES} || return 0
|
||||||
clear
|
clear
|
||||||
|
|
||||||
# If something has been selected, act
|
# If something has been selected, act
|
||||||
|
Loading…
Reference in New Issue
Block a user