Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
66d5946b
Commit
66d5946b
authored
Feb 02, 2021
by
longpanda
Browse files
VentoyLiveCD x86_64
parent
198dcd94
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
LiveCD/livecd.sh
LiveCD/livecd.sh
+8
-6
No files found.
LiveCD/livecd.sh
View file @
66d5946b
...
@@ -21,9 +21,9 @@ if ! [ -e $VENTOY_PATH/INSTALL/ventoy-${version}-linux.tar.gz ]; then
...
@@ -21,9 +21,9 @@ if ! [ -e $VENTOY_PATH/INSTALL/ventoy-${version}-linux.tar.gz ]; then
fi
fi
rm
-rf
ISO_TMP
rm
-rf
ISO_TMP
cp
$OPT
ISO ISO_TMP
cp
-a
ISO ISO_TMP
cp
$OPT
VTOY VTOY_TMP
cp
-a
VTOY VTOY_TMP
ls
-la
ls
-la
if
!
[
-d
ISO_TMP
]
;
then
if
!
[
-d
ISO_TMP
]
;
then
...
@@ -42,13 +42,15 @@ cd VTOY_TMP
...
@@ -42,13 +42,15 @@ cd VTOY_TMP
gcc
-O2
./ventoy/disksize.c
-o
./ventoy/disksize
gcc
-O2
./ventoy/disksize.c
-o
./ventoy/disksize
rm
-f
./ventoy/disksize.c
rm
-f
./ventoy/disksize.c
chmod
+x ./ventoy/
*
.sh
find
.
| cpio
-o
-H
newc |
gzip
-c
-9
>
../ISO_TMP/EFI/ventoy/ventoy.gz
find
.
| cpio
-o
-H
newc |
gzip
-c
-9
>
../ISO_TMP/EFI/ventoy/ventoy.gz
cd
..
&&
rm
-rf
VTOY_TMP
cd
..
&&
rm
-rf
VTOY_TMP
cp
$OPT
$VENTOY_PATH
/INSTALL/ventoy-
${
version
}
-linux
.tar.gz ISO_TMP/EFI/ventoy/
cp
-a
$VENTOY_PATH
/INSTALL/ventoy-
${
version
}
-linux
.tar.gz ISO_TMP/EFI/ventoy/
cp
$OPT
GRUB/cdrom.img ISO_TMP/EFI/boot/
cp
-a
GRUB/cdrom.img ISO_TMP/EFI/boot/
cp
$OPT
GRUB/bootx64.efi ISO_TMP/EFI/boot/
cp
-a
GRUB/bootx64.efi ISO_TMP/EFI/boot/
rm
-rf
efimnt
rm
-rf
efimnt
...
@@ -63,7 +65,7 @@ cp $OPT GRUB/bootx64.efi efimnt/EFI/boot/
...
@@ -63,7 +65,7 @@ cp $OPT GRUB/bootx64.efi efimnt/EFI/boot/
umount efimnt
umount efimnt
sync
sync
cp
$OPT
efi.img ISO_TMP/EFI/boot/
cp
-a
efi.img ISO_TMP/EFI/boot/
rm
-rf
efimnt
rm
-rf
efimnt
rm
-f
efi.img
rm
-f
efi.img
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment