3
为Archlinux安装Android双启动
source link: https://www.lujun9972.win/blog/2018/05/24/%E4%B8%BAarchlinux%E5%AE%89%E8%A3%85android%E5%8F%8C%E5%90%AF%E5%8A%A8/index.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
为Archlinux安装Android双启动
从官网上下载对应的rpm安装包
wget http://pumath.dl.osdn.jp/android-x86/67834/android-x86-7.1-r2.i686.rpm
安装rpmextract
sudo pacman -S rpmextract --noconfirm
resolving dependencies... looking for conflicting packages... Packages (1) rpmextract-1.0-7 Total Installed Size: 0.00 MiB Net Upgrade Size: 0.00 MiB :: Proceed with installation? [Y/n] (0/1) checking keys in keyring [----------------------] 0% (1/1) checking keys in keyring [######################] 100% (0/1) checking package integrity [----------------------] 0% (1/1) checking package integrity [######################] 100% (0/1) loading package files [----------------------] 0% (1/1) loading package files [######################] 100% (0/1) checking for file conflicts [----------------------] 0% (1/1) checking for file conflicts [######################] 100% (0/1) checking available disk space [----------------------] 0% (1/1) checking available disk space [######################] 100% :: Processing package changes... (1/1) reinstalling rpmextract [----------------------] 0% (1/1) reinstalling rpmextract [######################] 100% :: Running post-transaction hooks... (1/1) Arming ConditionNeedsUpdate...
rpmextract会把rpm中的内容解压到当前目录,解压出来的目录结构以根目录(
/
)为基准解压下载下来的android rpm文件
cd / sudo rpmextract.sh ~lujun9972/android/android-x86-7.1-r2.i686.rpm
往
/etc/grub.d/40_custom
中添加如下内容menuentry "Android 7.1-r2" { search --set=root --file /android-7.1-r2/kernel linux /android-7.1-r2/kernel quiet root=/dev/ram0 androidboot.selinux=permissive initrd /android-7.1-r2/initrd.img }
可以通过执行下面脚本来添加
cat >>/etc/grub.d/40_custom <<'EOF' menuentry "Android 7.1-r2" { search --set=root --file /android-7.1-r2/kernel linux /android-7.1-r2/kernel quiet root=/dev/ram0 androidboot.selinux=permissive initrd /android-7.1-r2/initrd.img } EOF
运行
grub-mkconfig
更新grub配置文件sudo grub-mkconfig -o /boot/grub/grub.cfg
- 重启之后就能看到"Android 7.1-r2"的启动菜单了
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK