mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-09 19:36:47 +00:00
解决ubuntu2210版本无法正确编译grub,以及正确安装qemu的问题 (#176)
This commit is contained in:
parent
4177d0327c
commit
b66beefd4e
@ -59,7 +59,7 @@ install_ubuntu_debian_pkg()
|
|||||||
|
|
||||||
if [ -z "$(which qemu-system-x86_64)" ]; then
|
if [ -z "$(which qemu-system-x86_64)" ]; then
|
||||||
echo "正在安装QEMU虚拟机..."
|
echo "正在安装QEMU虚拟机..."
|
||||||
sudo $1 install -y qemu qemu-system qemu-kvm
|
sudo $1 install -y qemu-system qemu-kvm
|
||||||
else
|
else
|
||||||
echo "QEMU已经在您的电脑上安装!"
|
echo "QEMU已经在您的电脑上安装!"
|
||||||
fi
|
fi
|
||||||
|
@ -50,17 +50,17 @@ sudo apt-get install -y \
|
|||||||
cd grub-2.06
|
cd grub-2.06
|
||||||
echo "开始安装grub2.06"
|
echo "开始安装grub2.06"
|
||||||
#编译安装三个版本的grub
|
#编译安装三个版本的grub
|
||||||
./configure --target=i386 --prefix=${grub_dir_i386_legacy} || exit 1
|
./configure --target=i386 --prefix=${grub_dir_i386_legacy} --disable-werror || exit 1
|
||||||
make -j $(nproc) || exit 1
|
make -j $(nproc) || exit 1
|
||||||
sudo make install || exit 1
|
sudo make install || exit 1
|
||||||
make clean || exit 1
|
make clean || exit 1
|
||||||
|
|
||||||
./configure --target=i386 --with-platform=efi --prefix=${grub_dir_i386_efi} || exit 1
|
./configure --target=i386 --with-platform=efi --prefix=${grub_dir_i386_efi} --disable-werror || exit 1
|
||||||
make -j $(nproc) || exit 1
|
make -j $(nproc) || exit 1
|
||||||
sudo make install || exit 1
|
sudo make install || exit 1
|
||||||
make clean || exit 1
|
make clean || exit 1
|
||||||
|
|
||||||
./configure --target=x86_64 --with-platform=efi --prefix=${grub_dir_x86_64_efi} || exit 1
|
./configure --target=x86_64 --with-platform=efi --prefix=${grub_dir_x86_64_efi} --disable-werror || exit 1
|
||||||
make -j $(nproc) || exit 1
|
make -j $(nproc) || exit 1
|
||||||
sudo make install || exit 1
|
sudo make install || exit 1
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user