-
Notifications
You must be signed in to change notification settings - Fork 0
/
memdisk.cpio
executable file
·181 lines (173 loc) · 6.5 KB
/
memdisk.cpio
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
0707010000EF2D000040000000000000000000000000015DA7DD8A00000000000000000000000300000000000000000000000500000000boot 0707010000EF2E000040000000000000000000000000015E0AA88D00000000000000000000000300000000000000000000000A00000000boot/grub 0707010000896F000081B60000000000000000000000015FD1AE90000004BC000000000000000300000000000000000000001200000000boot/grub/init.sh # Grub2-FileManager
# Copyright (C) 2016,2017,2018,2019,2020 A1ive.
#
# Grub2-FileManager is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Grub2-FileManager is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Grub2-FileManager. If not, see <http://www.gnu.org/licenses/>.
set pager=0;
cat --set=modlist ${prefix}/insmod.lst;
for module in ${modlist};
do
insmod ${module};
done;
export enable_progress_indicator=0;
export grub_secureboot="Not available";
if [ "${grub_platform}" = "efi" ];
then
search -s -f -q /efi/microsoft/boot/bootmgfw.efi;
if [ "${grub_cpu}" = "i386" ];
then
set EFI_ARCH="ia32";
elif [ "${grub_cpu}" = "arm64" ];
then
set EFI_ARCH="aa64";
else
set EFI_ARCH="x64";
fi;
source ${prefix}/pxeinit.sh;
net_detect;
0707010000EF32000040000000000000000000000000005E0733A500000000000000000000000300000000000000000000000D00000000boot/grub/ms 07070100021264000081B60000000000000000000000015FB7527D0000041C000000000000000300000000000000000000001500000000boot/grub/netboot.sh # Grub2-FileManager
# Copyright (C) 2020 A1ive.
#
# Grub2-FileManager is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Grub2-FileManager is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Grub2-FileManager. If not, see <http://www.gnu.org/licenses/>.
if [ "$grub_platform" = "efi" ];
then
set netbootxyz=netboot.xyz.efi
set chain=chainloader
else
set netbootxyz=netboot.xyz.lkrn
set chain=linux16
fi;
menuentry $"netboot.xyz" --class net {
set lang=en_US;
terminal_output console;
echo $"Please wait ...";
$chain (http,boot.netboot.xyz)/ipxe/$netbootxyz
}
source ${prefix}/global.sh;
0707010002126D000081B60000000000000000000000015EE1CF0200000552000000000000000300000000000000000000001500000000boot/grub/pxeinit.sh # Grub2-FileManager
# Copyright (C) 2020 A1ive.
#
# Grub2-FileManager is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Grub2-FileManager is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Grub2-FileManager. If not, see <http://www.gnu.org/licenses/>.
function net_detect {
export grub_netboot=0;
if [ "${bootdev}" != "tftp" ];
then
return;
fi;
if [ "${grub_platform}" = "efi" ];
then
if [ -z "${net_default_server}" -a -n "${net_efinet0_next_server}" ];
then
export net_default_server="${net_efinet0_next_server}";
fi;
if getargs --value "proxydhcp" proxydhcp;
then
export net_default_server="${proxydhcp}";
fi;
if [ -z "${net_default_server}" ];
then
return;
fi;
else
if [ -z "${net_default_server}" ];
then
export net_default_server="${net_pxe_next_server}";
fi;
fi;
export grub_netboot=1;
grubfm_set --boot 1;
}