only make mtab a symlink if it didn't exist before

OBS-URL: https://build.opensuse.org/package/show/Base:System/aaa_base?expand=0&rev=196
This commit is contained in:
Ludwig Nussel 2011-01-25 08:50:17 +00:00 committed by Git OBS Bridge
parent ed9c87fd0b
commit 3ce3062b7d

View File

@ -141,8 +141,7 @@ fi
# #
# create mtab if it does not exist # create mtab if it does not exist
# #
if test ! -L /etc/mtab; then if test ! -e /etc/mtab; then
rm -f /etc/mtab
ln -sf /proc/self/mounts /etc/mtab ln -sf /proc/self/mounts /etc/mtab
fi fi
# #