X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/7fc72d5ce6c036fac768643510f7074f26ed5127..2d281d7dee99b92500dfa49a96620d44fdc24243:/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 7601687..3ab212b 100644 --- a/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh +++ b/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh @@ -125,6 +125,13 @@ if $GREP -i -q Fedora /proc/version; then fi fi +if $GREP -i -q Fedora /etc/os-release; then + if $GREP -q 'Server Edition' /etc/os-release; then + vtNeedRepo="yes" + fi +fi + + echo "vtNeedRepo=$vtNeedRepo" >> $VTLOG if [ "$vtNeedRepo" = "yes" ]; then @@ -150,3 +157,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 +