[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>
This commit is contained in:
parent
cb619dfae1
commit
1dcf439c30
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue