On Friday 27 April 2007 14:35, Andrea Righi wrote:
> Another reason is memory consumption. All the files are allocated by the
> VM, but VM can't free the initramfs files, because there's no backing
> store and no pivot_root/umount support. To free up space we should
> explicitly remove all the initramfs files before switching to the
> classical tmpfs... but this needs a little work...

I think the patch below does what you want. It worked for me. I checked it
in.

Regards,
Erich


--- init        (Revision 4041)
+++ init        (Arbeitskopie)
@@ -6,11 +6,16 @@

 echo "initramfs detected: init called"

+delete_rootfs_files() {
+   sleep 10
+   rm -rf /
+}
+
 mkdir -p /new_root || shellout
 mount tmpfs /new_root -t tmpfs $tmpfs_opts || shellout
 cd / || shellout
 cp -a `/bin/ls | grep -v new_root` /new_root/ || shellout
 cd /new_root || shellout
 mkdir -p old_root || shellout
-
+delete_rootfs_files >/dev/null </dev/null 2>&1 &
 mount --move .  / && exec chroot . /linuxrc


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users

Reply via email to