Menu

DRBLSRV -i error on Fedora Server 37: No yum repository setting found!

2023-01-31
2023-02-11
  • David Geeraerts

    David Geeraerts - 2023-01-31

    DRBL: drbl-4.5.16-drbl1.noarch.rpm

    Operating System: Fedora Linux 37 (Server Edition)
    CPE OS Name: cpe:/o:fedoraproject:fedora:37
    Kernel: Linux 6.1.8-200.fc37.x86_64
    Architecture: x86-64
    Hardware Vendor: Dell Computer Corporation
    Hardware Model: PowerEdge SC1425
    Firmware Version: A03

    SELINUX=disabled

    ********.
    Installing DRBL for RedHat/Fedora Linux...
    Your OS version is:: FC37
    *******.
    Do you want to set up the proxy server?
    [y/N]
    N*

    ********.
    No yum repository setting found!
    You must set the yum repository in /etc/yum.repos.d/!
    ********.

    Program terminated!

    Why would a yum repository be needed?

     
  • David Geeraerts

    David Geeraerts - 2023-01-31

    I tried dbrlsrv -i -s to skip the repo; still got the error: "No yum repository setting found!"

    I'm trying to debug this section of code from drblsrv for Fedora 37:

    # Set the fedora repository.
    if [ "$installer" = "yum" ]; then
      # FC1-4: fedora.repo
      # FC5: fedore-core.repo
      # FC7: fedora.repo
      if [ -e "/etc/yum.repos.d/fedora-core.repo" ]; then
        FC_CORE_REPO="fedora-core.repo"
      elif [ -e "/etc/yum.repos.d/fedora.repo" ]; then
        FC_CORE_REPO="fedora.repo"
      else
        # default one:
        FC_CORE_REPO="fedora-core.repo"
      fi
    fi
    
    if [ "$select_repository" = "yes" ]; then
      # Since we might for to install rpm package, it's better to import RPM key for yum, the default setting of yum enables key check.
      [ "$installer" = "yum" ] && import_rpm_key
      # For RH8/9.0/FC1-2, already set $select_repository=yes, so this will be run
      echo "Now select the $OS_Version repository settings..."
      setup_${OS_type}_${installer}
      install_curl_etc_via_${installer}_if_necessary
    else
      # This only for yum
      # put drbl-core yum repos conf
      [ ! -d "/etc/yum.repos.d" ] && mkdir -p /etc/yum.repos.d
    
      # Check if the repository setting exists
      # TODO: need beter method to check.
      if [ ! -f "/etc/yum.repos.d/$FC_CORE_REPO" -a ! -f "/etc/yum.repos.d/CentOS-Base.repo" ]; then
         echo "$msg_delimiter_star_line"
         [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
         echo "No yum repository setting found!"
         echo "You must set the yum repository in /etc/yum.repos.d/!"
         [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
         echo "$msg_delimiter_star_line"
         echo "$msg_program_stop"
         exit 1
      fi
      echo "Use the $OS_Version repository settings in /etc/yum.repos.d/."
    
      # backup the old setting
      echo -n "Seting the DRBL yum repository in /etc/yum.repos.d/... "
      for ifile in $drbl_yum_repo_list; do
        [ -f "/etc/yum.repos.d/$ifile" ] && mv -f /etc/yum.repos.d/$ifile /etc/yum.repos.d/$ifile.drblsave
      done
      cp -f $DRBL_SCRIPT_PATH/setup/yum-repos/drbl*.repo /etc/yum.repos.d/
      echo "done!"
    
     
  • David Geeraerts

    David Geeraerts - 2023-01-31

    This should work (?).

    I created a drbl.repo manually:

    [drbl-core]
    name=drbl
    baseurl=http://free.nchc.org.tw/drbl-core/x86_64/RPMS.drbl-stable/
    enabled=1
    

    Yes, the url is hard coded.

    dnf creates etc_yum.repos.d_drbl-core.repo and point to drbl.repo

    Doesn't seem necessary to have these two repo's:

    dnf upgrade --refresh
    drbl                                                                                                                                                                       9.2 kB/s | 3.0 kB     00:00    
    created by dnf config-manager from file:///etc/yum.repos.d/drbl-core                                                                                                           9.2 kB/s | 3.0 kB     00:00    
    Fedora 37 - x86_64                                                                                                                                                              49 kB/s |  22 kB     00:00    
    Fedora 37 openh264 (From Cisco) - x86_64                                                                                                                                       2.5 kB/s | 989  B     00:00    
    Fedora Modular 37 - x86_64                                                                                                                                                      48 kB/s |  22 kB     00:00    
    Fedora 37 - x86_64 - Updates                                                                                                                                                   119 kB/s |  22 kB     00:00    
    Fedora Modular 37 - x86_64 - Updates                                                                                                                                            62 kB/s |  23 kB     00:00    
    Dependencies resolved.
    Nothing to do.
    Complete!
    

    Still getting error (as expected): No yum repository setting found!

     

    Last edit: David Geeraerts 2023-01-31
  • Steven Shiau

    Steven Shiau - 2023-01-31

    We have very limited man power in this project, so the support for Fedora is not maintained any more. It's recommended to use Debian or Ubuntu if you want to use DRBL.

    Steven

     
  • David Geeraerts

    David Geeraerts - 2023-01-31

    Can I run CloneZilla Server with DRBL on Debian, but deploy Fedora/CentOS/Rocky image to diskless clients (HPC compute nodes)?

    From what I can understand how DRBL works, it uses the host GNU\Linux to package the image to diskless clients.

     
  • Steven Shiau

    Steven Shiau - 2023-01-31

    "Can I run CloneZilla Server with DRBL on Debian, but deploy Fedora/CentOS/Rocky image to diskless clients (HPC compute nodes)?" -> It's confusing to me since you have both DRBL and Clonezilla in your question. Let me put in this say:
    If you want to use diskless client, then for DRBL, the server and the client will be the exactly same version of GNU/Linux, i.e., server and client is the same OS.
    If you want to "deploy" your image using Clonezilla SE, then it can deploy your saved image to your client machine. Say, you can deploy Ubuntu 22.04 image to your client via Clonezilla SE, and after it's deployed, you can boot it into Ubuntu 22.04 in the local disk. In this case, it's nothing to do with diskless mechanism any more.

    Steven

     
  • David Geeraerts

    David Geeraerts - 2023-01-31

    Thank you for confirming that DRBL uses the host system to deploy a GNU/Linux system; as you said, if DRBL is running on Debian distro, then all the diskless clients will be given that Debian distro.

    I have some motivation to get DRBL working on a RHEL branch {RHEL, Fedora, CentOS, Rocky} ; I've submitted a ServerFault question, to see if I can get help with this project.

     
  • Steven Shiau

    Steven Shiau - 2023-02-11

    Thanks for your feedback. As I mentioned, we have very limited manpower in this project. Therefore we focus on some specific GNU/Linux distributions nowadays. If we have more time in the future, we will try to resume supporting more distributions.
    Of course, patches are welcome.

    Steven

     

Log in to post a comment.