summaryrefslogtreecommitdiff
path: root/archiso
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2011-06-23 22:00:54 -0300
committerGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2011-07-09 15:14:49 -0300
commit93763a2d8225a92ef99e73478ac118919872ab27 (patch)
treed1464f4ab902194fe93212eb0dc20c457bc7a150 /archiso
parent0d895a225a30a86733bcfbd600fc6e5880b11977 (diff)
downloadarchiso32-93763a2d8225a92ef99e73478ac118919872ab27.tar.xz
[archiso] Delete etc/mtab on _cleanup step
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Diffstat (limited to 'archiso')
-rwxr-xr-xarchiso/mkarchiso4
1 files changed, 4 insertions, 0 deletions
diff --git a/archiso/mkarchiso b/archiso/mkarchiso
index 673f570..12d8936 100755
--- a/archiso/mkarchiso
+++ b/archiso/mkarchiso
@@ -191,6 +191,10 @@ _cleanup () {
if [[ -d "${work_dir}/root-image/tmp" ]]; then
find "${work_dir}/root-image/tmp" -mindepth 1 -delete
fi
+ # Delete etc/mtab if not is a symlink.
+ if [[ ! -L "${work_dir}/root-image/etc/mtab" ]]; then
+ rm -f "${work_dir}/root-image/etc/mtab"
+ fi
}
# Makes a SquashFS filesystem image of file/directory passes as argument with desired compression.