The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / rng-tools / 0001-rngd-exit-code.patch
diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/package/rng-tools/0001-rngd-exit-code.patch b/cirros-testvm/src-cirros/buildroot-2015.05/package/rng-tools/0001-rngd-exit-code.patch
new file mode 100644 (file)
index 0000000..709e20c
--- /dev/null
@@ -0,0 +1,22 @@
+Exit with a special value when RNG modules are not available
+
+Instead of returning with an error, exit with a special value when the
+RNG kernel modules are not present in the kernel. This is not really a
+hard failure.
+
+Patch borrowed from Fedora, at
+http://pkgs.fedoraproject.org/cgit/rng-tools.git/tree/rngd-exit-code.patch.
+
+Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com>
+
+--- a/rngd.c
++++ b/rngd.c
+@@ -319,7 +319,7 @@ int main(int argc, char **argv)
+                       message(LOG_DAEMON|LOG_ERR,
+                               "Maybe RNG device modules are not loaded\n");
+               }
+-              return 1;
++              return 66;
+       }
+       if (arguments->verbose) {