Certain hidden files in the chroot root directory are copied to the final customized ISO.

Bug #1824716 reported by Cubic PPA
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cubic
Fix Released
Medium
Cubic PPA

Bug Description

The following files include history of the customization process.
These files are copied to the final customized ISO, but should not be.
    root/.bash_history
    root/.cache
    root/.wget-hsts

Revision history for this message
Cubic PPA (cubic-wizard) wrote :

Although the user can manually delete these files before repacking the customized ISO, Cubic should exclude these files from the final ISO.

Particularly, the bash command history (stored in the .bash_history) is hard to clear because this file is not always flushed to disk immediately. Furthermore, any command used to clear bash history (i.e. `history -c`) will clear the history, but this last command will actually get stored in the history. As a result this last command will appear in the root user's history after the customized ISO is installed.

Cubic PPA (cubic-wizard)
Changed in cubic:
assignee: nobody → Cubic PPA (cubic-wizard)
status: New → In Progress
importance: Undecided → Medium
Revision history for this message
Cubic PPA (cubic-wizard) wrote :

During customization, additional user home directories may be created.

These there files may also appear in the user home directories, and they will be copied to the final customized ISO, but should not be.

    /home/<user>/.bash_history
    /home/<user>/.cache
    /home/<user>/.wget-hsts

Cubic should delete these files in the user home directories (if they exist), in addition to the /root directory.

Revision history for this message
Cubic PPA (cubic-wizard) wrote :

To address this issue, Cubic will NOT copy the following files to the final ISO during the repackage process.

    /root/.bash_history
    /root/.cache
    /root/.wget-hsts
    /home/<user>/.bash_history
    /home/<user>/.cache
    /home/<user>/.wget-hsts

Note that these files will not be deleted and will continue to be visible in the file structure of the chroot environment for existing projects.

Nevertheless, the user does not have to manually delete these files, since they will simply not be copied to the final ISO.

Revision history for this message
Cubic PPA (cubic-wizard) wrote :

Fixed in trunk revision 198 and release revision 52.

Changed in cubic:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.