drakkar-lig / debootstick

Generate a bootable live image from any Debian/Ubuntu filesystem tree.
62 stars 18 forks source link

Removes host files #3

Closed ghost closed 9 years ago

ghost commented 9 years ago

in finalize_fs():

        rm -rf proc/* sys/* dev/* tmp/* \
            $(find run -type f) /var/cache/* /var/lock

This will remove /var/cache/* and /var/lock content on host system.

eduble commented 9 years ago

Thanks for reporting. That was a serious issue. I just pushed a fix. (Some time ago this function was called in the chroot. Then it was adapted to be run from outside, and this issue appeared at this time.)