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
73fabd0c
Commit
73fabd0c
authored
Dec 02, 2021
by
longpanda
Browse files
1.0.62 release
parent
0c140cf3
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
53 additions
and
42 deletions
+53
-42
IMG/cpio/ventoy/hook/crux/disk_hook.sh
IMG/cpio/ventoy/hook/crux/disk_hook.sh
+13
-5
INSTALL/grub/grub.cfg
INSTALL/grub/grub.cfg
+1
-1
INSTALL/ventoy/dragonfly.mfs.xz
INSTALL/ventoy/dragonfly.mfs.xz
+0
-0
README.md
README.md
+4
-2
Unix/ventoy_unix/DragonFly/sbin/init
Unix/ventoy_unix/DragonFly/sbin/init
+0
-0
Unix/ventoy_unix_src/DragonFly/oinit.c
Unix/ventoy_unix_src/DragonFly/oinit.c
+33
-34
Unix/ventoy_unix_src/DragonFly/vtutil.h
Unix/ventoy_unix_src/DragonFly/vtutil.h
+2
-0
No files found.
IMG/cpio/ventoy/hook/crux/disk_hook.sh
View file @
73fabd0c
...
@@ -29,13 +29,21 @@ for i in 0 1 2 3 4 5 6 7 8 9; do
...
@@ -29,13 +29,21 @@ for i in 0 1 2 3 4 5 6 7 8 9; do
fi
fi
done
done
ventoy_extract_vtloopex
${
vtdiskname
}
2 crux
# no need since 3.6.1
$BUSYBOX_PATH
/modprobe dax
>
/dev/null 2>&1
$BUSYBOX_PATH
/modprobe dm-mod
>
/dev/null 2>&1
if
$GREP
-q
'device-mapper'
/proc/devices
;
then
vtlog
"dm-mod module check success ..."
else
vtlog
"Need to load dm-mod module ..."
ventoy_extract_vtloopex
${
vtdiskname
}
2 crux
vtKver
=
$(
uname
-r
)
vtKver
=
$(
uname
-r
)
vtLoopExDir
=
$VTOY_PATH
/vtloopex/crux/vtloopex
vtLoopExDir
=
$VTOY_PATH
/vtloopex/crux/vtloopex
ventoy_check_install_module_xz
$vtLoopExDir
/dm-mod/
$vtKver
/64/dax.ko
ventoy_check_install_module_xz
$vtLoopExDir
/dm-mod/
$vtKver
/64/dax.ko
ventoy_check_install_module_xz
$vtLoopExDir
/dm-mod/
$vtKver
/64/dm-mod.ko
ventoy_check_install_module_xz
$vtLoopExDir
/dm-mod/
$vtKver
/64/dm-mod.ko
fi
ventoy_udev_disk_common_hook
"
${
vtdiskname
#/dev/
}
2"
ventoy_udev_disk_common_hook
"
${
vtdiskname
#/dev/
}
2"
INSTALL/grub/grub.cfg
View file @
73fabd0c
...
@@ -2018,7 +2018,7 @@ function img_unsupport_menuentry {
...
@@ -2018,7 +2018,7 @@ function img_unsupport_menuentry {
#############################################################
#############################################################
#############################################################
#############################################################
set VENTOY_VERSION="1.0.6
1
"
set VENTOY_VERSION="1.0.6
2
"
#ACPI not compatible with Window7/8, so disable by default
#ACPI not compatible with Window7/8, so disable by default
set VTOY_PARAM_NO_ACPI=1
set VTOY_PARAM_NO_ACPI=1
...
...
INSTALL/ventoy/dragonfly.mfs.xz
View file @
73fabd0c
No preview for this file type
README.md
View file @
73fabd0c
...
@@ -39,7 +39,9 @@ VMware ESXi, Citrix XenServer, Xen XCP-ng
...
@@ -39,7 +39,9 @@ VMware ESXi, Citrix XenServer, Xen XCP-ng
# Tested Image Report
# Tested Image Report
[
【How to report a successfully tested image file】
](
https://github.com/ventoy/Ventoy/issues/1195
)
[
【How to report a successfully tested image file】
](
https://github.com/ventoy/Ventoy/issues/1195
)
# VentoyPlugson
A GUI Ventoy plugin configurator.
[
VentoyPlugson
](
https://www.ventoy.net/en/plugin_plugson.html
)
# Features
# Features
*
100% open source
*
100% open source
*
Simple to use
*
Simple to use
...
@@ -61,7 +63,7 @@ VMware ESXi, Citrix XenServer, Xen XCP-ng
...
@@ -61,7 +63,7 @@ VMware ESXi, Citrix XenServer, Xen XCP-ng
*
Not only boot but also complete installation process
*
Not only boot but also complete installation process
*
Menu dynamically switchable between List/TreeView mode
*
Menu dynamically switchable between List/TreeView mode
*
"Ventoy Compatible" concept
*
"Ventoy Compatible" concept
*
Plugin Framework
*
Plugin Framework
and GUI plugin configurator
*
Injection files to runtime environment
*
Injection files to runtime environment
*
Boot configuration file dynamically replacement
*
Boot configuration file dynamically replacement
*
Highly customizable theme and menu
*
Highly customizable theme and menu
...
...
Unix/ventoy_unix/DragonFly/sbin/init
View file @
73fabd0c
No preview for this file type
Unix/ventoy_unix_src/DragonFly/oinit.c
View file @
73fabd0c
...
@@ -84,7 +84,7 @@ static int setctty(const char *name)
...
@@ -84,7 +84,7 @@ static int setctty(const char *name)
return
fd
;
return
fd
;
}
}
static
void
ventoy_init
(
char
**
argv_orig
)
static
void
ventoy_init
(
void
)
{
{
pid_t
pid
,
wpid
;
pid_t
pid
,
wpid
;
int
status
,
error
;
int
status
,
error
;
...
@@ -155,56 +155,55 @@ static void ventoy_init(char **argv_orig)
...
@@ -155,56 +155,55 @@ static void ventoy_init(char **argv_orig)
/* step 7: swich_root */
/* step 7: swich_root */
vdebug
(
"[VTOY] step 7: switch root ...
\n
"
);
vdebug
(
"[VTOY] step 7: switch root ...
\n
"
);
error
=
chdir
(
"/new_root"
);
}
int
main
(
int
argc
__unused
,
char
**
argv
)
{
pid_t
pid
,
wpid
;
int
status
,
error
;
size_t
varsize
=
sizeof
(
int
);
/* Dispose of random users. */
if
(
getuid
()
!=
0
)
errx
(
1
,
"%s"
,
strerror
(
EPERM
));
/* Init is not allowed to die, it would make the kernel panic */
signal
(
SIGTERM
,
SIG_IGN
);
if
((
pid
=
fork
())
==
0
)
{
setctty
(
_PATH_CONSOLE
);
sysctlbyname
(
"debug.bootverbose"
,
&
boot_verbose
,
&
varsize
,
NULL
,
0
);
vdebug
(
"======= Ventoy Init Start ========
\n
"
);
ventoy_init
();
exit
(
1
);
/* force single user mode */
}
do
{
wpid
=
waitpid
(
-
1
,
&
status
,
WUNTRACED
);
}
while
(
wpid
!=
pid
);
error
=
chdir
(
"/new_root"
);
if
(
error
)
if
(
error
)
{
printf
(
"[VTOY] chdir /new_root failed %d
\n
"
,
error
);
goto
chroot_failed
;
goto
chroot_failed
;
}
error
=
chroot_kernel
(
"/new_root"
);
error
=
chroot_kernel
(
"/new_root"
);
if
(
error
)
if
(
error
)
{
printf
(
"[VTOY] chroot_kernel /new_root failed %d
\n
"
,
error
);
goto
chroot_failed
;
goto
chroot_failed
;
}
error
=
chroot
(
"/new_root"
);
error
=
chroot
(
"/new_root"
);
if
(
error
)
if
(
error
)
{
printf
(
"[VTOY] chroot /new_root failed %d
\n
"
,
error
);
goto
chroot_failed
;
goto
chroot_failed
;
}
vdebug
(
"[VTOY] step 8: now run /sbin/init ...
\n
"
);
execv
(
"/sbin/init"
,
__DECONST
(
char
**
,
argv
));
execv
(
"/sbin/init"
,
__DECONST
(
char
**
,
argv_orig
));
/* We failed to exec /sbin/init in the chroot, sleep forever */
/* We failed to exec /sbin/init in the chroot, sleep forever */
chroot_failed:
chroot_failed:
printf
(
"[VTOY] ################### DEAD ################
\n
"
);
while
(
1
)
{
while
(
1
)
{
sleep
(
3
);
sleep
(
3
);
};
};
}
int
main
(
int
argc
__unused
,
char
**
argv
)
{
size_t
varsize
=
sizeof
(
int
);
/* Dispose of random users. */
if
(
getuid
()
!=
0
)
errx
(
1
,
"%s"
,
strerror
(
EPERM
));
/* Init is not allowed to die, it would make the kernel panic */
signal
(
SIGTERM
,
SIG_IGN
);
setctty
(
_PATH_CONSOLE
);
sysctlbyname
(
"debug.bootverbose"
,
&
boot_verbose
,
&
varsize
,
NULL
,
0
);
vdebug
(
"======= Ventoy Init Start ========
\n
"
);
ventoy_init
(
argv
);
return
1
;
return
1
;
}
}
Unix/ventoy_unix_src/DragonFly/vtutil.h
View file @
73fabd0c
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
#define __UTIL_H__
#define __UTIL_H__
extern
int
boot_verbose
;
extern
int
boot_verbose
;
//#define vdebug(fmt, ...)
//#define verror
#define vdebug(fmt, ...) if (boot_verbose) { printf(fmt, ##__VA_ARGS__); usleep(500000); }
#define vdebug(fmt, ...) if (boot_verbose) { printf(fmt, ##__VA_ARGS__); usleep(500000); }
#define verror printf
#define verror printf
...
...
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