Kickstart does not add repos

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I have a kickstart file I am trying to use for CentOS 7.4 installations. It works well, but it does not add the requested repos. I've run through this a few times and I'm sure it basically skips over the step for adding repos. Here is what it looks like:



url --url http://<my_IP>/centos71
lang en_US.UTF-8

keyboard us

timezone --utc America/New_York

network --onboot yes --device em1 --bootproto dhcp --noipv6

firewall --disabled
selinux --disabled
authconfig --enableshadow --passalgo=sha512

rootpw --iscrypted <encrypted_pass>

clearpart --all --initlabel --drives=xvda

zerombr

part /boot --fstype=ext4 --asprimary --size=200 --ondisk=xvda
part pv.1 --asprimary --grow --size=10000 --ondisk=xvda
volgroup vg0 --pesize=4096 pv.1
logvol / --fstype=ext4 --name=lv_root --vgname=vg0 --size=9000
logvol swap --name=lv_swap --vgname=vg0 --size=512

bootloader --location=mbr --driveorder=xvda --append="crashkernel=auto"

reboot
repo --name="CentOS" --baseurl="http://mirror.centos.org/centos/7/os/x86_64/"
repo --name="DockerCE" --baseurl="https://download.docker.com/linux/centos/7/x86_64/stable/"

%packages
@base
@core
gcc
gcc-c++
git
net-snmp
nfs-utils
screen
vim
tree
yum-utils
device-mapper-persistent-data
lvm2
%end

....


When the installation completes, I check /etc/yum.repos.d/ and none of the repos are there. Is there something that I may be doing incorrectly?







share|improve this question
























    up vote
    0
    down vote

    favorite












    I have a kickstart file I am trying to use for CentOS 7.4 installations. It works well, but it does not add the requested repos. I've run through this a few times and I'm sure it basically skips over the step for adding repos. Here is what it looks like:



    url --url http://<my_IP>/centos71
    lang en_US.UTF-8

    keyboard us

    timezone --utc America/New_York

    network --onboot yes --device em1 --bootproto dhcp --noipv6

    firewall --disabled
    selinux --disabled
    authconfig --enableshadow --passalgo=sha512

    rootpw --iscrypted <encrypted_pass>

    clearpart --all --initlabel --drives=xvda

    zerombr

    part /boot --fstype=ext4 --asprimary --size=200 --ondisk=xvda
    part pv.1 --asprimary --grow --size=10000 --ondisk=xvda
    volgroup vg0 --pesize=4096 pv.1
    logvol / --fstype=ext4 --name=lv_root --vgname=vg0 --size=9000
    logvol swap --name=lv_swap --vgname=vg0 --size=512

    bootloader --location=mbr --driveorder=xvda --append="crashkernel=auto"

    reboot
    repo --name="CentOS" --baseurl="http://mirror.centos.org/centos/7/os/x86_64/"
    repo --name="DockerCE" --baseurl="https://download.docker.com/linux/centos/7/x86_64/stable/"

    %packages
    @base
    @core
    gcc
    gcc-c++
    git
    net-snmp
    nfs-utils
    screen
    vim
    tree
    yum-utils
    device-mapper-persistent-data
    lvm2
    %end

    ....


    When the installation completes, I check /etc/yum.repos.d/ and none of the repos are there. Is there something that I may be doing incorrectly?







    share|improve this question






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have a kickstart file I am trying to use for CentOS 7.4 installations. It works well, but it does not add the requested repos. I've run through this a few times and I'm sure it basically skips over the step for adding repos. Here is what it looks like:



      url --url http://<my_IP>/centos71
      lang en_US.UTF-8

      keyboard us

      timezone --utc America/New_York

      network --onboot yes --device em1 --bootproto dhcp --noipv6

      firewall --disabled
      selinux --disabled
      authconfig --enableshadow --passalgo=sha512

      rootpw --iscrypted <encrypted_pass>

      clearpart --all --initlabel --drives=xvda

      zerombr

      part /boot --fstype=ext4 --asprimary --size=200 --ondisk=xvda
      part pv.1 --asprimary --grow --size=10000 --ondisk=xvda
      volgroup vg0 --pesize=4096 pv.1
      logvol / --fstype=ext4 --name=lv_root --vgname=vg0 --size=9000
      logvol swap --name=lv_swap --vgname=vg0 --size=512

      bootloader --location=mbr --driveorder=xvda --append="crashkernel=auto"

      reboot
      repo --name="CentOS" --baseurl="http://mirror.centos.org/centos/7/os/x86_64/"
      repo --name="DockerCE" --baseurl="https://download.docker.com/linux/centos/7/x86_64/stable/"

      %packages
      @base
      @core
      gcc
      gcc-c++
      git
      net-snmp
      nfs-utils
      screen
      vim
      tree
      yum-utils
      device-mapper-persistent-data
      lvm2
      %end

      ....


      When the installation completes, I check /etc/yum.repos.d/ and none of the repos are there. Is there something that I may be doing incorrectly?







      share|improve this question












      I have a kickstart file I am trying to use for CentOS 7.4 installations. It works well, but it does not add the requested repos. I've run through this a few times and I'm sure it basically skips over the step for adding repos. Here is what it looks like:



      url --url http://<my_IP>/centos71
      lang en_US.UTF-8

      keyboard us

      timezone --utc America/New_York

      network --onboot yes --device em1 --bootproto dhcp --noipv6

      firewall --disabled
      selinux --disabled
      authconfig --enableshadow --passalgo=sha512

      rootpw --iscrypted <encrypted_pass>

      clearpart --all --initlabel --drives=xvda

      zerombr

      part /boot --fstype=ext4 --asprimary --size=200 --ondisk=xvda
      part pv.1 --asprimary --grow --size=10000 --ondisk=xvda
      volgroup vg0 --pesize=4096 pv.1
      logvol / --fstype=ext4 --name=lv_root --vgname=vg0 --size=9000
      logvol swap --name=lv_swap --vgname=vg0 --size=512

      bootloader --location=mbr --driveorder=xvda --append="crashkernel=auto"

      reboot
      repo --name="CentOS" --baseurl="http://mirror.centos.org/centos/7/os/x86_64/"
      repo --name="DockerCE" --baseurl="https://download.docker.com/linux/centos/7/x86_64/stable/"

      %packages
      @base
      @core
      gcc
      gcc-c++
      git
      net-snmp
      nfs-utils
      screen
      vim
      tree
      yum-utils
      device-mapper-persistent-data
      lvm2
      %end

      ....


      When the installation completes, I check /etc/yum.repos.d/ and none of the repos are there. Is there something that I may be doing incorrectly?









      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 26 at 14:29









      ryekayo

      2,73072347




      2,73072347




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          The repo directive is only used for the installation step of anaconda installer. The repositories have to be configured during post-installation. That is, the repos you're specifying are configured for use during the installation step of the system, but not transferred over once the installation is complete.



          Consider using a solution like Installing YUM repositories that are specified in Kickstart file.




          In the post section of your kickstart include something like this:



          %post
          cat >/etc/yum.repos.d/your.repo <<EOF
          [... INCLUDE REPO CONFIG FILE CONTENTS HERE ...]
          EOF






          share|improve this answer





























            up vote
            1
            down vote













            You could try the --install flag, which should make your repos available post install, for example



            repo --install --name="DockerCE" --baseurl="https://download.docker.com/linux/centos/7/x86_64/stable/"


            Link to more documentation. Search for the section "repo".






            share|improve this answer




















              Your Answer







              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "106"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              convertImagesToLinks: false,
              noModals: false,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );








               

              draft saved


              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f426696%2fkickstart-does-not-add-repos%23new-answer', 'question_page');

              );

              Post as a guest






























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              1
              down vote



              accepted










              The repo directive is only used for the installation step of anaconda installer. The repositories have to be configured during post-installation. That is, the repos you're specifying are configured for use during the installation step of the system, but not transferred over once the installation is complete.



              Consider using a solution like Installing YUM repositories that are specified in Kickstart file.




              In the post section of your kickstart include something like this:



              %post
              cat >/etc/yum.repos.d/your.repo <<EOF
              [... INCLUDE REPO CONFIG FILE CONTENTS HERE ...]
              EOF






              share|improve this answer


























                up vote
                1
                down vote



                accepted










                The repo directive is only used for the installation step of anaconda installer. The repositories have to be configured during post-installation. That is, the repos you're specifying are configured for use during the installation step of the system, but not transferred over once the installation is complete.



                Consider using a solution like Installing YUM repositories that are specified in Kickstart file.




                In the post section of your kickstart include something like this:



                %post
                cat >/etc/yum.repos.d/your.repo <<EOF
                [... INCLUDE REPO CONFIG FILE CONTENTS HERE ...]
                EOF






                share|improve this answer
























                  up vote
                  1
                  down vote



                  accepted







                  up vote
                  1
                  down vote



                  accepted






                  The repo directive is only used for the installation step of anaconda installer. The repositories have to be configured during post-installation. That is, the repos you're specifying are configured for use during the installation step of the system, but not transferred over once the installation is complete.



                  Consider using a solution like Installing YUM repositories that are specified in Kickstart file.




                  In the post section of your kickstart include something like this:



                  %post
                  cat >/etc/yum.repos.d/your.repo <<EOF
                  [... INCLUDE REPO CONFIG FILE CONTENTS HERE ...]
                  EOF






                  share|improve this answer














                  The repo directive is only used for the installation step of anaconda installer. The repositories have to be configured during post-installation. That is, the repos you're specifying are configured for use during the installation step of the system, but not transferred over once the installation is complete.



                  Consider using a solution like Installing YUM repositories that are specified in Kickstart file.




                  In the post section of your kickstart include something like this:



                  %post
                  cat >/etc/yum.repos.d/your.repo <<EOF
                  [... INCLUDE REPO CONFIG FILE CONTENTS HERE ...]
                  EOF







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Jun 5 at 15:34









                  U880D

                  401314




                  401314










                  answered Feb 26 at 14:39









                  Patrick

                  479112




                  479112






















                      up vote
                      1
                      down vote













                      You could try the --install flag, which should make your repos available post install, for example



                      repo --install --name="DockerCE" --baseurl="https://download.docker.com/linux/centos/7/x86_64/stable/"


                      Link to more documentation. Search for the section "repo".






                      share|improve this answer
























                        up vote
                        1
                        down vote













                        You could try the --install flag, which should make your repos available post install, for example



                        repo --install --name="DockerCE" --baseurl="https://download.docker.com/linux/centos/7/x86_64/stable/"


                        Link to more documentation. Search for the section "repo".






                        share|improve this answer






















                          up vote
                          1
                          down vote










                          up vote
                          1
                          down vote









                          You could try the --install flag, which should make your repos available post install, for example



                          repo --install --name="DockerCE" --baseurl="https://download.docker.com/linux/centos/7/x86_64/stable/"


                          Link to more documentation. Search for the section "repo".






                          share|improve this answer












                          You could try the --install flag, which should make your repos available post install, for example



                          repo --install --name="DockerCE" --baseurl="https://download.docker.com/linux/centos/7/x86_64/stable/"


                          Link to more documentation. Search for the section "repo".







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Jun 5 at 15:54









                          Timothy Pulliam

                          1,004515




                          1,004515






















                               

                              draft saved


                              draft discarded


























                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f426696%2fkickstart-does-not-add-repos%23new-answer', 'question_page');

                              );

                              Post as a guest













































































                              Popular posts from this blog

                              How to check contact read email or not when send email to Individual?

                              Displaying single band from multi-band raster using QGIS

                              How many registers does an x86_64 CPU actually have?