Each grub-mkrescue run leaves a file in /tmp/
A message that is not in the archive (sent off-list or not yet received): [email protected]
27.12.2015 23:48, Thomas Schmitt пишет:
Quoted 8 lines
Hi,
when running grub-mkrescue from Debian Sid, i get a growing collection of files in /tmp. One per run.
Names are like:
/tmp/grub.00529W
Quoted 13 lines
Content is always the same:
insmodpart_acorn
insmodpart_amiga
insmodpart_apple
insmodpart_bsd
insmodpart_dfly
insmodpart_dvh
insmodpart_gpt
insmodpart_msdos
insmodpart_plan
insmodpart_sun
insmodpart_sunpc
That's load.cfg used to build image. I'm surprised this is the only one left, there should be more.
Quoted 5 lines
grub-mkrescue -V
grub-mkrescue (GRUB) 2.02~beta2-33Where to report ? Upstream or distro ?
Yes, I have this hanging around. Not because of garbage in /tmp, but to better documentation of generated image (load.cfg is stored by grub-install as well).
Vladimir?
From: Andrey Borzenkov <[email protected]>
Subject: [PATCH] grub-mkrescue: save load.cfg in image platform directory
--- util/grub-mkrescue.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-)
util/grub-mkrescue.c +10 -4
@@ -257,7 +257,9 @@ make_image_abs (enum grub_install_plat plat,grub_util_info (N_ ("enabling %s support ..." ), mkimage_target); - load_cfg =grub_util_make_temporary_file (); + load_cfg =grub_util_path_concat (3 , boot_grub, +grub_install_get_platform_name (plat), +"load.cfg" ); load_cfg_f =grub_util_fopen (load_cfg,"wb" );fprintf (load_cfg_f,"search --fs-uuid --set=root %s\n" , iso_uuid);
@@ -273,7 +275,7 @@ make_image_abs (enum grub_install_plat plat, mkimage_target, 0);grub_install_pop_module ();grub_install_pop_module (); -grub_util_unlink (load_cfg); +free (load_cfg); } static void
@@ -300,7 +302,9 @@ make_image_fwdisk_abs (enum grub_install_plat plat,grub_util_info (N_ ("enabling %s support ..." ), mkimage_target); - load_cfg =grub_util_make_temporary_file (); + load_cfg =grub_util_path_concat (3 , boot_grub, +grub_install_get_platform_name (plat), +"load.cfg" ); load_cfg_f =grub_util_fopen (load_cfg,"wb" );write_part (load_cfg_f, source_dirs[plat]);
@@ -310,6 +314,7 @@ make_image_fwdisk_abs (enum grub_install_plat plat,grub_install_make_image_wrap (source_dirs[plat],"()/boot/grub" , output,0 , load_cfg, mkimage_target,0 );grub_install_pop_module (); +free (load_cfg); } static int
@@ -572,7 +577,7 @@ main (int argc, char *argv[])char *load_cfg;FILE *load_cfg_f;char *output =grub_util_path_concat (3 , boot_grub,"i386-pc" ,"eltorito.img" ); - load_cfg =grub_util_make_temporary_file (); + load_cfg =grub_util_path_concat (3 , boot_grub,"i386-pc" ,"load.cfg" );grub_util_info (N_ ("enabling %s support ..." ),"BIOS" ); load_cfg_f =grub_util_fopen (load_cfg,"wb" );
@@ -647,6 +652,7 @@ main (int argc, char *argv[]) }grub_install_pop_module ();grub_install_pop_module (); +free (load_cfg); }/** build multiboot core.img */
Signature · 1 line
tg: (3bca85b..) u/load_cfg (depends on: master)
Quoted 29 lines · Andrei Borzenkov
27.12.2015 23:48, Thomas Schmitt пишет:
Quoted 8 lines
Hi,
when running grub-mkrescue from Debian Sid, i get a growing collection of files in /tmp. One per run.
Names are like:
/tmp/grub.00529WQuoted 13 lines
Content is always the same:
insmodpart_acorn
insmodpart_amiga
insmodpart_apple
insmodpart_bsd
insmodpart_dfly
insmodpart_dvh
insmodpart_gpt
insmodpart_msdos
insmodpart_plan
insmodpart_sun
insmodpart_sunpcThat's load.cfg used to build image. I'm surprised this is the only one left, there should be more.
Quoted 3 lines
grub-mkrescue -V
grub-mkrescue (GRUB) 2.02~beta2-33
Quoted 9 lines
Quoted 2 lines
Where to report ? Upstream or distro ?
Yes, I have this hanging around. Not because of garbage in /tmp, but to better documentation of generated image (load.cfg is stored by grub-install as well).
Vladimir?
Fixed. It was just omission of delete. We leave load.cfg in our directory (boot/grub) but it makes no sense to leave anything in temp
Quoted 9 lines
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
29.12.2015 19:51, Vladimir 'φ-coder/phcoder' Serbinenko пишет:
Quoted 33 lines · Andrei Borzenkov
Quoted 32 lines
27.12.2015 23:48, Thomas Schmitt пишет:
Quoted 8 lines
Hi,
when running grub-mkrescue from Debian Sid, i get a growing collection of files in /tmp. One per run.
Names are like:
/tmp/grub.00529WQuoted 13 lines
Content is always the same:
insmodpart_acorn
insmodpart_amiga
insmodpart_apple
insmodpart_bsd
insmodpart_dfly
insmodpart_dvh
insmodpart_gpt
insmodpart_msdos
insmodpart_plan
insmodpart_sun
insmodpart_sunpcThat's load.cfg used to build image. I'm surprised this is the only one left, there should be more.
Quoted 5 lines
grub-mkrescue -V
grub-mkrescue (GRUB) 2.02~beta2-33Where to report ? Upstream or distro ?
Quoted 8 lines
Quoted 6 lines
Yes, I have this hanging around. Not because of garbage in /tmp, but to better documentation of generated image (load.cfg is stored by grub-install as well).
Vladimir?
Fixed. It was just omission of delete. We leave load.cfg in our directory (boot/grub)
No, we do not.
Quoted 39 lines · Andrei Borzenkov
29.12.2015 19:51, Vladimir 'φ-coder/phcoder' Serbinenko пишет:
Quoted 37 lines · Andrei Borzenkov
Quoted 36 lines
27.12.2015 23:48, Thomas Schmitt пишет:
Quoted 8 lines
Hi,
when running grub-mkrescue from Debian Sid, i get a growing collection of files in /tmp. One per run.
Names are like:
/tmp/grub.00529WQuoted 13 lines
Content is always the same:
insmodpart_acorn
insmodpart_amiga
insmodpart_apple
insmodpart_bsd
insmodpart_dfly
insmodpart_dvh
insmodpart_gpt
insmodpart_msdos
insmodpart_plan
insmodpart_sun
insmodpart_sunpcThat's load.cfg used to build image. I'm surprised this is the only one left, there should be more.
Quoted 5 lines
grub-mkrescue -V
grub-mkrescue (GRUB) 2.02~beta2-33Where to report ? Upstream or distro ?
Yes, I have this hanging around. Not because of garbage in /tmp, but to better documentation of generated image (load.cfg is stored by grub-install as well).
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Vladimir?
Fixed. It was just omission of delete. We leave load.cfg in our directory (boot/grub)
No, we do not.
I meant in grub-install case. I don't think we need to waste space on ISO in mkrescue case. We shouldn't leave any files behind in temp for normal operation. We can have an option to leave them if it's useful
Quoted 6 lines
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
29.12.2015 21:13, Vladimir 'phcoder' Serbinenko пишет:
Quoted 45 lines · Andrei Borzenkov
Quoted 44 lines
29.12.2015 19:51, Vladimir 'φ-coder/phcoder' Serbinenko пишет:
Quoted 41 lines · Andrei Borzenkov
Quoted 29 lines
27.12.2015 23:48, Thomas Schmitt пишет:
Quoted 8 lines
Hi,
when running grub-mkrescue from Debian Sid, i get a growing collection of files in /tmp. One per run.
Names are like:
/tmp/grub.00529WQuoted 13 lines
Content is always the same:
insmodpart_acorn
insmodpart_amiga
insmodpart_apple
insmodpart_bsd
insmodpart_dfly
insmodpart_dvh
insmodpart_gpt
insmodpart_msdos
insmodpart_plan
insmodpart_sun
insmodpart_sunpcThat's load.cfg used to build image. I'm surprised this is the only one left, there should be more.
Quoted 3 lines
grub-mkrescue -V
grub-mkrescue (GRUB) 2.02~beta2-33Quoted 9 lines
Quoted 2 lines
Where to report ? Upstream or distro ?
Yes, I have this hanging around. Not because of garbage in /tmp, but to better documentation of generated image (load.cfg is stored by grub-install as well).
Vladimir?
Fixed. It was just omission of delete. We leave load.cfg in our directory (boot/grub)
Quoted 6 lines
Quoted 3 lines
No, we do not.
I meant in grub-install case. I don't think we need to waste space on ISO in mkrescue case. We shouldn't leave any files behind in temp for normal operation.
Ehem ... https://lists.gnu.org/archive/html/grub-devel/2014-09/msg00045.html
:)
Quoted 3 lines · Andrei Borzenkov
29.12.2015 21:13, Vladimir 'phcoder' Serbinenko пишет:
Quoted 1 line
Le 29 déc. 2015 7:05 PM, "Andrei Borzenkov" <[email protected]> a
écrit :
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
29.12.2015 19:51, Vladimir 'φ-coder/phcoder' Serbinenko пишет:
Quoted 24 lines · Andrei Borzenkov
Quoted 23 lines
27.12.2015 23:48, Thomas Schmitt пишет:
Quoted 21 lines
Hi,
when running grub-mkrescue from Debian Sid, i get a growing collection of files in /tmp. One per run.
Names are like:
/tmp/grub.00529WContent is always the same:
insmodpart_acorn
insmodpart_amiga
insmodpart_apple
insmodpart_bsd
insmodpart_dfly
insmodpart_dvh
insmodpart_gpt
insmodpart_msdos
insmodpart_plan
insmodpart_sun
insmodpart_sunpc
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
That's load.cfg used to build image. I'm surprised this is the only
one
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
left, there should be more.
Quoted 5 lines
grub-mkrescue -V
grub-mkrescue (GRUB) 2.02~beta2-33Where to report ? Upstream or distro ?
Yes, I have this hanging around. Not because of garbage in /tmp, but
to
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
better documentation of generated image (load.cfg is stored by grub-install as well).
Vladimir?
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 2 lines
Fixed. It was just omission of delete. We leave load.cfg in our directory (boot/grub)
No, we do not.
I meant in grub-install case. I don't think we need to waste space on
ISO
Quoted 4 lines
Quoted 2 lines
in mkrescue case. We shouldn't leave any files behind in temp for normal operation.
Ehem ...
https://lists.gnu.org/archive/html/grub-devel/2014-09/msg00045.html
Quoted 3 lines
:)
Nice find. Shows that experience and good arguments make people change mind. In this case I never had to actually look into this file for mkrescue, which show that it wasn't as useful as I have thought
Quoted 6 lines
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel