mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-08 18:26:48 +00:00
chore(tools): add the gentoo grub_auto_install support (#827)
This commit is contained in:
parent
975f77a3bc
commit
6cf1947dcf
@ -38,14 +38,25 @@ export OBJCOPY=objcopy
|
|||||||
if [ -d ${grub_dir_i386_efi}/bin ] && [ -d ${grub_dir_i386_legacy}/bin ] && [ -d ${grub_dir_x86_64_efi}/bin ] ; then
|
if [ -d ${grub_dir_i386_efi}/bin ] && [ -d ${grub_dir_i386_legacy}/bin ] && [ -d ${grub_dir_x86_64_efi}/bin ] ; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
#仅支持Ubuntu/Debain, Arch, Centos/RHEL8/Fedora下的自动安装
|
#仅支持Ubuntu/Debain, Arch, Centos/RHEL8/Fedora gentoo下的自动安装
|
||||||
supported_package_manager="apt-get pacman dnf"
|
supported_package_manager="apt-get pacman dnf yum emerge"
|
||||||
packages=("make binutils bison gcc gettext flex bison automake autoconf wget gawk" \
|
packages=("make binutils bison gcc gettext flex bison automake autoconf wget gawk" \
|
||||||
"make binutils bison gcc gettext flex bison automake autoconf wget gawk")
|
"make binutils bison gcc gettext flex bison automake autoconf wget gawk" \
|
||||||
|
"make binutils bison gcc gettext flex bison automake autoconf wget gawk" \
|
||||||
|
"make binutils bison gcc gettext flex bison automake autoconf wget gawk" \
|
||||||
|
"dev-build/make sys-devel/binutils sys-devel/bison sys-devel/gcc sys-devel/gettext sys-devel/flex dev-build/automake dev-build/autoconf net-misc/wget sys-apps/gawk")
|
||||||
update_options=("update" \
|
update_options=("update" \
|
||||||
"-Sy")
|
"-Sy" \
|
||||||
|
"update" \
|
||||||
|
"update" \
|
||||||
|
"--sync"
|
||||||
|
)
|
||||||
install_options=("install -y" \
|
install_options=("install -y" \
|
||||||
"-S --needed --noconfirm")
|
"-S --needed --noconfirm" \
|
||||||
|
"install -y" \
|
||||||
|
"install -y" \
|
||||||
|
""
|
||||||
|
)
|
||||||
found_pm=0
|
found_pm=0
|
||||||
pm_index=0
|
pm_index=0
|
||||||
for pm in ${supported_package_manager}; do
|
for pm in ${supported_package_manager}; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user