From bcf5edaa201b735419f45f817b8c89ff5ce20b69 Mon Sep 17 00:00:00 2001 From: Philipp Wuensche Date: Thu, 15 Aug 2019 16:07:03 +0200 Subject: introduce the baseclean subcommand. It uses the new install log to compare to the files present in the basejail and deletes them. By default it does a dry run and deletes nothing, adding the -y parameter will delete files really. --- man8/ezjail-admin.8 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'man8') diff --git a/man8/ezjail-admin.8 b/man8/ezjail-admin.8 index 65c44bf..71ec14b 100644 --- a/man8/ezjail-admin.8 +++ b/man8/ezjail-admin.8 @@ -61,6 +61,9 @@ .Op Fl s Ar sourcetree | sourceosversion .Op Fl p .Fl b | Fl i | Fl P | Fl u | Fl U +.Nm +.Cm baseclean +.Op Fl y .Sh DESCRIPTION The .Nm @@ -629,6 +632,17 @@ sub command to install the basejail from binary packages. .Pp If the basejail is managed in its own ZFS filesystem, a snapshot of that filesystem is taken first. +.Ss Nm Cm baseclean +Cleans ezjail's basejail from any unneeded files that might still be present +after an upgrade via +.Cm ezjail-admin install +.Fl K +.Pp +Defaults in a dry run which +will not delete anything, but shows all files that would be deleted. +.Pp +.Fl y +Really delete that files. .Sh FILES .Pa EZJAIL_PREFIX/bin/ezjail-admin .br -- cgit v1.2.3