From 93763a2d8225a92ef99e73478ac118919872ab27 Mon Sep 17 00:00:00 2001 From: Gerardo Exequiel Pozzi Date: Thu, 23 Jun 2011 22:00:54 -0300 Subject: [archiso] Delete etc/mtab on _cleanup step Signed-off-by: Gerardo Exequiel Pozzi --- archiso/mkarchiso | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'archiso/mkarchiso') 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. -- cgit v1.2.3-70-g09d2