改grub,用于安装凤凰os,(已解决)
Tofloor
poster avatar
duoling
deepin
2017-11-13 04:05
Author
本帖最后由 duoling 于 2017-11-13 17:15 编辑

翻了以前的帖子,并不懂啥叫二级grub,修改/etc/default/grub通过update-grub

具体做法是
编辑
/boot/grub/grub.cfg
添加

menuentry 'Phoenix OS(x64)' --class android-x86 {
linux /Phoenix/kernel root=/dev/ram0 androidboot.hardware=android_x86_64 androidboot.selinux=permissive quiet DATA=/Phoenix/data CREATE_DATA_IMG=1
SRC=/Phoenix SDCARD=/sd/sdcard.img
initrd /Phoenix/initrd.img
}

menuentry 'Phoenix OS'  --class windows --class os{
insmod ntfs
set root=(hd0,1)
linux /grub.exe
}

重启后,
发现还是原样。
所以改grub,到底用啥姿势。改etc的那个,怎么加参数?
Reply Favorite View the author
All Replies
avatar
170******87
deepin
2017-11-13 04:24
#1
The user is banned, and the content is hidden.
avatar
duoling
deepin
2017-11-13 04:31
#2
没看懂,这个是arch的?
Reply View the author
avatar
comzhong
deepin
2017-11-13 04:39
#3
建立一个空文件:/boot/grub/custom.cfg ,在里面写上你要添加的内容,重启就有了。
Reply View the author
avatar
sysop
deepin
2017-11-13 04:40
#4
好像我写的帖子。。。
不是efi引导的话
直接改/boot/grub/grub.cfg就行







    神奇的小尾巴:Mozilla/5.0 (Wayland; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0  (zh-CN)
    ——2017/11/12 下午8:40:35
             
    Reply View the author
    avatar
    duoling
    deepin
    2017-11-14 01:15
    #5
    https://bbs.deepin.org/post/148122
    好像我写的帖子。。。
    不是efi引导的话
    直接改/boot/grub/grub.cfg就行

    谢谢,已经好了。
    Reply View the author