X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/491f0bea8a56fdb097884187d99c5e25191d481c..60588c84422c46711da7a1efc00774b684c7c7f6:/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh?ds=inline diff --git a/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh b/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh index aab1e26..bf95ab0 100644 --- a/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh +++ b/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh @@ -37,6 +37,12 @@ else VTKS="ks=hd:/dev/dm-0:$vtRawKs" break fi + + if echo $vtParam | $GREP -q '^inst.ks=.*:/'; then + vtRawKs=$(echo $vtParam | $AWK -F: '{print $NF}') + VTKS="inst.ks=hd:/dev/dm-0:$vtRawKs" + break + fi done fi @@ -92,7 +98,8 @@ if [ -f /etc/system-release ]; then vtNeedRepo="yes" fi fi -if $GREP -q el8 /proc/version; then + +if $GREP -q 'el[89]' /proc/version; then vtNeedRepo="yes" fi @@ -102,6 +109,8 @@ if $GREP -i -q Fedora /proc/version; then fi fi +echo "vtNeedRepo=$vtNeedRepo" >> $VTLOG + if [ "$vtNeedRepo" = "yes" ]; then $BUSYBOX_PATH/cp -a $VTOY_PATH/hook/rhel7/ventoy-repo.sh /lib/dracut/hooks/pre-pivot/99-ventoy-repo.sh fi