]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh
add support for UnionTechOS fuyu (#864)
[Ventoy.git] / IMG / cpio / ventoy / hook / rhel7 / ventoy-hook.sh
index 5e57ec25039c464413fdbb6b8097e1ec443e7c93..1d971cfd06208e10ea8c90c282c29c2e8cc9a7a3 100644 (file)
@@ -45,7 +45,8 @@ if [ -f $VTOY_PATH/ventoy_persistent_map ]; then
     
     if [ -e /sbin/dmsquash-live-root ]; then
         echo "patch /sbin/dmsquash-live-root for persistent ..." >> $VTLOG
-        $SED "/mount.*devspec.*\/run\/initramfs\/overlayfs/a . /ventoy/hook/rhel7/ventoy-overlay.sh" -i /sbin/dmsquash-live-root
+        $SED "/mount.*devspec.*\/run\/initramfs\/overlayfs/a . /ventoy/hook/rhel7/ventoy-overlay.sh" -i /sbin/dmsquash-live-root        
+        $SED "s/osmin.img/osmin.imgxxxx/g" -i /sbin/dmsquash-live-root
     fi
     
     #close selinux
@@ -87,7 +88,7 @@ $BUSYBOX_PATH/cp -a $VTOY_PATH/hook/rhel7/ventoy-timeout.sh /lib/dracut/hooks/in
 
 vtNeedRepo=
 if [ -f /etc/system-release ]; then
-    if $GREP -q 'RED OS' /etc/system-release ]; then
+    if $GREP -q 'RED OS' /etc/system-release; then
         vtNeedRepo="yes"
     fi
 fi