[Debconf-devel] Bug#1028128: debconf: Please support /var/cache/debconf/tmp.ci being a tmpfs
Niels Thykier
niels at thykier.net
Sun Jan 8 08:50:07 GMT 2023
Colin Watson:
> [...]
>
> What do you think about this patch? [...]
>
> diff --git a/dpkg-preconfigure b/dpkg-preconfigure
> index e0db5b19..c1f24441 100755
> --- a/dpkg-preconfigure
> +++ b/dpkg-preconfigure
> @@ -141,7 +141,7 @@ if (! $have_tty && $frontend->need_tty) {
> }
>
> my $tempdir='/var/cache/debconf/tmp.ci';
> -remove_tree($tempdir, { safe => 1 });
> +remove_tree($tempdir, { safe => 1, keep_root => 1 });
> make_path($tempdir);
>
> # Use the external package scanner for speed. It takes a list of debs
> @@ -248,7 +248,7 @@ $frontend->shutdown;
> # Save state.
> Debconf::Db->save;
>
> -remove_tree($tempdir, { safe => 1 });
> +remove_tree($tempdir, { safe => 1, keep_root => 1 });
>
> =head1 AUTHOR
>
Looks good to me. :)
Thanks for considering
~Niels
More information about the Debconf-devel
mailing list