search for: topset

Displaying 4 results from an estimated 4 matches for "topset".

Did you mean: opset
2016 Jul 22
3
[PATCH RFC supermin] ext2_initrd: error out if we can't add anything
...; --- src/ext2_initrd.ml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ext2_initrd.ml b/src/ext2_initrd.ml index d4a4e2f..d9a3a99 100644 --- a/src/ext2_initrd.ml +++ b/src/ext2_initrd.ml @@ -151,8 +151,12 @@ let rec build_initrd debug tmpdir modpath initrd = visit topset; close_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;...
2016 Mar 18
1
[PATCH supermin] init: Add a blacklist of kmods that we want to exclude from the mini initrd.
...let not_kmods = [ + "virtio-gpu.ko*"; +] + let rec build_initrd debug tmpdir modpath initrd = if debug >= 1 then printf "supermin: ext2: creating minimal initrd '%s'\n%!" initrd; @@ -73,7 +80,8 @@ let rec build_initrd debug tmpdir modpath initrd = fun topset modl -> let m = Filename.basename modl in let matches wildcard = fnmatch wildcard m [FNM_PATHNAME] in - if List.exists matches kmods then + if List.exists matches kmods && not (List.exists matches not_kmods) + then StringSet.add modl tops...
2016 Jul 22
0
Re: [PATCH RFC supermin] ext2_initrd: error out if we can't add anything
...; 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/src/ext2_initrd.ml b/src/ext2_initrd.ml > index d4a4e2f..d9a3a99 100644 > --- a/src/ext2_initrd.ml > +++ b/src/ext2_initrd.ml > @@ -151,8 +151,12 @@ let rec build_initrd debug tmpdir modpath initrd = > visit topset; > close_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...
2014 Feb 25
2
[PATCH supermin v4] Supermin 5 rewrite.
...#39;%s'\n%!" initrd; + + let initdir = tmpdir // "init.d" in + mkdir initdir 0o755; + + (* Read modules.dep file. *) + let moddeps = read_module_deps modpath in + + (* Create a set of top-level modules, that is any module which + * matches a pattern in kmods. + *) + let topset = + let mods = keys moddeps in + List.fold_left ( + fun topset modl -> + let m = Filename.basename modl in + let matches wildcard = fnmatch wildcard m [FNM_PATHNAME] in + if List.exists matches kmods then + StringSet.add modl topset + else +...