[archiso] Delete etc/mtab on _cleanup step

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
This commit is contained in:
Gerardo Exequiel Pozzi 2011-06-23 22:00:54 -03:00
parent 0d895a225a
commit 93763a2d82
2 changed files with 4 additions and 3 deletions

View File

@ -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.

View File

@ -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