summaryrefslogtreecommitdiff
path: root/archiso
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2011-10-03 21:12:56 -0300
committerGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2011-10-03 21:12:56 -0300
commit1dcf439c30bac6485965a0cd899de74db2f2ef39 (patch)
tree6474cf4b4f4b2693956b310214fa3cc2ad79a6fe /archiso
parentcb619dfae12f13ba8e70427d518489f478338a59 (diff)
downloadarchiso32-1dcf439c30bac6485965a0cd899de74db2f2ef39.tar.xz
[archiso] Create /etc/mtab as symlink.
This is now supported since util-linux pkg enable it. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Diffstat (limited to 'archiso')
-rwxr-xr-xarchiso/mkarchiso4
1 files changed, 2 insertions, 2 deletions
diff --git a/archiso/mkarchiso b/archiso/mkarchiso
index 6fb5d06..e434bb2 100755
--- a/archiso/mkarchiso
+++ b/archiso/mkarchiso
@@ -201,9 +201,9 @@ _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.
+ # Create etc/mtab if not is a symlink.
if [[ ! -L "${work_dir}/root-image/etc/mtab" ]]; then
- rm -f "${work_dir}/root-image/etc/mtab"
+ ln -sf "/proc/self/mounts" "${work_dir}/root-image/etc/mtab"
fi
}