]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
1.0.62 release v1.0.62
authorlongpanda <admin@ventoy.net>
Thu, 2 Dec 2021 12:02:42 +0000 (20:02 +0800)
committerlongpanda <admin@ventoy.net>
Thu, 2 Dec 2021 12:02:42 +0000 (20:02 +0800)
IMG/cpio/ventoy/hook/crux/disk_hook.sh
INSTALL/grub/grub.cfg
INSTALL/ventoy/dragonfly.mfs.xz
README.md
Unix/ventoy_unix/DragonFly/sbin/init
Unix/ventoy_unix_src/DragonFly/oinit.c
Unix/ventoy_unix_src/DragonFly/vtutil.h

index a4a6ed0aa3d32289ab94099333e487913443ee5e..70d31b4d9eb3bc08214b66436b2e53f9cf614636 100644 (file)
@@ -29,13 +29,21 @@ for i in 0 1 2 3 4 5 6 7 8 9; do
     fi
 done
 
     fi
 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)
-vtLoopExDir=$VTOY_PATH/vtloopex/crux/vtloopex
+    vtKver=$(uname -r)
+    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/dm-mod.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
+fi
 
 ventoy_udev_disk_common_hook "${vtdiskname#/dev/}2"
 
 ventoy_udev_disk_common_hook "${vtdiskname#/dev/}2"
index 6e1dd64a0fa032b9533fe7259730a1d4f766fcc2..0ef6912246e32697eac854b03d977d3e1239a838 100644 (file)
@@ -2018,7 +2018,7 @@ function img_unsupport_menuentry {
 #############################################################
 #############################################################
 
 #############################################################
 #############################################################
 
-set VENTOY_VERSION="1.0.61"
+set VENTOY_VERSION="1.0.62"
 
 #ACPI not compatible with Window7/8, so disable by default
 set VTOY_PARAM_NO_ACPI=1
 
 #ACPI not compatible with Window7/8, so disable by default
 set VTOY_PARAM_NO_ACPI=1
index 6c71a87ad4d9d73d3af9fabc1414bc475fe1ee4d..c15a0067f8f8bc94224f605eaf45d1fbeeeceb2f 100644 (file)
Binary files a/INSTALL/ventoy/dragonfly.mfs.xz and b/INSTALL/ventoy/dragonfly.mfs.xz differ
index fe0b1e77f4525487837dee4ee9b528a509ced700..05e50eb849257aeab19a342e06887ed8f7d1b7e2 100644 (file)
--- a/README.md
+++ b/README.md
@@ -39,7 +39,9 @@ VMware ESXi, Citrix XenServer, Xen XCP-ng
 # Tested Image Report
 [【How to report a successfully tested image file】](https://github.com/ventoy/Ventoy/issues/1195)
   
 # Tested Image Report
 [【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
 * 100% open source
 * Simple to use
 # Features
 * 100% open source
 * Simple to use
@@ -61,7 +63,7 @@ VMware ESXi, Citrix XenServer, Xen XCP-ng
 * Not only boot but also complete installation process
 * Menu dynamically switchable between List/TreeView mode
 * "Ventoy Compatible" concept
 * Not only boot but also complete installation process
 * Menu dynamically switchable between List/TreeView mode
 * "Ventoy Compatible" concept
-* Plugin Framework
+* Plugin Framework and GUI plugin configurator
 * Injection files to runtime environment
 * Boot configuration file dynamically replacement
 * Highly customizable theme and menu
 * Injection files to runtime environment
 * Boot configuration file dynamically replacement
 * Highly customizable theme and menu
index a720b579db6f47c7a4a4e7decca8672de2659bcb..d01482b6bbe0fbca87852ce175388999c22b1c24 100644 (file)
Binary files a/Unix/ventoy_unix/DragonFly/sbin/init and b/Unix/ventoy_unix/DragonFly/sbin/init differ
index ae59123927f6bb8408e4d3fad389a2864e61e1de..532333454ebea7ebfa48deb79779cf1bc63918e1 100644 (file)
@@ -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;
        int status, error;
 {
        pid_t pid, wpid;
        int status, error;
@@ -155,56 +155,55 @@ static void ventoy_init(char **argv_orig)
 
     /* step 7: swich_root */
     vdebug("[VTOY] step 7: switch root ...\n");
 
     /* step 7: swich_root */
     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");
        if (error)
 
        error = chroot_kernel("/new_root");
        if (error)
-       {
-           printf("[VTOY] chroot_kernel /new_root failed %d\n", error);
            goto chroot_failed;
            goto chroot_failed;
-    }
 
        error = chroot("/new_root");
        if (error)
 
        error = chroot("/new_root");
        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_orig));
+       execv("/sbin/init", __DECONST(char **, argv));
 
        /* We failed to exec /sbin/init in the chroot, sleep forever */
 chroot_failed:
 
        /* We failed to exec /sbin/init in the chroot, sleep forever */
 chroot_failed:
-    printf("[VTOY] ################### DEAD ################\n");
        while(1) {
                sleep(3);
        };
        while(1) {
                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;
 }
 
index 883aeba60016175ec68fdc476542c3fd9ec5a324..4b2c6651e728d3e7fc65341c04812d138da8339b 100644 (file)
@@ -3,6 +3,8 @@
 #define __UTIL_H__
 
 extern int boot_verbose;
 #define __UTIL_H__
 
 extern int boot_verbose;
+//#define vdebug(fmt, ...) 
+//#define verror
 #define vdebug(fmt, ...) if (boot_verbose) { printf(fmt, ##__VA_ARGS__); usleep(500000); }
 #define verror printf
 
 #define vdebug(fmt, ...) if (boot_verbose) { printf(fmt, ##__VA_ARGS__); usleep(500000); }
 #define verror printf