Difference between revisions of "Root filesystem clean up procedure"

From VNUML-WIKI
Jump to: navigation, search
Line 1: Line 1:
 
+
You can even do mixed lists
* You can even do mixed lists
+
# and nest them
*# and nest them
+
# inside each other
*# inside each other
+
#* or break lines<br>in lists.
*#* or break lines<br>in lists.
+
#; definition lists
*#; definition lists
+
#: can be  
*#: can be  
+
#:; nested : too
*#:; nested : too
 
  
  
 
Extracted from Fermin's message [https://lists.dit.upm.es/pipermail/vnuml-devel/2006-June/000411.html 1]
 
Extracted from Fermin's message [https://lists.dit.upm.es/pipermail/vnuml-devel/2006-June/000411.html 1]
  
This is a description of the general procudure carried out to clean up a root_fs after upgrading/installing new packages. This is more or less what I do when generating a new root_fs release (for example, 0.3.99 based on previous 0.3.3). I'm sending to the list in the hope it could be useful for
+
This is a description of the general procudure carried out to clean up a root_fs after upgrading/installing new packages. This is more or less what I do when generating a new root_fs release (for example, 0.3.99 based on previous 0.3.3). I'm sending to the list in the hope it could be useful for developers working in their own "root filesystem branches" based on root_fs provide by VNUML Project.
developers working in their own "root filesystem branches" based on root_fs provide by VNUML Project.
 
  
 
In order to clean the filesystem two steps should be performed, in sequence:
 
In order to clean the filesystem two steps should be performed, in sequence:
 
 
# "Inside" filesystem (I mean, using a running virtual machine that uses this filesystem as <fylesystem type="direct"> or mounting it and chrooting from host):
 
# "Inside" filesystem (I mean, using a running virtual machine that uses this filesystem as <fylesystem type="direct"> or mounting it and chrooting from host):
 
 
#* Clean the APT cache (after apt-get update, install, upgrade, etc. or whatever other APT operation)
 
#* Clean the APT cache (after apt-get update, install, upgrade, etc. or whatever other APT operation)
 
 
     apt-get clean
 
     apt-get clean
 
 
#* It is not exactly a clean up operation, but if the /lib/tls directory exists (it seems to be created sometimes during the upgrading of some
 
#* It is not exactly a clean up operation, but if the /lib/tls directory exists (it seems to be created sometimes during the upgrading of some
 
packages) rename it to /lib/tls.disabled (removing previous existing /lib/tls.disabled directory) (*)
 
packages) rename it to /lib/tls.disabled (removing previous existing /lib/tls.disabled directory) (*)
 
 
#* It is not exactly a clean up operation, but you should also edit and change the /etc/root_fs_tutorial-version file (*)
 
#* It is not exactly a clean up operation, but you should also edit and change the /etc/root_fs_tutorial-version file (*)
 
 
# "Outside" filesystem, supposing is mounted in /mnt/loop
 
# "Outside" filesystem, supposing is mounted in /mnt/loop
 
 
   cd /mnt/loop/var/cache/apt
 
   cd /mnt/loop/var/cache/apt
 
   rm -f pkgcache.bin srcpkgcache.bin (**)
 
   rm -f pkgcache.bin srcpkgcache.bin (**)

Revision as of 01:27, 25 July 2006

You can even do mixed lists

  1. and nest them
  2. inside each other
    • or break lines
      in lists.
    definition lists
    can be
    nested 
    too


Extracted from Fermin's message 1

This is a description of the general procudure carried out to clean up a root_fs after upgrading/installing new packages. This is more or less what I do when generating a new root_fs release (for example, 0.3.99 based on previous 0.3.3). I'm sending to the list in the hope it could be useful for developers working in their own "root filesystem branches" based on root_fs provide by VNUML Project.

In order to clean the filesystem two steps should be performed, in sequence:

  1. "Inside" filesystem (I mean, using a running virtual machine that uses this filesystem as <fylesystem type="direct"> or mounting it and chrooting from host):
    • Clean the APT cache (after apt-get update, install, upgrade, etc. or whatever other APT operation)
    apt-get clean
    • It is not exactly a clean up operation, but if the /lib/tls directory exists (it seems to be created sometimes during the upgrading of some

packages) rename it to /lib/tls.disabled (removing previous existing /lib/tls.disabled directory) (*)

    • It is not exactly a clean up operation, but you should also edit and change the /etc/root_fs_tutorial-version file (*)
  1. "Outside" filesystem, supposing is mounted in /mnt/loop
  cd /mnt/loop/var/cache/apt
  rm -f pkgcache.bin srcpkgcache.bin (**)
  cd /mnt/loop/tmp
  rm -rf *
  rm -f /mnt/loop/root/.bash_history
  cd /mnt
  umount /mnt/loop

(*) This step also can be done from "outside" filesystem

(**) And, in general, any other file, except the archive/ directory