Displaying 2 results from an estimated 2 matches for "num_visited".
2016 Jul 22
3
[PATCH RFC supermin] ext2_initrd: error out if we can't add anything
...se_out chan;
+ let num_visted = StringSet.cardinal !visited in
if debug >= 1 then
- printf "supermin: ext2: wrote %d modules to minimal initrd\n%!" (StringSet.cardinal !visited);
+ printf "supermin: ext2: wrote %d modules to minimal initrd\n%!" num_visted;
+
+ if num_visited == 0 then
+ error "failed to write any modules into minimal initrd, try 'depmod -a'"
(* This is the binary blob containing the init "script". *)
let init = binary_init () in
--
1.8.3.1
2016 Jul 22
0
Re: [PATCH RFC supermin] ext2_initrd: error out if we can't add anything
..._visted = StringSet.cardinal !visited in
> if debug >= 1 then
> - printf "supermin: ext2: wrote %d modules to minimal initrd\n%!" (StringSet.cardinal !visited);
> + printf "supermin: ext2: wrote %d modules to minimal initrd\n%!" num_visted;
> +
> + if num_visited == 0 then
> + error "failed to write any modules into minimal initrd, try 'depmod -a'"
NACK. It's not a bug if no modules are added, since all features
needed might be compiled into the kernel.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redh...