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 ++++ configs/releng/build.sh | 3 --- 2 files changed, 4 insertions(+), 3 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. diff --git a/configs/releng/build.sh b/configs/releng/build.sh index 1aa80fd..be906c2 100755 --- a/configs/releng/build.sh +++ b/configs/releng/build.sh @@ -34,9 +34,6 @@ make_customize_root_image() { cp -af root-image ${work_dir} chmod 750 ${work_dir}/root-image/etc/sudoers.d chmod 440 ${work_dir}/root-image/etc/sudoers.d/g_wheel - if [[ ! -L ${work_dir}/root-image/etc/mtab ]]; then - rm -f ${work_dir}/root-image/etc/mtab - fi mkdir -p ${work_dir}/root-image/etc/pacman.d wget -O ${work_dir}/root-image/etc/pacman.d/mirrorlist http://www.archlinux.org/mirrorlist/all/ sed -i "s/#Server/Server/g" ${work_dir}/root-image/etc/pacman.d/mirrorlist -- cgit v1.2.3-70-g09d2