@@ -26,7 +26,6 @@ use constant DOMAINNAME => "/system/network/domainname";
2626use constant REPOS_DIR => " /etc/yum.repos.d" ;
2727use constant REPOS_TREE => " /software/repositories" ;
2828use constant PKGS_TREE => " /software/packages" ;
29- use constant GROUPS_TREE => " /software/groups/names" ;
3029use constant CMP_TREE => " /software/components/spma" ;
3130use constant YUM_PACKAGE_LIST => " /etc/yum/pluginconf.d/versionlock.list" ;
3231use constant YUM_CONF_FILE => " /etc/yum.conf" ;
@@ -180,12 +179,12 @@ sub Configure
180179
181180 my $repos = $config -> getElement(REPOS_TREE)-> getTree();
182181 my $t = $config -> getElement(CMP_TREE)-> getTree();
183-
182+
184183 # Display system info
185184 if ( defined ($t -> {quattor_os_release }) ) {
186185 $self -> info(" target OS build: " , $t -> {quattor_os_release });
187186 }
188-
187+
189188 # Detect OS
190189 my $fhi ;
191190 my $os_major ;
@@ -387,15 +386,6 @@ sub Configure
387386 }
388387 }
389388
390- # RHEL7 needs converting groups
391- if ( $os_major eq ' 7' ) {
392- ( $cmd_exit , $cmd_out , $cmd_err ) = $self -> execute_command( [ " yum groups mark convert " . YUM_PLUGIN_OPTS ], " converting groups" , 1 );
393- if ( $cmd_exit ) {
394- $self -> error(" Failed to do group conversion on RHEL7." );
395- return 0;
396- }
397- }
398-
399389 # Get list of packages installed on system before any package modifications.
400390 my $preinstalled = $self -> get_installed_rpms();
401391 return 1 if !defined ($preinstalled );
@@ -421,13 +411,6 @@ sub Configure
421411 }
422412 }
423413
424- # Test whether comps/groups are sane.
425- ( $cmd_exit , $cmd_out , $cmd_err ) = $self -> execute_command( [ " yum groupinfo core " . YUM_PLUGIN_OPTS ], " testing comps/groups sanity" , 1 );
426- if ( $cmd_exit ) {
427- $self -> error(" Groups are not sane - core group missing. Will not continue." );
428- return 0;
429- }
430-
431414 # Query metadata for version locked packages including Epoch and write versionlock.list
432415 ( $cmd_exit , $cmd_out , $cmd_err ) = $self -> execute_command( [REPO_AVAIL_PKGS], " fetching full package list" , 1, " /dev/null" , 1 );
433416 if ( $cmd_exit ) {
@@ -498,12 +481,10 @@ sub Configure
498481 return 1 unless $t -> {run };
499482
500483 # Run test transaction to get complete list of packages to be present on the system
501- my $groups = $config -> getElement(GROUPS_TREE)-> getTree();
502484 $self -> execute_command( [ " rm -rf " . YUM_TEST_CHROOT ], " cleaning YUM test chroot" , 1 );
503485 $self -> execute_command( [ " mkdir -p " . YUM_TEST_CHROOT . " /var/cache" ], " setting up YUM test chroot" , 1 );
504486 $self -> execute_command( [ " ln -s /var/cache/yum " . YUM_TEST_CHROOT . " /var/cache/yum" ], " setting YUM test chroot cache" , 1 );
505487 my $yum_install_test_command = " yum install " . YUM_PLUGIN_OPTS . " -C --installroot=" . YUM_TEST_CHROOT;
506- if (@$groups ) { $yum_install_test_command .= " @" . join ( " @" , sort @$groups ); }
507488 if (@$wanted_pkgs_locked ) { $yum_install_test_command .= " " . join ( " " , sort @$wanted_pkgs_locked ); }
508489 if (@$wanted_pkgs ) { $yum_install_test_command .= " " . join ( " " , sort @$wanted_pkgs ); }
509490 ( $cmd_exit , $cmd_out , $cmd_err ) = $self -> execute_command( [$yum_install_test_command ], " performing YUM chroot install test" , 1, " /dev/null" , " verbose" , 1 );
@@ -835,4 +816,3 @@ sub Configure
835816}
836817
8378181; # required for Perl modules
838-
0 commit comments