Hexxeh / rpi-update

An easier way to update the firmware of your Raspberry Pi
MIT License
1.94k stars 232 forks source link

Confirm all flag (for automation) #275

Open Daverkex opened 5 years ago

Daverkex commented 5 years ago

Like apt-get install X -y this tool need a flag for automatic updates like Ansible o similar software.

I try to update Raspberry firmware and my Ansible play fail because rpi-update promp for a major update in the kernel.

popcornmix commented 5 years ago

Try setting SKIP_WARNING=1 in environment if you don't won't want to be prompted by warnings. But be aware the warnings are there for a reason.

Daverkex commented 5 years ago

Thanks @popcornmix SKIP_WARNGING=1 working for me. Maybe is a good idea add this flag in the README?

I know that skip the warnings in general is a bad idea but this automation is part of a boostrap, clean installation and up to date. I need update if the warning is a new kernel. Any idea for only allow this condition with the rpi-update (out of arkane magic with the managament tool)? I think that skip all warnings can be a problem.

lurch commented 5 years ago

@Daverkex It's not clear what you mean by "I need update if the warning is a new kernel ... I think that skip all warnings can be a problem." ?

Daverkex commented 4 years ago

Sorry for my late answer. Skip all warning with only a flag ca be a problem. In my case I only need skip if the warning is a new kernel. The automation need fail if other unspected warnings happens. For this reason I think that a good idea is add a special flag to skip the warning if is a new kenel and other for skip all.

lurch commented 4 years ago

Ahhh. I don't think that the warning-mechanism has a "reason for the warning" flag that you seem to be looking for.