Displaying 3 results from an estimated 3 matches for "old_initrd".
Did you mean:
load_initrd
2020 Aug 24
2
[PATCH v2v] Add ALT support
Patch supplied by Mikhail Gordeev, posting for review.
I have compile tested it and checked the code and it looks all
fine to me, so ACK from my point of view. I did not actually
run it because I don't have an ALT Linux install, but it
doesn't seem as if it would affect any other distro.
Rich.
2020 Aug 24
0
[PATCH v2v] Add ALT support
...let fold_f acc mr = acc || Str.string_match mr f 0 in
+ List.fold_left fold_f false rmodules in
+ let files = List.filter test files in
+
+ (* create new initrd with contents of old initrd *)
+ let tmpdir = g#mkdtemp "/tmp/new_initrd-XXXXXX" in
+ let old_initrd = initrd ^ ".pre-v2v" in
+ let cmd = sprintf "gzip -cd %s | cpio -imd --quiet -D %s"
+ old_initrd tmpdir in
+ ignore (g#sh cmd);
+
+ (* copy module files to new initrd *)
+ List.iter (fun file ->
+ let dir_name = Filename.dirname...
2020 Aug 25
2
Re: [PATCH v2v] Add ALT support
...= List.filter test files in
kernel.ki_modules contains already a list of modules for that kernel,
so why are you searching for them again?
> + (* create new initrd with contents of old initrd *)
> + let tmpdir = g#mkdtemp "/tmp/new_initrd-XXXXXX" in
> + let old_initrd = initrd ^ ".pre-v2v" in
> + let cmd = sprintf "gzip -cd %s | cpio -imd --quiet -D %s"
> + old_initrd tmpdir in
> + ignore (g#sh cmd);
> +
> + (* copy module files to new initrd *)
> + List.iter (fun file ->
> +...