rpi-update icon indicating copy to clipboard operation
rpi-update copied to clipboard

Confirm all flag (for automation)

Open Daverkex opened this issue 6 years ago • 5 comments

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.

Daverkex avatar Feb 20 '19 14:02 Daverkex

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.

popcornmix avatar Feb 20 '19 16:02 popcornmix

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.

Daverkex avatar Feb 28 '19 09:02 Daverkex

@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." ?

lurch avatar Jun 08 '19 14:06 lurch

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.

Daverkex avatar Dec 14 '19 08:12 Daverkex

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

lurch avatar Dec 16 '19 10:12 lurch