Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xarchiso/mkarchiso4
-rwxr-xr-xconfigs/releng/build.sh3
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