Changeset 3906 in MondoRescue


Ignore:
Timestamp:
Apr 1, 2025, 10:57:16 AM (4 months ago)
Author:
Bruno Cornec
Message:

Adds better support for UEFI rocky, alma, centos, fedora, sles and ubuntu

Location:
tags/3.2.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tags/3.2.3/mindi/mindi

    r3895 r3906  
    21342134                dname=`pbdistrocheck | grep -E '^Name:' | cut -d':' -f2`
    21352135                dver=`pbdistrocheck | grep -E '^Ver:' | cut -d':' -f2`
    2136                 if [ $dname = "rhel" ] && [ $dver = "6" ]; then
     2136                if [ $dname = "rhel" -o $dname = "centos" -o $dname = "oel" ] && [ $dver = "6" ]; then
    21372137                    boottype=grub
    2138                 elif [ $dname = "rhel" ] && [ $dver = "7" ]; then
     2138                elif [ $dname = "rhel" -o $dname = "centos" -o $dname = "oel" -o $dname = "rocky" $dname = "alma" ] && [ $dver -ge "7" ]; then
     2139                    boottype=grub2
     2140                elif [ $dname = "fedora" ] && [ $dver -ge 20 ]; then
     2141                    boottype=grub2
     2142                elif [ $dname = "sles" ] && [ $dver -ge 12 ]; then
    21392143                    boottype=grub2
    21402144                elif [ $dname = "debian" ] && [ $dver = "8" ]; then
     2145                    boottype=grub2
     2146                elif [ $dname = "ubuntu" ] && [ $dver -ge 16 ]; then
    21412147                    boottype=grub2
    21422148                else
  • tags/3.2.3/mondo/src/common/libmondo-files.c

    r3430 r3906  
    10191019        find_and_store_mondoarchives_home(g_mondo_home);
    10201020    }
    1021     mr_asprintf(command, CP_BIN " --parents -pRdf %s %s", g_mondo_home, bkpinfo->scratchdir);
     1021    mr_asprintf(command, "tar cf - %s | (cd %s ; tar xf -)", g_mondo_home, bkpinfo->scratchdir);
    10221022
    10231023    log_msg(4, "command = %s", command);
Note: See TracChangeset for help on using the changeset viewer.