Giter VIP home page Giter VIP logo

Comments (6)

greatkemo avatar greatkemo commented on August 30, 2024

Update 1:
In Netboot, when clicking the "Upload Netboot Image" nothing happens.

from netsus.

greatkemo avatar greatkemo commented on August 30, 2024

Update 2:
In SUS, even though there are fupdates being sync'd as the main dashboard is showing me the disk usage that is slowly growing and I confirmed it from here ls -l /srv/SUS/html/content/downloads/ however they are not showing when i click on the branch I created.

from netsus.

greatkemo avatar greatkemo commented on August 30, 2024

Update 3:
So I am guessing the trouble starts with this file "testOSRequirements.sh" as then detectedOS is parsed through the other scripts.

Maybe first step should be to detect if lsb_release exists, then search it for distro flavors, if it is not there then look for /etc/*-release

if [ -f "/usr/bin/lsb_release" ]; then

ubuntuVersion=lsb_release -s -d

case $ubuntuVersion in
Ubuntu\ 12.04)
detectedOS="Ubuntu"
export $detectedOS
;;
Ubuntu\ 10.04)
detectedOS="Ubuntu"
export $detectedOS
;;
"*")
logEvent "Error: Did not detect a valid Ubuntu OS install."
failedAnyChecks=1
;;
esac

elif [ -f "/etc/system-release" ]; then

case "$(readlink /etc/system-release)" in
"centos-release")
detectedOS="CentOS"
export $detectedOS

;;

"redhat-release")
if subscription-manager list | grep Status | grep -q 'Not Subscribed' ; then
logevent "This system is not registered to Red Hat Subscription Management."
failedAnyChecks=1
fi
detectedOS="RedHat"
export $detectedOS

;;

"*")
logEvent "Error: Did not detect a valid RedHat/Cent OS install."
failedAnyChecks=1
;;
esac

else
logEvent "Error: Did not detect a valid OS."
failedAnyChecks=1
fi

from netsus.

greatkemo avatar greatkemo commented on August 30, 2024

Update 4:
For me this was another issue:
"redhat-release")
if subscription-manager list | grep Status | grep -q 'Not Subscribed' ; then
logevent "This system is not registered to Red Hat Subscription Management."
failedAnyChecks=1
fi
detectedOS="RedHat"
export $detectedOS

Although my server is registered, and I can install packages and updates using yum, when I run
subscription-manager list | grep Status | grep -q 'Not Subscribed' it returns nothing. and if I remove the second grep and do subscription-manager list | grep Status it returns "Status Unknown", which is strange I know, but other will probably be seeing the same, so whether it is registered or not, it should try and install packages anyway and use the yum error to determine whether it is possible or not.

from netsus.

greatkemo avatar greatkemo commented on August 30, 2024

Update 5:

This made things work for me on red hat:
In testOSrequirements.sh and adminHelper.sh, in the snippet of code below I added a "fi" after closing the case command then I removed the el from the "elif" statement.

if [ -f "/usr/bin/lsb_release" ]; then

ubuntuVersion=lsb_release -s -d

case $ubuntuVersion in
Ubuntu\ 12.04)
detectedOS="Ubuntu"
export $detectedOS
;;
Ubuntu\ 10.04)
detectedOS="Ubuntu"
export $detectedOS
;;
"*")
logEvent "Error: Did not detect a valid Ubuntu OS install."
failedAnyChecks=1
;;
esac
fi
if [ -f "/etc/system-release" ]; then

case "$(readlink /etc/system-release)" in
"centos-release")
detectedOS="CentOS"
export $detectedOS

from netsus.

jschripsema avatar jschripsema commented on August 30, 2024

Commit 10eb327 closes #13

from netsus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.