Code Monkey home page Code Monkey logo

Comments (13)

clh021 avatar clh021 commented on July 18, 2024

上面配置的脚本是我测试通过的配置。您可以参照这里来查看更多提示。

deepin15.3如果没有提前选择好语言,将只能安装英文版,然后输入法,QQ等本地化软件都没有了,后期安装容易出现问题。而15.4还没有发布,即使发布了也不知是否会没有问题,所以才有如此迫切的想法。

如果您没有时间完善修复以上内容,还麻烦您优先看第四个问题。谢谢您!

from grub2-filemanager.

a1ive avatar a1ive commented on July 18, 2024

boot/grub/main.sh 35行

function main{
	if test -z "$path"; then
+		menuentry "My Menu"{
+		}

也可在 boot/grub/boot.sh 文件开始处添加菜单。boot.sh里面的菜单是按[B]键才会显示的。
寻找外置配置文件是可以实现的。

from grub2-filemanager.

a1ive avatar a1ive commented on July 18, 2024

一直往下选的话,能否从最后一个文件选项循环到最上面一个文件选项?

grub2本身暂不支持此操作。

from grub2-filemanager.

a1ive avatar a1ive commented on July 18, 2024
  1. 不妥。
    如果LiveCD本身没有中文字体或不支持中文 (例如Debian) ,就会乱码。
    Deepin在进入系统后仍可以调节语言设置,注销后再登录即可。

snipaste20170324_090650

from grub2-filemanager.

clh021 avatar clh021 commented on July 18, 2024

您好!感谢您的热心回复!
本人亲测过,加上中文需要参数并不会有乱码,中文语言包不全会用繁体,或者英文替代显示,,即使没有语言包也会忽略这个参数用默认的英文显示,,不过不要紧,晚些时候,这个我自己添加菜单测试通过了再反馈给您。

另外 Deepin15.3 系统需要提前选择好语言包是为了内置安装好的本地化软件环境,,安装好后再修改语言,软件包依然得一个一个安装,稳定性比不上内置的配置。 不知道15.4正式版会不会是在启动之后安装之时可选择语言。

如果我想实现寻找外置配置文件以启动大致如何实现呢?如果不复杂代码量不多,您能否赐教一二?如果略微复杂我就暂时放弃这个想法。

再次感谢您的热心回复!祝幸福平安!

from grub2-filemanager.

a1ive avatar a1ive commented on July 18, 2024

如果我想实现寻找外置配置文件以启动大致如何实现呢?如果不复杂代码量不多,您能否赐教一二?如果略微复杂我就暂时放弃这个想法。

自动搜索外置菜单

2、好像发现了一些隐藏的文件
[暂时没有截图,需要的话,稍后截图贴出],这些文件是PE,Win7,linux都没出现的

请提供截图

from grub2-filemanager.

clh021 avatar clh021 commented on July 18, 2024

img_20170324_133910
img_20170324_133922
img_20170324_133952
img_20170324_133959
qq 20170324133803
20170324133603

from grub2-filemanager.

clh021 avatar clh021 commented on July 18, 2024

此前我在windows下顺利生产了 iso 文件
但是linux下(Deepin15.3)提示没有

copying videoinfo.mod
copying xnu.mod
3305 块
build.sh:行37: mkisofs: 未找到命令
efi common files
2178 块
x86_64-efi
i386-efi

$ sudo apt install mkisofs
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
现在没有可用的软件包 mkisofs,但是它被其它的软件包引用了。
这可能意味着这个缺失的软件包可能已被废弃,
或者只能在其他发布源中找到
可是下列软件包取代了它:
  genisoimage:i386 genisoimage

E: 软件包 mkisofs 没有可供安装的候选者

$ sudo apt install genisoimage
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
genisoimage is already the newest version (9:1.1.11-3).

#修改脚本37行mkisofs  >  genisoimage 之后

copying xnu.mod
3305 块
Warning: creating filesystem that does not conform to ISO-9660.
I: -input-charset not specified, using utf-8 (detected in locale settings)
Size of boot image is 4 sectors -> No emulation
Total translation table size: 2048
Total rockridge attributes bytes: 409
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 0
1196 extents written (2 MB)
efi common files
2178 块
x86_64-efi
i386-efi

from grub2-filemanager.

a1ive avatar a1ive commented on July 18, 2024

此前我在windows下顺利生产了 iso 文件
但是linux下(Deepin15.3)提示没有

已修复:
033793e

from grub2-filemanager.

a1ive avatar a1ive commented on July 18, 2024

NTFS隐藏文件请参考:
https://zhidao.baidu.com/question/273630234.html

from grub2-filemanager.

a1ive avatar a1ive commented on July 18, 2024

在Deepin 15.4中,/boot/grub/grub.cfg与/isolinux/live.cfg的参数不一样
/boot/grub/grub.cfg
menuentry "Install Deepin" {
set gfxpayload=keep
linux /live/vmlinuz.efi boot=live union=overlay livecd-installer locale=zh_CN quiet splash --
initrd /live/initrd.lz
}
/isolinux/live.cfg
label live
menu label ^Install Deepin
menu default
linux /live/vmlinuz
initrd /live/initrd.lz
append boot=live components quiet splash union=overlay livecd-installer locales=zh_CN.UTF-8
请问这两者有何区别?是不是bug?

from grub2-filemanager.

a1ive avatar a1ive commented on July 18, 2024

经测试,locale=zh_CN无效, locales=zh_CN.UTF-8有效。
另外,如果ISO中没有中文字体,使用此参数会导致乱码,例如Kali Linux。@clh021

from grub2-filemanager.

sky5454 avatar sky5454 commented on July 18, 2024

根据Deepin 15.4 的grub菜单写即可,里面是官方写法

from grub2-filemanager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.