diff --git a/xCAT-server/lib/xcat/plugins/debian.pm b/xCAT-server/lib/xcat/plugins/debian.pm index 80b307961..b44e5b4be 100644 --- a/xCAT-server/lib/xcat/plugins/debian.pm +++ b/xCAT-server/lib/xcat/plugins/debian.pm @@ -438,7 +438,7 @@ sub copycd } else { - my $osdistoname = $distname . "-" . $arch; + my $osdistroname = $distname . "-" . $arch; my $temppath = "$installroot/$distname/$arch"; my @ret = xCAT::SvrUtils->update_osdistro_table($distname, $arch, $temppath, $osdistroname); if ($ret[0] != 0) { diff --git a/xCAT-server/lib/xcat/plugins/route.pm b/xCAT-server/lib/xcat/plugins/route.pm index cf5282505..6f09dda18 100644 --- a/xCAT-server/lib/xcat/plugins/route.pm +++ b/xCAT-server/lib/xcat/plugins/route.pm @@ -753,7 +753,7 @@ sub delete_route { my $os = xCAT::Utils->osver(); if ($os =~ /sles/) { #sles deletePersistentRoute_Sles($callback, $net, $mask, $gw_ip, $gw, $ifname); - } elsif ($os =~ /ubuntu/) { #ubuntu or Debian? + } elsif ($os =~ /ubuntu|debian/) { #ubuntu or Debian? deletePersistentRoute_Debian($callback, $net, $mask, $gw_ip, $gw, $ifname); } elsif ($os =~ /rh|fedora|centos|alma|rocky/) { #RH, Ferdora