Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
a1ive committed Nov 5, 2020
1 parent d000246 commit b0ab1dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
1 change: 1 addition & 0 deletions grub2_cmd_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,7 @@ layout: default
- \-\-eltorito=DISK, -e 同时指定挂载 El Torito 镜像的盘符
- \-\-nb, -n 不启动此虚拟盘
- \-\-unmap=DISK, -x 屏蔽某磁盘
- \-\-first, -f 使虚拟盘排在磁盘列表的第一位,以解决 Windows 启动问题

### md5sum arg ...

Expand Down
11 changes: 1 addition & 10 deletions grub2_menu_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,6 @@ export color_highlight=black/white;
terminal_output gfxterm;

#### FUNCTION ####
function unmap_cd {
for dev in (cd*); do
if [ -e ${dev} ]; then
map -x ${dev};
fi;
done;
}

function to_g4d_path {
unset g4d_path;
if regexp --set=1:num '^\(hd[0-9]+,[a-zA-Z]*([0-9]+)\).*' "${1}"; then
Expand Down Expand Up @@ -95,8 +87,7 @@ menuentry "Boot Microsoft Windows 8/10" {
menuentry "Boot WinPE ISO" {
set iso_file="(hd0,2)/winpe.iso";
if [ "$grub_platform" = "efi" ]; then
unmap_cd;
map "${iso_file}";
map -f "${iso_file}";
elif [ "$grub_platform" = "pc" ]; then
to_g4d_path "${iso_file}";
if [ -n "${g4d_path}" ]; then
Expand Down

0 comments on commit b0ab1dc

Please sign in to comment.