[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
- From: Jason Brooks <jbrooks redhat com>
- To: Shibu Gope <shibug gmail com>
- Cc: atomic projectatomic io
- Subject: Re: [atomic] Cloud init fails to install packages on Atomic Host
- Date: Mon, 13 Feb 2017 09:12:44 -0800
On Sat, Feb 11, 2017 at 2:27 PM, Shibu Gope <shibug gmail com> wrote:
> 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
I got this working by replacing:
>
> - /usr/bin/rpm-ostree pkg-add zsh git wget vim-enhanced
>
> - /usr/bin/systemctl reboot
with:
- /usr/bin/rpm-ostree pkg-add zsh git wget vim-enhanced --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]