X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/37212a8ea44a4f1b294da70cc3d8cf2083fd1441..042ca4b5e36ffbe5897083e7bce2cf76dc145efd:/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh diff --git a/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh b/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh index 5e57ec2..1d971cf 100644 --- a/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh +++ b/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh @@ -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