X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/602e8c7fdff11f14e5f19429251e38372ea84553..daeb96ce800c0bef40f3a70ef0e1c27ac2b694ea:/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh?ds=sidebyside diff --git a/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh b/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh index acd05ce..7b43a79 100644 --- a/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh +++ b/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh @@ -26,6 +26,10 @@ if [ -f $VTOY_PATH/autoinstall ]; then VTKS="inst.ks=file:$VTOY_PATH/autoinstall" else for vtParam in $($CAT /proc/cmdline); do + if echo $vtParam | $GREP -q 'ks=file:/'; then + continue + fi + if echo $vtParam | $GREP -q 'inst.ks=hd:LABEL='; then vtRawKsFull="$vtParam" vtRawKs=$(echo $vtParam | $AWK -F: '{print $NF}') @@ -146,3 +150,19 @@ fi if [ -f $VTOY_PATH/autoinstall ]; then cp -a $VTOY_PATH/hook/rhel7/ventoy-autoexp.sh /lib/dracut/hooks/pre-mount/99-ventoy-autoexp.sh fi + + +#special distro magic +$BUSYBOX_PATH/mkdir -p $VTOY_PATH/distmagic +if $GREP -q SCRE /proc/cmdline; then + echo 1 > $VTOY_PATH/distmagic/SCRE +fi + +if $GREP -qw 'SA[.]1' /proc/cmdline; then +if $GREP -qw 'writable.fsimg' /proc/cmdline; then +if $GREP -qw 'rw' /proc/cmdline; then + echo 1 > $VTOY_PATH/distmagic/DELL_PER +fi +fi +fi +