[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [atomic] Cloud init fails to install packages on Atomic Host



So I added runcmd in my user-data like below:

runcmd:

 - rm -fr /etc/localtime; ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime

 - echo alias docker='docker-latest' >> /etc/bashrc

 - echo alias man="'atomic run rhel7/rhel-tools man'" >> /etc/bashrc

 - /usr/bin/rpm-ostree pkg-add zsh git wget vim-enhanced

 - /usr/bin/systemctl reboot


All commands except the last two commands won't run.  There is no error in /var/log/cloud-init.log and the script in /var/lib/cloud/instance/scripts/runcmd still list all the commands specified.  Not sure if this is a problem with cloud init or atomic os?

the only way I could get the last two commands to run is keeping them in a separate script and including it in the mime multipart user-data and then anything in the runcmd won't run because of the last reboot command.

I also tried using the bootcmd module and it blocks even SSH logging if I try to add packages via rpm-ostree there.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]